%META:TOPICPARENT{name="VOSIndex"}%
---+ Installation and Configuration of the Virtuoso Faceted Browser
%TOC%
---++ Prerequisites
Requires Virtuoso 6.0 TP1 or higher, either [[http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VOSDownload][Open Source]] or [[http://shop.openlinksw.com/license_generator/virtuoso-download/][Commercial Edition]].
---++ Pre Installation
Note: This step is not required for Virtuoso Release 6.1 and later.
If you have an existing Virtuoso 6.0 installation, and your Quad Store has more than 10,000 triples, please run
[[VirtFacetBrowserInstallConfigCommands][these commands]] using the Virtuoso isql
program
before installing the Faceted Browser VAD.
Note: This step may take some time depending on how many triples are already in your Quad Store.
---++ VAD Package Installation
1 Install the Virtuoso Faceted Browser VAD package called fct
from the available packages listed in the Install Packages section of the System Admin -> Packages tab of the Virtuoso Conductor. As an alternative you can [[http://virtuoso.openlinksw.com/download/][download the VAD]] from our public download store.
%BR%%BR%%BR%%BR%
1 The HTML interface of the Faceted Browser Engine is exposed at: http://<cname>/fct
, where
"cname" is the <hostname>:<port-number> your Virtuoso instance is running on.
%BR%%BR%%BR%%BR%
1 The Faceted Browser Engine exposes a REST API at the endpoint: http://<cname>/fct/service
.
---++ Post Installation
1 Build Full Text Indexes by running the following commands using the Virtuoso isql
program:
RDF_OBJ_FT_RULE_ADD (null, null, 'All');
VT_INC_INDEX_DB_DBA_RDF_OBJ ();
1 Run the following procedure using the Virtuoso isql
program to periodically populate label lookup
tables and activate the Label
text box of the Entity Label Lookup
tab:
urilbl_ac_init_db()
1 Run the following procedure using the Virtuoso isql
program to calculate the IRI ranks.
Note: This should be re-run periodically as the data grows to re-rank the IRIs.
s_rank()
1 Fetch some Network Resources data to load some RDF triples in the quad store. This can easily be done by first installing the Virtuoso [[https://virtuoso.openlinksw.com/download/][Sponger Middleware]] VAD and then loading the following
URL in a Web browser, which will use the built-in Virtuoso description.vsp
page to provides a hypertext
description of RDF Linked Data. You may substitute any live Web page URL for "http://news.cnet.com/
"
but it is best if you select one known to have plenty of data.
http:///about/html/http://news.cnet.com/
%BR%%BR%
%BR%%BR%%BR%%BR%
1 Use the Faceted Browser Search and Find User Interface to search for information on "CNET":
%BR%%BR%%BR%%BR%
1 Results of the following form should be returned for the Network resource being fetched:
%BR%%BR%%BR%%BR%
1 Click Types link shown at the right vertical Navigation:
1 Results of the classes/properties should be returned:
%BR%%BR%%BR%%BR%
1 To get Type description, click "Describe" link for a given type, for ex. "Person".
1 A list of attributes and values should be presented for the given resource. Note that automatically is generated QRCode image for the described entity.
%BR%%BR%%BR%%BR%
1 Return back to the Attributes list from above by going to the "Facets" tab.
1 To exclude a type, un-tick the checkbox associated with the type:
%BR%%BR%%BR%%BR%
1 Click the Type URI link:
1 Results of excluding the Type(s) should be shown:
%BR%%BR%%BR%%BR%
1 The Faceted Browser Web service endpoint [[VirtFacetBrowserInstallConfigQueried][can also be queried to obtain the same results]].
1 Click "New search" from the Entity Relations Navigation and go to "Entity Label Lookup" tab:
%BR%%BR%%BR%%BR%
1 In the Label auto-complete text box of the Entity Label Lookup tab, enter the name of an rdfs label to be Described
:
%BR%%BR%%BR%%BR%
1 Select a URI from the list of available Labels to obtain a description of the URI:
%BR%%BR%%BR%%BR%
%BR%%BR%%BR%%BR%
1 Click "Facets" and go to "Entity URI Lookup" tab:
%BR%%BR%%BR%%BR%
1 In the URI auto-complete text box of the Entity URI Lookup tab enter the name URI to be Described
:
%BR%%BR%%BR%%BR%
1 Select a URI from the list of available Labels to obtain a description of the URI:
%BR%%BR%%BR%
%BR%%BR%%BR%%BR%
1 If data is loaded into the quad store via DML functions (TTLP
, RDF_LOAD_RDFXML
,
etc.), the following procedure needs to be run from isql
to rebuild the free text indexes each time:
VT_INC_INDEX_DB_DBA_RDF_OBJ ()
---+++ URI Labels
1 Go to http://<cname>/fct/
1 Enter a free text search pattern (for example, "Camcorder
" as consumer product), and click Search:
%BR%%BR%%BR%%BR%
1 Your initial query results page will display a list of literal value snippets where for each URL will be displayed a label:
%BR%%BR%%BR%%BR%
1 Click for ex. on the URL link of the first row result.
1 The product description page should be shown and a list of Attributes and Values will be presented:
%BR%%BR%
%BR%%BR%%BR%%BR%
#UsageStatistics
---+++ Usage Statistics
1 Use the Faceted Browser Search and Find User Interface to search for information on "Michael Jackson":
%BR%%BR%%BR%%BR%
1 Results of the following form should be returned for the Network Resource being fetched:
%BR%%BR%%BR%%BR%
1. Click the "Types" link under "Entity Relations Navigation".
1. Results about "Michael Jackson" as Type/Label/Count list should be displayed:
%BR%%BR%%BR%%BR%
1 You can navigate amongst the search results pages by using the "<" and ">" buttons. Click for ex. ">" in order to view the next page results:
%BR%%BR%%BR%%BR%
1. Click a type link, for ex.:
yago:EpicRecordsArtist
1. Displaying Ranked Entity Names and Text summaries should be shown:
%BR%%BR%%BR%%BR%
1. Click the link:
dbpedia:Michael_Jackson
1 Results about "Michael Jackson" as Attribute/Value list should be presented:
%BR%%BR%
%BR%%BR%
%BR%%BR%%BR%%BR%
1 Go to "Metadata" tab.
1 Results of usage statistics for "Michael Jackson" grouped in 4 tabs should be shown:
1. Source Documents: shows how many times the URI is found as object in the relevant graph(s):
SPARQL
SELECT ?g
COUNT (*)
WHERE
{
GRAPH ?g { ?s ?p }
}
GROUP BY ?g
ORDER BY DESC 2
LIMIT 20
;
%BR%%BR%%BR%%BR%
1. Referenced by Documents: shows how many times the URI is found as subject in the relevant graph(s):
SPARQL
SELECT ?g
COUNT (*)
WHERE
{
GRAPH ?g { ?p ?o }
}
GROUP BY ?g
ORDER BY DESC 2
LIMIT 20
;
%BR%%BR%%BR%%BR%
1. Explicit Coreferences: shows results as subject and calculated rank, based on running transitive closure over owl:sameAs of the URI in subject or object:
SPARQL
SELECT ?syn
( sql:rnk_scale ( (?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) && ?s = )
}
ORDER BY DESC 2
LIMIT 20
;
%BR%%BR%%BR%%BR%
1. Implicit Coreferences: shows expanded results for objects concur with the URI by IFP:
SPARQL
SELECT DISTINCT ?syn ?p ?o (sql:rnk_scale ( (?syn)))
WHERE
{
?p ?o .
FILTER (0 != ( ("b3sifp", ?p, lod:ifp_like, 3))) .
?syn ?p ?o .
}
ORDER BY DESC 4
LIMIT 20
;
%BR%%BR%%BR%%BR%
---++ Tutorials
* [[VirtuosoLODSampleTutorial][Linked Data Pivot (Faceted Data Exploration) Tutorial]].
---++ Related
* Downloads
* Virtuoso [[http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VOSDownload][Open Source]] or [[http://virtuoso.openlinksw.com/download/][Commercial Edition]]
* [[http://virtuoso.openlinksw.com/download/][Virtuoso Faceted Browser and other VAD downloads]]
* Facets Web Service
* [[VirtuosoFacetsWebService][Virtuoso Facets Web Service]]
* Linked Data
* [[VirtuosoFacetsViewsLinkedData][Faceted Views over Large-Scale Linked Data]]
* Facet APIs
* [[VirtFacetBrowserAPIs][Virtuoso APIs for FCT REST services]]
* [[VirtFacetBrowserAPIsFCTEXEC][fct_exec
API Example]]
* Pivot Viewer and CXML
* [[http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtSparqlCxmlFacetPivotBridge#AncSparqlCxmlFacetPivotBridge][Facet Pivot Bridge - A bridge to PivotViewer from Virtuoso's Faceted query service for RDF]]
* [[http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtSparqlCxml#AncFacetTypeAutoDetection][Auto-Detection of Facet Type]]
* Tutorials
* [[VirtuosoLODSampleTutorial][Faceted Browsing Sample using LOD Cloud Cache data space]]
* [[VirtuosoFacetsWebServiceSOAPExample][SOAP Facets Example]]
* [[VirtFacetBrowserInstallConfigQueried][Querying The Faceted Browser Web Service endpoint]]
* [[VirtFCTFeatureQueries][Virtuoso Faceted Browser Featured Queries]]
* [[http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtVisualizeWithPivotViewer#GenFCT][Visualizing Your Data With PivotViewer Using The Faceted Browser]]
* [[VirtTipsAndTricksCustomControlLabelsURI][Custom Controlling Virtuoso Labels for URI functionality Example]]
* [[VirtuosoFacetsWebServiceCustmExamples][Facets Web Service: Examples for customizing different types]]
* [[VirtuosoFacetsWebServiceChoiceExample][Facets Web Service: Choice of Labels Example]]