<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head profile="http://internetalchemy.org/2003/02/profile"> <link rel="foaf" type="application/rdf+xml" title="FOAF" href="http://www.openlinksw.com/dataspace/uda/about.rdf" /> <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" /> <meta name="dc.title" content="14. RDF Data Access and Data Management" /> <meta name="dc.subject" content="14. RDF Data Access and Data Management" /> <meta name="dc.creator" content="OpenLink Software Documentation Team ; " /> <meta name="dc.copyright" content="OpenLink Software, 1999 - 2009" /> <link rel="top" href="index.html" title="OpenLink Virtuoso Universal Server: Documentation" /> <link rel="search" href="/doc/adv_search.vspx" title="Search OpenLink Virtuoso Universal Server: Documentation" /> <link rel="parent" href="rdfandsparql.html" title="Chapter Contents" /> <link rel="prev" href="virtuososponger.html" title="RDFizer Middleware (Sponger)" /> <link rel="next" href="virtuosospongerfacent.html" title="Virtuoso Faceted Web Service" /> <link rel="shortcut icon" href="../images/misc/favicon.ico" type="image/x-icon" /> <link rel="stylesheet" type="text/css" href="doc.css" /> <link rel="stylesheet" type="text/css" href="/doc/translation.css" /> <title>14. RDF Data Access and Data Management</title> <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" /> <meta name="author" content="OpenLink Software Documentation Team ; " /> <meta name="copyright" content="OpenLink Software, 1999 - 2009" /> <meta name="keywords" content="" /> <meta name="GENERATOR" content="OpenLink XSLT Team" /> </head> <body> <div id="header"> <a name="virtuosospongerfacetinstall" /> <img src="../images/misc/logo.jpg" alt="" /> <h1>14. RDF Data Access and Data Management</h1> </div> <div id="navbartop"> <div> <a class="link" href="rdfandsparql.html">Chapter Contents</a> | <a class="link" href="virtuososponger.html" title="RDFizer Middleware (Sponger)">Prev</a> | <a class="link" href="virtuosospongerfacent.html" title="Virtuoso Faceted Web Service">Next</a> </div> </div> <div id="currenttoc"> <form method="post" action="/doc/adv_search.vspx"> <div class="search">Keyword Search: <br /> <input type="text" name="q" /> <input type="submit" name="go" value="Go" /> </div> </form> <div> <a href="http://www.openlinksw.com/">www.openlinksw.com</a> </div> <div> <a href="http://docs.openlinksw.com/">docs.openlinksw.com</a> </div> <br /> <div> <a href="index.html">Book Home</a> </div> <br /> <div> <a href="contents.html">Contents</a> </div> <div> <a href="preface.html">Preface</a> </div> <br /> <div class="selected"> <a href="rdfandsparql.html">RDF Data Access and Data Management</a> </div> <br /> <div> <a href="rdfdatarepresentation.html">Data Representation</a> </div> <div> <a href="rdfsparql.html">SPARQL</a> </div> <div> <a href="sparqlextensions.html">Extensions</a> </div> <div> <a href="rdfgraphsecurity.html">RDF Graphs Security</a> </div> <div> <a href="rdfviews.html">Linked Data Views over RDBMS Data Source</a> </div> <div> <a href="rdfrdfviewgnr.html">Automated Generation of RDF Views over Relational Data Sources</a> </div> <div> <a href="rdfviewsenterpr.html">Examples of Linked Data Views</a> </div> <div> <a href="rdfinsertmethods.html">RDF Insert Methods in Virtuoso</a> </div> <div> <a href="virtuososponger.html">RDFizer Middleware (Sponger)</a> </div> <div class="selected"> <a href="virtuosospongerfacetinstall.html">Virtuoso Faceted Browser Installation and configuration</a> <div> <a href="#virtuosospongerfacetinstallprereq" title="Prerequisites">Prerequisites</a> <a href="#virtuosospongerfacetinstallpreinst" title="Pre Installation">Pre Installation</a> <a href="#virtuosospongerfacetinstallvadinst" title="VAD Package Installation">VAD Package Installation</a> <a href="#virtuosospongerfacetinstallposinst" title="Post Installation">Post Installation</a> <a href="#virtuosospongerfaceurilabels" title="URI Labels">URI Labels</a> <a href="#virtuosospongerfaceusagest" title="Usage Statistics">Usage Statistics</a> <a href="#virtuosospongerfacetexample" title="Examples">Examples</a> </div> </div> <div> <a href="virtuosospongerfacent.html">Virtuoso Faceted Web Service</a> </div> <div> <a href="rdfiridereferencing.html">Linked Data</a> </div> <div> <a href="rdfsparqlrule.html">Inference Rules & Reasoning</a> </div> <div> <a href="rdfsparqlgeospat.html">RDF and Geometry</a> </div> <div> <a href="rdfperformancetuning.html">RDF Performance Tuning</a> </div> <div> <a href="rdfnativestorageproviders.html">RDF Data Access Providers (Drivers)</a> </div> <div> <a href="rdfgraphreplication.html">RDF Graph Replication</a> </div> <br /> </div> <div id="text"> <a name="virtuosospongerfacetinstall" /> <h2>14.10. Virtuoso Faceted Browser Installation and configuration</h2> <a name="virtuosospongerfacetinstallprereq" /> <h3>14.10.1. Prerequisites</h3> <p>Requires <a href="http://sourceforge.net/project/showfiles.php?group_id=161622&package_id=319652">Virtuoso 6.0 TP1</a> or higher for use. </p> <br /> <a name="virtuosospongerfacetinstallpreinst" /> <h3>14.10.2. Pre Installation</h3> <p> <strong>Note</strong>: This step is not required for Virtuoso Release 6.1 and above builds</p> <p>If you have an existing Virtuoso 6.x installation, and your Quad Store has greater than 10K worth of triples, please perform the following steps: </p> <ol> <li>Run the following commands using the Virtuoso isql program before installing the Faceted Browser VAD: <div> <pre class="programlisting"> drop index RDF_QUAD_OPGS; drop index RDF_QUAD_POGS; drop index RDF_QUAD_GPOS; drop index RDF_QUAD_OGPS; checkpoint; create table R2 (G iri_id_8, S iri_id_8, P iri_id_8, O any, primary key (S, P, O, G)); alter index R2 on R2 partition (S int (0hexffff00)); log_enable (2); INSERT INTO R2 (G, S, P, O) select G, S, P, O FROM rdf_quad; DROP TABLE RDF_QUAD; ALTER TABLE r2 rename RDF_QUAD; checkpoint; create bitmap index RDF_QUAD_OPGS on RDF_QUAD (O, P, G, S) partition (O varchar (-1, 0hexffff)); create bitmap index RDF_QUAD_POGS on RDF_QUAD (P, O, G, S) partition (O varchar (-1, 0hexffff)); create bitmap index RDF_QUAD_GPOS on RDF_QUAD (G, P, O, S) partition (O varchar (-1, 0hexffff)); checkpoint; </pre> </div> </li> </ol> <p>Note this step may take sometime depending on how many triples are already in your Quad Store. </p> <br /> <a name="virtuosospongerfacetinstallvadinst" /> <h3>14.10.3. VAD Package Installation</h3> <ol> <li>Download and install the <a href="http://download.openlinksw.com/packages/5.0/virtuoso/fct_dav.vad">Virtuoso Faceted Browser VAD</a> package using the Conductor System Admin - > Packages tab. <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Install the FCT package" src="../images/ui/fb1.png" /> </td> </tr> <tr> <td>Figure: 14.10.3.1. Install the FCT package</td> </tr> </table> </li> <li>The HTML interface of the Faceted Browser Engine is exposed at: <strong>http://<cname>/fct</strong>, where "cname" is the hostname:portno your Virtuoso instance is running on. <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="FCT HTML interface" src="../images/ui/fb2.png" /> </td> </tr> <tr> <td>Figure: 14.10.3.1. FCT HTML interface</td> </tr> </table> </li> <li>The Faceted Browser Engine exposes a REST API at the endpoint: <strong>http://<cname>/fct/service</strong>. <div class="tip"> <div class="tiptitle">See Also:</div> <ul> <li> <a href="virtuosospongerfacent.html#virtuosospongerfacentuirestapi">Virtuoso APIs for Faceted REST services</a> </li> <li> <a href="rdfiridereferencing.html#rdfiridereferencingfacetws">Faceted Web Service and Linked Data</a> </li> </ul> </div> </li> </ol> <br /> <a name="virtuosospongerfacetinstallposinst" /> <h3>14.10.4. Post Installation</h3> <ol> <li>Build Full Text Indexes by running the following commands using the Virtuoso <strong>isql</strong> program: <div> <pre class="programlisting"> RDF_OBJ_FT_RULE_ADD (null, null, 'All'); VT_INC_INDEX_DB_DBA_RDF_OBJ (); </pre> </div> </li> <li>Run the following procedure using the Virtuoso <strong>isql</strong> program to populate label lookup tables periodically and activate the <strong>Label</strong> text box of the <strong>Entity Label Lookup</strong> tab: <div> <pre class="programlisting"> urilbl_ac_init_db() </pre> </div> </li> <li>Run the following procedure using the Virtuoso <strong>isql</strong> program to calculate the IRI ranks. Note this should be run periodically as the data grows to re-rank the IRIs. <div> <pre class="programlisting"> s_rank() </pre> </div> </li> <li>Sponge some data to load some RDF triples in the quad store. This can easily be done using the Virtuoso <strong>description.vsp</strong> page which provides a hypertext description of RDF Linked Data, by describing the following page for example (or one of your choice): <div> <pre class="programlisting"> http://cname/about/html/http/news.cnet.com </pre> </div> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Sponge data" src="../images/ui/fb3.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.1. Sponge data</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Sponge data" src="../images/ui/fb4.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.2. Sponge data</td> </tr> </table> </li> <li>Use the Faceted Browser Search and Find User Interface to search for information on "CNET": <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Browser Search" src="../images/ui/fb5.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.1. Faceted Browser Search</td> </tr> </table> </li> <li>Results of the following form should be returned for the data sponged. <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Browser Search Results" src="../images/ui/fb6.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.1. Faceted Browser Search Results</td> </tr> </table> </li> <li>Click "Types" link shown at the right vertical Navigation</li> <li>Results of the classes/properties should be returned: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Results of the classes/properties" src="../images/ui/fb7.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.1. Results of the classes/properties</td> </tr> </table> </li> <li>To get Type description, click "Describe" link for a given type, for ex. "Person". </li> <li>A list of attributes and values should be presented for the given resource. Note that automatically is generated QRCode image for the described entity. <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Results of the classes/properties" src="../images/ui/fb8.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.1. Results of the classes/properties</td> </tr> </table> </li> <li>Return back to the Attributes list from above by going to the "Facets" tab. </li> <li>To exclude a type, un-tick the checkbox associated with the type: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Exclude Type(s)" src="../images/ui/fb9.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.1. Exclude Type(s)</td> </tr> </table> </li> <li>Click the Type URI link</li> <li>Results of excluding the Type(s) should be shown: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Results of Excluded Type(s)" src="../images/ui/fb10.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.1. Results of Excluded Type(s)</td> </tr> </table> </li> <li>The Faceted Browser Web service endpoint can also be queried to obtain the same results: <div> <pre class="programlisting"> $ more cnet.xml <?xml version="1.0"?> <query xmlns="http://openlinksw.com/services/facets/1.0" inference="" same-as=""> <text>CNET</text> <view type="text" limit="20" offset=""/> </query> $ curl -H "Content-Type: text/xml" -d @cnet.xml http://cname/fct/service <fct:facets xmlns:fct="http://openlinksw.com/services/facets/1.0/"> <fct:sparql> SELECT ?s1 as ?c1, (bif:search_excerpt (bif:vector ('CNET'), ?o1)) as ?c2, ?sc, ?rank WHERE {{{ SELECT ?s1, (?sc * 3e-1) as ?sc, ?o1, (sql:rnk_scale (<LONG::IRI_RANK> (?s1))) as ?rank WHERE { ?s1 ?s1textp ?o1 . ?o1 bif:contains '"CNET"' option (score ?sc) . } ORDER BY DESC (?sc * 3e-1 + sql:rnk_scale (<LONG::IRI_RANK> (?s1))) LIMIT 20 OFFSET 0 }}}</fct:sparql> <fct:time>16</fct:time> <fct:complete>yes</fct:complete> <fct:timeout>0</fct:timeout> <fct:db-activity> 131R rnd 36R seq 0P disk 0B / 0 messages</fct:db-activity> <fct:result type="text"> <fct:row> <fct:column datatype="trank">4.5</fct:column> <fct:column datatype="erank">5.881291583872905e-014</fct:column> <fct:column datatype="url" shortform="http://news.com">http://news.com</fct:column> <fct:column>Technology News - CNET News</fct:column> <fct:column><span class="srch_xerpt"><b>CNET</b> News.</span></fct:column> </fct:row> <fct:row> <fct:column datatype="trank">4.5</fct:column> <fct:column datatype="erank">5.881291583872905e-014</fct:column> <fct:column datatype="url" shortform="http://news.cnet.com/2547-1_3-0-20.xml">http://news.cnet.com/2547-1_3-0-20.xml</fct:column> <fct:column>CNET News.com</fct:column> <fct:column><span class="srch_xerpt"><b>CNET</b> News.</span></fct:column> </fct:row> <fct:row> <fct:column datatype="trank">4.5</fct:column> <fct:column datatype="erank">5.881291583872905e-014</fct:column> <fct:column datatype="url" shortform="http://news.cnet.com">http://news.cnet.com</fct:column> <fct:column>Technology News - CNET News</fct:column> <fct:column><span class="srch_xerpt"><b>CNET</b> News.</span></fct:column> </fct:row> <fct:row> <fct:column datatype="trank">3.9</fct:column> <fct:column datatype="erank">5.881291583872905e-014</fct:column> <fct:column datatype="url" shortform="http://news.com">http://news.com</fct:column> <fct:column>Technology News - CNET News</fct:column> <fct:column><span class="srch_xerpt">Technology News <b>CNET</b> News.</span></fct:column> </fct:row> <fct:row> <fct:column datatype="trank">3.9</fct:column> <fct:column datatype="erank">5.881291583872905e-014</fct:column> <fct:column datatype="url" shortform="http://news.cnet.com">http://news.cnet.com</fct:column> <fct:column>Technology News - CNET News</fct:column> <fct:column><span class="srch_xerpt">Technology News <b>CNET</b> News.</span></fct:column> </fct:row> <fct:row> <fct:column datatype="trank">3</fct:column> <fct:column datatype="erank">5.881291583872905e-014</fct:column> <fct:column datatype="url" shortform="http://news.com">http://news.com</fct:column> <fct:column>Technology News - CNET News</fct:column> <fct:column><span class="srch_xerpt">Tech news and business reports by <b>CNET</b> News.</span></fct:column> </fct:row> <fct:row> <fct:column datatype="trank">3</fct:column> <fct:column datatype="erank">5.881291583872905e-014</fct:column> <fct:column datatype="url" shortform="http://news.cnet.com/2547-1_3-0-20.xml">http://news.cnet.com/2547-1_3-0-20.xml</fct:column> <fct:column>CNET News.com</fct:column> <fct:column><span class="srch_xerpt">Tech news and business reports by <b>CNET</b> News.</span></fct:column> </fct:row> <fct:row> <fct:column datatype="trank">3</fct:column> <fct:column datatype="erank">5.881291583872905e-014</fct:column> <fct:column datatype="url" shortform="http://news.cnet.com">http://news.cnet.com</fct:column> <fct:column>Technology News - CNET News</fct:column> <fct:column><span class="srch_xerpt">Tech news and business reports by <b>CNET</b> News.</span></fct:column> </fct:row> <fct:row> <fct:column datatype="trank">3</fct:column> <fct:column datatype="erank">5.881291583872905e-014</fct:column> <fct:column datatype="url" shortform="http://news.com#6">http://news.com#6</fct:column> <fct:column>There's an electric car in your future</fct:column> <fct:column><span class="srch_xerpt">... <b>CNET</b> Car Tech posts photos of electric cars expected to come out by 2011.</span></fct:column> </fct:row> <fct:row> <fct:column datatype="trank">3</fct:column> <fct:column datatype="erank">5.881291583872905e-014</fct:column> <fct:column datatype="url" shortform="http://news.cnet.com/2547-1_3-0-20.xml#9">http://news.cnet.com/2547-1_3-0-20.xml#9</fct:column> <fct:column>There's an electric car in your future</fct:column> <fct:column><span class="srch_xerpt">... <b>CNET</b> Car Tech posts photos of electric cars expected to come out by 2011.</span></fct:column> </fct:row> <fct:row> <fct:column datatype="trank">3</fct:column> <fct:column datatype="erank">5.881291583872905e-014</fct:column> <fct:column datatype="url" shortform="http://news.cnet.com#9">http://news.cnet.com#9</fct:column> <fct:column>There's an electric car in your future</fct:column> <fct:column><span class="srch_xerpt">... <b>CNET</b> Car Tech posts photos of electric cars expected to come out by 2011.</span></fct:column> </fct:row> <fct:row> <fct:column datatype="trank">3</fct:column> <fct:column datatype="erank">5.881291583872905e-014</fct:column> <fct:column datatype="url" shortform="http://news.com#6">http://news.com#6</fct:column> <fct:column>There's an electric car in your future</fct:column> <fct:column><span class="srch_xerpt">... <b>CNET</b> Car Tech posts photos of electric cars expected to come out by 2011.</span></fct:column> </fct:row> <fct:row> <fct:column datatype="trank">3</fct:column> <fct:column datatype="erank">5.881291583872905e-014</fct:column> <fct:column datatype="url" shortform="http://news.cnet.com/2547-1_3-0-20.xml#9">http://news.cnet.com/2547-1_3-0-20.xml#9</fct:column> <fct:column>There's an electric car in your future</fct:column> <fct:column><span class="srch_xerpt">... <b>CNET</b> Car Tech posts photos of electric cars expected to come out by 2011.</span></fct:column> </fct:row> <fct:row> <fct:column datatype="trank">3</fct:column> <fct:column datatype="erank">5.881291583872905e-014</fct:column> <fct:column datatype="url" shortform="http://news.cnet.com#9">http://news.cnet.com#9</fct:column> <fct:column>There's an electric car in your future</fct:column> <fct:column><span class="srch_xerpt">... <b>CNET</b> Car Tech posts photos of electric cars expected to come out by 2011.</span></fct:column> </fct:row> </fct:result> </fct:facets> </pre> </div> </li> <li>Click "New search" from the Entity Relations Navigation and go to "Entity Label Lookup" tab: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Query Faceted Browser Web service endpoint" src="../images/ui/fb11.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.1. Query Faceted Browser Web service endpoint</td> </tr> </table> </li> <li>In the Label auto-complete text box of the Entity Label Lookup tab, enter the name of an rdfs label to be Described: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Select a URI from the list of available Labels" src="../images/ui/fb12.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.1. Select a URI from the list of available Labels</td> </tr> </table> </li> <li>Select a URI from the list of available Labels to obtain a description of the URI: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Select a URI from the list of available Labels" src="../images/ui/fb13.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.1. Select a URI from the list of available Labels</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Select a URI from the list of available Labels" src="../images/ui/fb14.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.2. Select a URI from the list of available Labels</td> </tr> </table> </li> <li>Click "Facets" and go to "Entity URI Lookup" tab: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Enter URI" src="../images/ui/fb15.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.1. Enter URI</td> </tr> </table> </li> <li>In the URI auto-complete text box of the Entity URI Lookup tab enter the name URI to be Described: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Enter URI" src="../images/ui/fb16.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.1. Enter URI</td> </tr> </table> </li> <li>Select a URI from the list of available Labels to obtain a description of the URI: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Obtain a description of the URI" src="../images/ui/fb17.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.1. Obtain a description of the URI</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Obtain a description of the URI" src="../images/ui/fb18.png" /> </td> </tr> <tr> <td>Figure: 14.10.4.2. Obtain a description of the URI</td> </tr> </table> </li> <li>If data is loaded into the quad store via DML functions (TTLP, RDF_LOAD_RDFXML etc.) the following procedure needs to run from <strong>isql</strong> to build the free text indexes required each time: <div> <pre class="programlisting"> VT_INC_INDEX_DB_DBA_RDF_OBJ () </pre> </div> </li> </ol> <br /> <a name="virtuosospongerfaceurilabels" /> <h3>14.10.5. URI Labels</h3> <ol> <li>Go to http://cname/fct</li> <li>Enter a free text search pattern (for example, "Camcorder" as consumer product), and click Search: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="URI Labels" src="../images/ui/fb19.png" /> </td> </tr> <tr> <td>Figure: 14.10.5.1. URI Labels</td> </tr> </table> </li> <li>Your initial query results page will display a list of literal value snippets where for each URL will be displayed a label: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="URI Labels" src="../images/ui/fb20.png" /> </td> </tr> <tr> <td>Figure: 14.10.5.1. URI Labels</td> </tr> </table> </li> <li>Click for ex. on the URL link of the first row result.</li> <li>The product description page should be shown and a list of Attributes and Values will be presented. An URL label of the product also will be shown: "Charges Lithium Ion 800 series batteries": <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="URI Labels" src="../images/ui/fb21.png" /> </td> </tr> <tr> <td>Figure: 14.10.5.1. URI Labels</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="URI Labels" src="../images/ui/fb22.png" /> </td> </tr> <tr> <td>Figure: 14.10.5.2. URI Labels</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="URI Labels" src="../images/ui/fb23.png" /> </td> </tr> <tr> <td>Figure: 14.10.5.3. URI Labels</td> </tr> </table> </li> </ol> <br /> <a name="virtuosospongerfaceusagest" /> <h3>14.10.6. Usage Statistics</h3> <ol> <li>Use the Faceted Browser Search and Find User Interface to search for information on "Michael Jackson": <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Usage Statistics" src="../images/ui/fb24.png" /> </td> </tr> <tr> <td>Figure: 14.10.6.1. Usage Statistics</td> </tr> </table> </li> <li>Results of the following form should be returned for the data sponged: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Usage Statistics" src="../images/ui/fb25.png" /> </td> </tr> <tr> <td>Figure: 14.10.6.1. Usage Statistics</td> </tr> </table> </li> <li>Click the "Types" link under "Entity Relations Navigation". </li> <li>Results about "Michael Jackson" as Type/Label/Count list should be displayed: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Usage Statistics" src="../images/ui/fb26.png" /> </td> </tr> <tr> <td>Figure: 14.10.6.1. Usage Statistics</td> </tr> </table> </li> <li>You can navigate amongst the search results pages by using the "Prev" and "Next" buttons. Click for ex. "Next": <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Usage Statistics" src="../images/ui/fb27.png" /> </td> </tr> <tr> <td>Figure: 14.10.6.1. Usage Statistics</td> </tr> </table> </li> <li>Click a type link, for ex.: <div> <pre class="programlisting"> http://dbpedia.org/class/yago/Artist109812338 </pre> </div> </li> <li>Should be shown type results and: <div> <pre class="programlisting"> Displaying Ranked Entity Names and Text summaries where: Entity1 has any Attribute with Value "Michael Jackson" Drop. Entity1 is a yago:Artist109812338 . Drop </pre> </div> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Usage Statistics" src="../images/ui/fb28.png" /> </td> </tr> <tr> <td>Figure: 14.10.6.1. Usage Statistics</td> </tr> </table> </li> <li>Click the link: <div> <pre class="programlisting"> dbpedia:Michael_Jackson </pre> </div> </li> <li>Results about "Michael Jackson" as Attribute/Value list should be presented: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Usage Statistics" src="../images/ui/fb29.png" /> </td> </tr> <tr> <td>Figure: 14.10.6.1. Usage Statistics</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Usage Statistics" src="../images/ui/fb30.png" /> </td> </tr> <tr> <td>Figure: 14.10.6.2. Usage Statistics</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Usage Statistics" src="../images/ui/fb31.png" /> </td> </tr> <tr> <td>Figure: 14.10.6.3. Usage Statistics</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Usage Statistics" src="../images/ui/fb32.png" /> </td> </tr> <tr> <td>Figure: 14.10.6.4. Usage Statistics</td> </tr> </table> </li> <li>You can navigate amongst the search results pages by using the "First", "Prev", "Next" and "Last" buttons. Click for ex. "Last": <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Usage Statistics" src="../images/ui/fb33.png" /> </td> </tr> <tr> <td>Figure: 14.10.6.1. Usage Statistics</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Usage Statistics" src="../images/ui/fb34.png" /> </td> </tr> <tr> <td>Figure: 14.10.6.2. Usage Statistics</td> </tr> </table> </li> <li>"Metadata" tab.</li> <li>Results of usage statistics for "Michael Jackson" grouped in 4 tabs should be shown: <ol> <li>Referenced by Graphs: shows how many times the URI is found as subject in the relevant graph(s): <div> <pre class="programlisting"> SPARQL SELECT ?g count (*) where { graph ?g { <URI> ?p ?o } } group by ?g order by desc 2 limit 20 </pre> </div> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Usage Statistics" src="../images/ui/fb35.png" /> </td> </tr> <tr> <td>Figure: 14.10.6.1. Usage Statistics</td> </tr> </table> </li> <li>Source Graphs: shows how many times the URI is found as object in the relevant graph(s): <div> <pre class="programlisting"> SPARQL SELECT ?g count (*) where { graph ?g { ?s ?p <URI> } } group by ?g order by desc 2 limit 20 </pre> </div> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Usage Statistics" src="../images/ui/fb36.png" /> </td> </tr> <tr> <td>Figure: 14.10.6.1. Usage Statistics</td> </tr> </table> </li> <li>Direct co-references: shows results as subject and calculated rank, based on running transitive closure over owl:sameAs of the URI in subject or object: <div> <pre class="programlisting"> SPARQL SELECT ?syn ( sql:rnk_scale (<LONG::IRI_RANK> (?syn))) where { { SELECT ?s ?syn where { {?syn owl:sameAs ?s } union {?s owl:sameAs ?syn} } } option (transitive, t_distinct, t_min (0), T_in (?s), t_out (?syn)) . filter (!isliteral (?syn) &amp;&amp; ?s = <URI> ) } order by desc 2 limit 20 </pre> </div> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Usage Statistics" src="../images/ui/fb37.png" /> </td> </tr> <tr> <td>Figure: 14.10.6.1. Usage Statistics</td> </tr> </table> </li> <li>Indirect co-references: shows expanded results for objects concur with the URI by IFP: <div> <pre class="programlisting"> SPARQL SELECT distinct ?syn ?p ?o (sql:rnk_scale (<LONG::IRI_RANK> (?syn))) where { <URI> ?p ?o . filter (0 != (<LONG::bif:rdf_is_sub> ("b3sifp", ?p, lod:ifp_like, 3))) . ?syn ?p ?o . } order by desc 4 limit 20 </pre> </div> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Usage Statistics" src="../images/ui/fb38.png" /> </td> </tr> <tr> <td>Figure: 14.10.6.1. Usage Statistics</td> </tr> </table> </li> </ol> </li> </ol> <br /> <a name="virtuosospongerfacetexample" /> <h3>14.10.7. Examples</h3> <p> <strong>Faceted Browsing Sample using LOD Cloud Cache data space</strong> </p> <p>The following example demonstrates a simple scenario of tracking Kingsley Idehen's conversations across the Web, using the Virtuoso Faceted Browser hosted on LOD.</p> <ol> <li>Go to http://lod.openlinksw.com/fct/ <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/fb2.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> </li> <li>Enter a free text search pattern (for example, "Kingsley Idehen"), and click Search <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f1.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> </li> <li>Your initial query results page will display a list of literal value snippets from property values associated with the query text pattern <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f2.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> </li> <li>Using the Navigation section on the right, click on "Types", which alters the contents of the query results area by presenting CURIE based hyperlinks for each of the Entity Types associated with Property values that contains the query text pattern <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f3.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> </li> <li>You can perform Describe for a given found type, by clicking the "Describe" link in the "Type" column. For ex, for "atom:Entry" the produced describe type page would show a list of Attributes and Values + automatically generated QRCode image: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f4.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> </li> <li>Click "Facets" tab to return to the Types content page from the previous step.</li> <li>Click on the "foaf:Person" link to narrow the result set down to Entities of this Type, un-hatch the checkbox beside this link for Negation (filtering out) based on this Entity Type <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f7.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> <ul> <li>For Negation (filtering out) based on this Entity Type un-hatch the check-box shown besides the link: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f5.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f6.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.2. Faceted Navigation Example</td> </tr> </table> </li> <li>You can filter further, by switching (pivoting) to the a Property based view, by returning to the Navigation section and then clicking on "Properties" or "Referencing Properties" links; in either case, you have further filtering of based on the combination of Properties and Entities where Entities in the result-set contain values matching the query text pattern <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f8.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> </li> <li /> </ul> </li> <li>From "Entity Relations Navigation" click "Attributes". <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f9.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> </li> <li>You can navigate amongst the search results pages by using the "Prev" and "Next" buttons. Click for ex. "Next": <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f10.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> </li> <li>From the list of Property Types, click on the "foaf:interest" link to filter further, based on the values of this property: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f11.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> </li> <li>From the list of "foaf:interest" Values, click on "About:Linked Data", which filters the result-set further to display reveal Entity Identifier Links (Generic HTTP URIs) and Labels for each "foaf:Person" associated with the property "foaf:interest", in the LOD data space: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f12.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> </li> <li>Click on one of the HTTP URIs in the filtered results-set to obtain a detailed structured description of a given Entity i.e. about the person Kingsley Uyi Idehen. Each listed Property is a Link; thus, each Property is a link to other structured Entity descriptions. Additionally, a QRCode image will be produced automatically for the given entity: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f13.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f14.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.2. Faceted Navigation Example</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f15.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.3. Faceted Navigation Example</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f16.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.4. Faceted Navigation Example</td> </tr> </table> </li> <li>You can navigate amongst the search results pages by using the "First", "Prev", "Next" and "Last" buttons. Click for ex. "Last": <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f17.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f18.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.2. Faceted Navigation Example</td> </tr> </table> </li> <li>Click on "Metadata" link to get a summary view of this Linked Data Space, "Source" ¨ and "Reference" graphs are akin to saying "Table X" and "Table Y" where each table is the container of Records re. RDBMS or Worksheet re. Spreadsheet.: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f19.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f20.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.2. Faceted Navigation Example</td> </tr> </table> </li> <li>"Direct" and "InDirect" coreferences show other references (Identifiers) that relate associated with Kingsley Idehen (like saying: here are his other names or his know by this name in this other place): <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="f21 Navigation Example" src="../images/ui/f21.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. f21 Navigation Example</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f22.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.2. Faceted Navigation Example</td> </tr> </table> </li> <li>Click on "Settings" check "owl:sameAs" and it sets a context mode for the session (meaning: a set of rules to take place): <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f23.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> </li> <li>Go back to the "Direct Co-reference" tab: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/f24.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> </li> <li>As result each link will unveil a union (combination) of all the the data associated with all Kingsley Idehen's other Identifiers (other Names in other places), i.e., they all show the same data.</li> <li>Go to "Facets" and then from "Entity Relations Navigation" click "New Search".</li> <li>Enter a free text search pattern (for example, "Camcorder" as consumer product), and click Search: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/fb19.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> </li> <li>Your initial query results page will display a list of literal value snippets where for each URI will be displayed a label: <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/fb20.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> </li> <li>Click for ex. on the URL link ofthe first row result.</li> <li>The product description page should be shown and a list of Attributes and Values will be presented. An URI label of the product also will be shown: "CG-800": <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/fb21.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.1. Faceted Navigation Example</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/fb22.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.2. Faceted Navigation Example</td> </tr> </table> <table class="figure" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <img alt="Faceted Navigation Example" src="../images/ui/fb23.png" /> </td> </tr> <tr> <td>Figure: 14.10.7.3. Faceted Navigation Example</td> </tr> </table> </li> </ol> <br /> <table border="0" width="90%" id="navbarbottom"> <tr> <td align="left" width="33%"> <a href="virtuososponger.html" title="RDFizer Middleware (Sponger)">Previous</a> <br />RDFizer Middleware (Sponger)</td> <td align="center" width="34%"> <a href="rdfandsparql.html">Chapter Contents</a> </td> <td align="right" width="33%"> <a href="virtuosospongerfacent.html" title="Virtuoso Faceted Web Service">Next</a> <br />Virtuoso Faceted Web Service</td> </tr> </table> </div> <div id="footer"> <div>Copyright© 1999 - 2009 OpenLink Software All rights reserved.</div> <div id="validation"> <a href="http://validator.w3.org/check/referer"> <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /> </a> <a href="http://jigsaw.w3.org/css-validator/"> <img src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" height="31" width="88" /> </a> </div> </div> </body> </html>