Example Querying The Facet Browser Web Service endpoint
$ more cnet.xml
<?xml version="1.0"?>
<query xmlns="http://openlinksw.com/services/facets/1.0" inference="" same-as="">
<text>CNET</text>
<view type="text" limit="20" offset=""/>
</query>
$ curl -H "Content-Type: text/xml" -d @cnet.xml http://cname/fct/service
<fct:facets xmlns:fct="http://openlinksw.com/services/facets/1.0/">
<fct:sparql> select ?s1 as ?c1, (bif:search_excerpt (bif:vector ('CNET'), ?o1)) as ?c2, ?sc, ?rank where {{{ select ?s1, (?sc * 3e-1) as ?sc, ?o1, (sql:rnk_scale (<LONG::IRI_RANK> (?s1))) as ?rank where { ?s1 ?s1textp ?o1 . ?o1 bif:contains '"CNET"' option (score ?sc) . } order by desc (?sc * 3e-1 + sql:rnk_scale (<LONG::IRI_RANK> (?s1))) limit 20 offset 0 }}}</fct:sparql>
<fct:time>16</fct:time>
<fct:complete>yes</fct:complete>
<fct:timeout>0</fct:timeout>
<fct:db-activity> 131R rnd 36R seq 0P disk 0B / 0 messages</fct:db-activity>
<fct:result type="text">
<fct:row>
<fct:column datatype="trank"><![CDATA[4.5]]></fct:column>
<fct:column datatype="erank"><![CDATA[5.881291583872905e-014]]></fct:column>
<fct:column datatype="url" shortform="http://news.com"><![CDATA[http://news.com]]></fct:column>
<fct:column><![CDATA[Technology News - CNET News]]></fct:column>
<fct:column><![CDATA[<span class="srch_xerpt"><b>CNET</b> News.</span>]]></fct:column>
</fct:row>
<fct:row>
<fct:column datatype="trank"><![CDATA[4.5]]></fct:column>
<fct:column datatype="erank"><![CDATA[5.881291583872905e-014]]></fct:column>
<fct:column datatype="url" shortform="http://news.cnet.com/2547-1_3-0-20.xml"><![CDATA[http://news.cnet.com/2547-1_3-0-20.xml]]></fct:column>
<fct:column><![CDATA[CNET News.com]]></fct:column>
<fct:column><![CDATA[<span class="srch_xerpt"><b>CNET</b> News.</span>]]></fct:column>
</fct:row>
<fct:row>
<fct:column datatype="trank"><![CDATA[4.5]]></fct:column>
<fct:column datatype="erank"><![CDATA[5.881291583872905e-014]]></fct:column>
<fct:column datatype="url" shortform="http://news.cnet.com"><![CDATA[http://news.cnet.com]]></fct:column>
<fct:column><![CDATA[Technology News - CNET News]]></fct:column>
<fct:column><![CDATA[<span class="srch_xerpt"><b>CNET</b> News.</span>]]></fct:column>
</fct:row>
<fct:row>
<fct:column datatype="trank"><![CDATA[3.9]]></fct:column>
<fct:column datatype="erank"><![CDATA[5.881291583872905e-014]]></fct:column>
<fct:column datatype="url" shortform="http://news.com"><![CDATA[http://news.com]]></fct:column>
<fct:column><![CDATA[Technology News - CNET News]]></fct:column>
<fct:column><![CDATA[<span class="srch_xerpt">Technology News <b>CNET</b> News.</span>]]></fct:column>
</fct:row>
<fct:row>
<fct:column datatype="trank"><![CDATA[3.9]]></fct:column>
<fct:column datatype="erank"><![CDATA[5.881291583872905e-014]]></fct:column>
<fct:column datatype="url" shortform="http://news.cnet.com"><![CDATA[http://news.cnet.com]]></fct:column>
<fct:column><![CDATA[Technology News - CNET News]]></fct:column>
<fct:column><![CDATA[<span class="srch_xerpt">Technology News <b>CNET</b> News.</span>]]></fct:column>
</fct:row>
<fct:row>
<fct:column datatype="trank"><![CDATA[3]]></fct:column>
<fct:column datatype="erank"><![CDATA[5.881291583872905e-014]]></fct:column>
<fct:column datatype="url" shortform="http://news.com"><![CDATA[http://news.com]]></fct:column>
<fct:column><![CDATA[Technology News - CNET News]]></fct:column>
<fct:column><![CDATA[<span class="srch_xerpt">Tech news and business reports by <b>CNET</b> News.</span>]]></fct:column>
</fct:row>
<fct:row>
<fct:column datatype="trank"><![CDATA[3]]></fct:column>
<fct:column datatype="erank"><![CDATA[5.881291583872905e-014]]></fct:column>
<fct:column datatype="url" shortform="http://news.cnet.com/2547-1_3-0-20.xml"><![CDATA[http://news.cnet.com/2547-1_3-0-20.xml]]></fct:column>
<fct:column><![CDATA[CNET News.com]]></fct:column>
<fct:column><![CDATA[<span class="srch_xerpt">Tech news and business reports by <b>CNET</b> News.</span>]]></fct:column>
</fct:row>
<fct:row>
<fct:column datatype="trank"><![CDATA[3]]></fct:column>
<fct:column datatype="erank"><![CDATA[5.881291583872905e-014]]></fct:column>
<fct:column datatype="url" shortform="http://news.cnet.com"><![CDATA[http://news.cnet.com]]></fct:column>
<fct:column><![CDATA[Technology News - CNET News]]></fct:column>
<fct:column><![CDATA[<span class="srch_xerpt">Tech news and business reports by <b>CNET</b> News.</span>]]></fct:column>
</fct:row>
<fct:row>
<fct:column datatype="trank"><![CDATA[3]]></fct:column>
<fct:column datatype="erank"><![CDATA[5.881291583872905e-014]]></fct:column>
<fct:column datatype="url" shortform="http://news.com#6"><![CDATA[http://news.com#6]]></fct:column>
<fct:column><![CDATA[There's an electric car in your future]]></fct:column>
<fct:column><![CDATA[<span class="srch_xerpt">... <b>CNET</b> Car Tech posts photos of electric cars expected to come out by 2011.</span>]]></fct:column>
</fct:row>
<fct:row>
<fct:column datatype="trank"><![CDATA[3]]></fct:column>
<fct:column datatype="erank"><![CDATA[5.881291583872905e-014]]></fct:column>
<fct:column datatype="url" shortform="http://news.cnet.com/2547-1_3-0-20.xml#9"><![CDATA[http://news.cnet.com/2547-1_3-0-20.xml#9]]></fct:column>
<fct:column><![CDATA[There's an electric car in your future]]></fct:column>
<fct:column><![CDATA[<span class="srch_xerpt">... <b>CNET</b> Car Tech posts photos of electric cars expected to come out by 2011.</span>]]></fct:column>
</fct:row>
<fct:row>
<fct:column datatype="trank"><![CDATA[3]]></fct:column>
<fct:column datatype="erank"><![CDATA[5.881291583872905e-014]]></fct:column>
<fct:column datatype="url" shortform="http://news.cnet.com#9"><![CDATA[http://news.cnet.com#9]]></fct:column>
<fct:column><![CDATA[There's an electric car in your future]]></fct:column>
<fct:column><![CDATA[<span class="srch_xerpt">... <b>CNET</b> Car Tech posts photos of electric cars expected to come out by 2011.</span>]]></fct:column>
</fct:row>
<fct:row>
<fct:column datatype="trank"><![CDATA[3]]></fct:column>
<fct:column datatype="erank"><![CDATA[5.881291583872905e-014]]></fct:column>
<fct:column datatype="url" shortform="http://news.com#6"><![CDATA[http://news.com#6]]></fct:column>
<fct:column><![CDATA[There's an electric car in your future]]></fct:column>
<fct:column><![CDATA[<span class="srch_xerpt">... <b>CNET</b> Car Tech posts photos of electric cars expected to come out by 2011.</span>]]></fct:column>
</fct:row>
<fct:row>
<fct:column datatype="trank"><![CDATA[3]]></fct:column>
<fct:column datatype="erank"><![CDATA[5.881291583872905e-014]]></fct:column>
<fct:column datatype="url" shortform="http://news.cnet.com/2547-1_3-0-20.xml#9"><![CDATA[http://news.cnet.com/2547-1_3-0-20.xml#9]]></fct:column>
<fct:column><![CDATA[There's an electric car in your future]]></fct:column>
<fct:column><![CDATA[<span class="srch_xerpt">... <b>CNET</b> Car Tech posts photos of electric cars expected to come out by 2011.</span>]]></fct:column>
</fct:row>
<fct:row>
<fct:column datatype="trank"><![CDATA[3]]></fct:column>
<fct:column datatype="erank"><![CDATA[5.881291583872905e-014]]></fct:column>
<fct:column datatype="url" shortform="http://news.cnet.com#9"><![CDATA[http://news.cnet.com#9]]></fct:column>
<fct:column><![CDATA[There's an electric car in your future]]></fct:column>
<fct:column><![CDATA[<span class="srch_xerpt">... <b>CNET</b> Car Tech posts photos of electric cars expected to come out by 2011.</span>]]></fct:column>
</fct:row>
</fct:result>
</fct:facets>
Related
- Facets Web Service:
- Linked Data
- Facet Browser Installation and configuration
- Facet APIs
- Pivot Viewer and CXML
- Tutorials
- Downloads