%META:TOPICPARENT{name="VirtuosoFacetsWebService"}% ---+Virtuoso Facets Web Service: Examples for customizing different types %TOC% Note: In all examples from below the default namespace declaration: xmlns="http://openlinksw.com/services/facets/1.0/", is omitted for brevity. ---++Examples ---+++For people called Mike Mike ---+++To open the list of people who Mike knows Mike ---+++To show the list of subjects Mike knows Mike ---+++To show the properties of people Mike knows Mike ---+++To show the names Mike ---+++To specify one named Joe Mike Joe This lists the properties of the friends of Mike that are called Joe. ---+++To show the Mikes that know a Joe To show the Mikes that know a Joe, one would change the shown variable in the navigation and get: Mike Joe This would be the search summaries of subjects with Mike in some field that know a subject with name Joe. ---+++To specify that Mike must be a member of a discussion board Mike Joe This lists the properties of triples whom object is Mike. ---+++To pick all sioc members Pick sioc:member_of Mike Joe This would show things where Mike is a member. ---+++To specify that the thing must be a forum Mike Joe This shows classes of things where Mike is a member. ---+++To specify sioc:Forum Clicking on sioc:Forum gives: Mike Joe The view stays with classes, but now scoped to the classes of things where Mike is a member that are instances of sioc:Forum. ---+++To look at the list of Mikes with the added restriction To go look at the list of Mikes with the added restriction, click the shown variable in the navigation and set it to s1. Mike Joe ---+++To say that Joe must also have a geekCode To say that Joe must also have a geekCode, one clicks the shown variable and sets it to s2 and the view to properties. Mike Joe ---+++Pick geekCode Mike Joe ---+++To take the focus back to Mike We specify no restriction on the geekCode. Click the shown variable to take the focus back to Mike. Mike Joe ---+++Looking up property count curl -H "Content-Type: text/xml" -d @post.xml http://lod.openlinksw.com/fct/service Where 'post.xml' document contains query document: Mike Produces the [[VirtuosoFacetsWebServiceCustmExamplesEx1][following response]]. ---+++Looking up instances of a class curl -H "Content-Type: text/xml" -d @post.xml http://lod.openlinksw.com/fct/service Where 'post.xml' document contains query document: Mike Produces the [[VirtuosoFacetsWebServiceCustmExamplesEx2][following response]]. Note: If the entire <text> element is missing, the FCT service will not add a bif:contains to the triple pattern. Thus it is possible to search for some property or class, etc. For example: is executed as: SELECT ?s2p AS ?c1 COUNT (*) AS ?c2 WHERE { ?s1 ?s2 . ?s2 ?s2p ?s2o . } GROUP BY ?s2p ORDER BY DESC 2 LIMIT 20 ---++Related * Facets Web Service: * [[VirtuosoFacetsWebService][Virtuoso Facets Web Service]] * Linked Data: * [[VirtuosoFacetsViewsLinkedData][Faceted Views over Large-Scale Linked Data]] * Facet Browser Installation and configuration: * [[VirtFacetBrowserInstallConfig][Virtuoso Facet Browser Installation and configuration]] * 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 Facet Browser Web Service endpoint]] * [[http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtVisualizeWithPivotViewer#GenFCT][Visualizing Your Data With PivotViewer Using The Facet Browser]] * [[VirtTipsAndTricksCustomControlLabelsURI][Custom Controlling Virtuoso Labels for URI functionality Example]] * [[VirtuosoFacetsWebServiceChoiceExample][Facets Web Service: Choice of Labels Example]] * Downloads: * [[http://shop.openlinksw.com/license_generator/virtuoso-download/][Latest Virtuoso]] * [[https://virtuoso.openlinksw.com/download/][Virtuoso Facet Browser VAD package]]