VirtFacetBrowserAPIsFCTEXEC fct_exec API Example fct_exec API Example The following example shows how to use the fct_exec APi in vsp page to perform a "text" search for the word "Mike" assuming that exists in your Virtuoso RDF store (if not amend the query in the fct_example.vsp code sample below to search for text known to exist). The service can be used in the following sample fct_example.vsp: <?vsp declare txt, reply, tree any; declare timeout int; tree := xtree_doc (' <query> <text>Mike</text> <view type="text"/> </query> '); timeout := 3000; reply := fct_exec (tree, timeout); txt := string_output (); http_value (xslt ('virt://WS.WS.SYS_DAV_RES.RES_FULL_PATH.RES_CONTENT:/DAV/fct_example.xsl', reply, vector ()), null, txt); http (txt); ?> The xsl can be viewed here. The result of executing the fct_example.vsp should be:
Related Facets Web Service: Virtuoso Facets Web Service Linked Data: Faceted Views over Large-Scale Linked Data Facet Browser Installation and configuration: Virtuoso Facet Browser Installation and configuration Facet APIs: Virtuoso APIs for FCT REST services Pivot Viewer and CXML: Facet Pivot Bridge - A bridge to PivotViewer from Virtuoso's Faceted query service for RDF Auto-Detection of Facet Type Tutorials: Faceted Browsing Sample using LOD Cloud Cache data space SOAP Facets Example Querying The Facet Browser Web Service endpoint Virtuoso Facet Browser Featured Queries Visualizing Your Data With PivotViewer Using The Facet Browser Custom Controlling Virtuoso Labels for URI functionality Example Facets Web Service: Examples for customizing different types Facets Web Service: Choice of Labels Example Downloads: Latest Virtuoso Virtuoso Facet Browser VAD package