<docbook><section><title>VirtuosoFctHtmlPivotViewer</title><para> </para>
<title>Using HtmlPivotViewer to View Results from Facet Browsing.</title>Using HtmlPivotViewer to View Results from Facet Browsing.
<para>The Faceted Browser, usually the /fct endpoint on a Virtuoso Server, can be used to search and explore linked data triples held in Virtuoso <ulink url="http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtuosoLODSampleTutorial">(see example)</ulink>.
 <ulink url="http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSparqlCxmlHtmlPivotViewer">HtmlPivotViewer</ulink> is a data visualisation tool that is integrated into the Virtuoso faceted browser to give a alternative method of visualising and manipulating the data.
 A typical use case would be to search using the facet browser and to coarsely filter the results to get a collection containing a manageable number of entities.
 This collection can then be displayed in <ulink url="HtmlPivotViewer">HtmlPivotViewer</ulink> for further filtering and manipulation.</para>
<para>The following example illustrates one possible search sequence.
 For this example I am using <ulink url="http://dbpedia-live.openlinksw.com/fct/">the faceted browser</ulink> on <ulink url="http://dbpedia-live.openlinksw.com/">dbpedia live</ulink></para>
<para>Supposing I am interested in finding out about different variations of the waltz ballroom dance I might start by entering &#39;waltz&#39; into the search box.</para>
<figure><graphic fileref="VirtuosoFctHtmlPivotViewer/search_waltz.png" /></figure><para>A simple free text search of the string waltz returns around 1800 results.
 Many of those results are not specifically about the dance the waltz.
 For example the results contains several pieces of music with the word waltz in the title.</para>
<figure><graphic fileref="VirtuosoFctHtmlPivotViewer/results.png" /></figure><para>However, in the list of results I can see an entity called the dbpedia:slow_waltz.
 If I click on this link I get a description of the dbpedia:slow_waltz that shows it is an entity with a type <ulink url="http://dbpedia.org/class/yago/TripleTimeDances.">http://dbpedia.org/class/yago/TripleTimeDances.</ulink></para>
<figure><graphic fileref="VirtuosoFctHtmlPivotViewer/describe_slowwaltz.png" /></figure><para>Selecting yago:TripleTimeDances takes me to a page that describes that entity type.</para>
<figure><graphic fileref="VirtuosoFctHtmlPivotViewer/describe_tripletimedance.png" /></figure><para>From here I have the option to start a new facet based on this entity type.
 I will get results that are all triple time dances including a number of different types of waltz.</para>
<figure><graphic fileref="VirtuosoFctHtmlPivotViewer/dance_entities.png" /></figure><para>If I now select <emphasis>View as a Pivot Collection</emphasis> I can use <ulink url="http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSparqlCxmlHtmlPivotViewer">HtmlPivotViewer</ulink> to visualise and further explore the results collection.
 <ulink url="http://dbpedia-live.openlinksw.com/HtmlPivotViewer/?url=http%3A%2F%2Fdbpedia-live.openlinksw.com%2Fc%2F9RO4WNP%23%24view%24%3D1">Results in HtmlPivotViewer</ulink>.</para>
<figure><graphic fileref="VirtuosoFctHtmlPivotViewer/pvdances.png" /></figure><para>Scrolling down in the filter panel brings me to the dcterms:subject facet which contains the value Category:waltz.
 If I filter on this category I get 7 results which are all waltz dances.
 <ulink url="http://dbpedia-live.openlinksw.com/HtmlPivotViewer/?url=http%3A%2F%2Fdbpedia-live.openlinksw.com%2Fc%2F9RO4WNP%23%24view%24%3D1%26dcterms%3Asubject%3DEQ.Category%3AWaltz">Filtered results</ulink></para>
<figure><graphic fileref="VirtuosoFctHtmlPivotViewer/pv_dances.png" /></figure><para>Switching to the table view of the results and selecting the <emphasis>has abstract</emphasis> predicate allows me to get a quick overview of the different types of waltz in the collection.
 <ulink url="http://dbpedia-live.openlinksw.com/HtmlPivotViewer/?url=http%3A%2F%2Fdbpedia-live.openlinksw.com%2Fc%2F9RO4WNP%23%24view%24%3D3%26%24tableFacet%24%3Dhas%20abstract%26dcterms%3Asubject%3DEQ.Category%3AWaltz">Results in table form</ulink></para>
<figure><graphic fileref="VirtuosoFctHtmlPivotViewer/pv_table.png" /></figure><para>If I then decide I am interested in finding out more about one particular dance for example the Viennese Waltz I can select that item and clear the selected predicate to show all the information about the selected item.
 I can also  follow the <emphasis>More About the Subject</emphasis> link to take me to the <ulink url="http://en.wikipedia.org/wiki/Viennese_Waltz">Wikipedia page</ulink> that was the original source of the linked data in <ulink url="http://dbpedia-live.openlinksw.com/">dbpedia-live</ulink>.</para>
<figure><graphic fileref="VirtuosoFctHtmlPivotViewer/pv_viennese.png" /></figure> </section></docbook>