Virtuoso Faceted Browser Installation and configuration
Prerequisites
Requires Virtuoso 6.0 TP1 or higher for use.
Pre Installation
If you have an existing Virtuoso 6.x installation, and your Quad Store has more than 10,000 triples, please run these commands using the Virtuosoisql program before installing the Faceted Browser VAD.Note: This step may take sometime depending on how many triples are already in your Quad Store.
VAD Package Installation
- Download the Virtuoso Faceted Browser VAD package, and install it using the Install Packages section of the System Admin -> Packages tab of the Conductor.
- Grant
selectprivileges on theRDF_QUADtable to theSPARQLuser:
GRANT SELECT ON DB.DBA.RDF_QUAD TO "SPARQL";
- An updated Virtuoso RDF Mappers VAD may be required.
Download the RDF Mappers VAD package, and install it as you did the Virtuoso Faceted Browser VAD, above.
- 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.
- The Faceted Browser Engine exposes a REST API at the endpoint:
http://<cname>/fct/service.
Post Installation
- Build Full Text Indexes by running the following commands using the Virtuoso
isqlprogram:
RDF_OBJ_FT_RULE_ADD (null, null, 'All'); VT_INC_INDEX_DB_DBA_RDF_OBJ ();
- Run the following procedure using the Virtuoso
isqlprogram to periodically populate label lookup tables and activate theLabeltext box of theURI Lookup(by Label)tab:
urilbl_ac_init_db()
- Run the following procedure using the Virtuoso
isqlprogram to calculate the IRI ranks. Note: This should be re-run periodically as the data grows to re-rank the IRIs.
s_rank()
- Sponge some data to load some RDF triples in the quad store.
This can easily be done by loading the following URL in a Web browser, as it will use the built-in Virtuoso
description.vsppage 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://<cname>/about/html/http://news.cnet.com/
- Use the Faceted Browser Search and Find User Interface to search for information on "CNET"
- Results of the following form should be returned for the data sponged.
- Click Types link shown at the right vertical Navigation
- Results of the classes/properties should be returned:
- To exclude a type, un-tick the checkbox associated with the type:
- Click the Type URI link
- Results of excluding the Type(s) should be shown:
- The Faceted Browser Web service endpoint can also be queried to obtain the same results.
- In the Label text box of the URI Lookup (by Label) tab, enter the name of an rdfs label to be
Described:
- Select a URI from the list of available Labels to obtain a description of the URI:
- In the URI text box of the URI Lookup tab enter the name URI to be
Described:
- Select a URI from the list of available Labels to obtain a description of the URI:
- If data is loaded into the quad store via DML functions (
TTLP,RDF_LOAD_RDFXML, etc.), the following procedure needs to be run fromisqlto rebuild the free text indexes each time:
VT_INC_INDEX_DB_DBA_RDF_OBJ ()
Usage Statistics
- Use the Faceted Browser Search and Find User Interface to search for information on "Michael Jackson":
- Results of the following form should be returned for the data sponged.
- Click the "Types" link under "Navigation"
- Results about "Michael Jackson" as Type/Label/Count list should be returned.
- Click a type link, for ex.:
dbpedia-owl:Artist
- Should be shown type results and:
Displaying types of e1 where: e1 has any property whose value contains "Michael Jackson". e1 is a dbpedia-owl:Artist . Drop
- Click the "Show values" link under "Navigation"
- Results should be shown for "Michael Jackson" as values and text summaries associated with pattern:
Displaying values and text summaries associated with pattern e1 where: e1 has any property whose value contains "Michael Jackson". e1 is a dbpedia-owl:Artist . Drop
- Click the link:
dbpedia:Michael_Jackson
- Results about "Michael Jackson" as property/value list should be returned:
- Click the "Usage Statistics" link under "Actions" shown right of the list.
- Results of usage statistics for "Michael Jackson" grouped in 4 tabs should be shown:
- Referenced by Graphs: shows how many times the URI is found as subject in the relevant graph(s):
sparql select ?g count (*) where { graph ?g { <URI> ?p ?o } } group by ?g order by desc 2 limit 20;
- Source Graphs: shows how many times the URI is found as object in the relevant graph(s):
sparql select ?g count (*) where { graph ?g { ?s ?p <URI> } } group by ?g order by desc 2 limit 20;
- 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:
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) && ?s = <URI> ) } order by desc 2 limit 20;
- Indirect co-references: shows expanded results for objects concur with the URI by IFP:
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;
- Referenced by Graphs: shows how many times the URI is found as subject in the relevant graph(s):
Tutorials
Related
- Virtuoso Facets Web Service
- Faceted Views over Large-Scale Linked Data
- Virtuoso APIs for FCT REST services
- Virtuoso 6.0 TP1
- Virtuoso Faceted Browser VAD package