xmlns="http://openlinksw.com/services/facets/1.0/", is omitted for brevity.<query> <text>Mike</text> <view type="text"/> </query>
<query> <text>Mike</text> <view type="properties"/> </query>
<query>
<text>Mike</text>
<property iri="[foaf:knows]">
<view type="list" />
</property>
</query>
<query>
<text>Mike</text>
<property iri="[foaf:knows]">
<view type="properties" />
</property>
</query>
<query>
<text>Mike</text>
<property iri="[foaf:knows]">
<property iri="[foaf:name]">
<view type="list" />
</property>
</property>
</query>
<query>
<text>Mike</text>
<property iri="[foaf:knows]">
<property iri="[foaf:name]">
<value datatype="string">Joe</value>
</property>
<view type="properties" />
</property>
</query>
This lists the properties of the friends of Mike that are called Joe.
To show the Mikes that know a Joe, one would change the shown variable in the navigation and get:
<query>
<text>Mike</text>
<property iri="[foaf:knows]">
<property iri="[foaf:name]">
<value datatype="string">Joe</value>
</property>
</property>
<view type="text" />
</query>
This would be the search summaries of subjects with Mike in some field that know a subject with name Joe.
<query>
<text>Mike</text>
<property iri="[foaf:knows]">
<property iri="[foaf:name]">
<value datatype="string">Joe</value>
</property>
</property>
<view type="property-in" />
</query>
This lists the properties of triples whom object is Mike.
sioc:member_of <query>
<text>Mike</text>
<property iri="[foaf:knows]">
<property iri="[foaf:name]">
<value datatype="string">Joe</value>
</property>
</property>
<property-of iri="sioc:member_of">
<view type="list" />
</property-of>
</query>
This would show things where Mike is a member.
<query>
<text>Mike</text>
<property iri="[foaf:knows]">
<property iri="[foaf:name]">
<value datatype="string">Joe</value>
</property>
</property>
<property-of iri="sioc:member_of">
<view type="classes" />
</property-of>
</query>
This shows classes of things where Mike is a member.
sioc:Forum gives: <query>
<text>Mike</text>
<property iri="[foaf:knows]">
<property iri="[foaf:name]">
<value datatype="string">Joe</value>
</property>
</property>
<property-of iri="sioc:member_of">
<class iri="sioc:Forum" />
<view type="classes"/>
</property-of>
</query>
The view stays with classes, but now scoped to the classes of things where Mike is a member that are instances of sioc:Forum.
s1.
<query>
<text>Mike</text>
<property iri="[foaf:knows]">
<property iri="[foaf:name]">
<value datatype="string">Joe</value>
</property>
</property>
<property-of iri="sioc:member_of">
<class iri="sioc:Forum" />
</property-of>
<view type="list"/>
</query>
s2 and the view to properties.
<query>
<text>Mike</text>
<property iri="[foaf:knows]">
<property iri="[foaf:name]">
<value datatype="string">Joe</value>
</property>
<view type="properties"/>
</property>
<property-of iri="sioc:member_of">
<class iri="sioc:Forum" />
</property-of>
</query>
<query>
<text>Mike</text>
<property iri="[foaf:knows]">
<property iri="[foaf:name]">
<value datatype="string">Joe</value>
</property>
<property iri="geekCode">
<view type="list"/>
</property>
</property>
<property-of iri="sioc:member_of">
<class iri="sioc:Forum" />
</property-of>
</query>
<query>
<text>Mike</text>
<property iri="[foaf:knows]">
<property iri="[foaf:name]">
<value datatype="string">Joe</value>
</property>
<property iri="geekCode"></property>
</property>
<property-of iri="sioc:member_of">
<class iri="sioc:Forum" />
</property-of>
<view type="text"/>
</query>
curl -H "Content-Type: text/xml" -d @post.xml http://lod.openlinksw.com/fct/service
Where 'post.xml' document contains query document:
<?xml version="1.0"?>
<query>
<text>Mike</text>
<property iri="[foaf:knows]">
<view type="list-count" limit="20" />
</property>
</query>
Produces the following response.
curl -H "Content-Type: text/xml" -d @post.xml http://lod.openlinksw.com/fct/service
Where 'post.xml' document contains query document:
<?xml version="1.0"?> <query> <text>Mike</text> <class iri="[foaf:Person]"/> <view type="list" limit="10" /> </query>
Produces the following response.
Note: If the entire <text> element is missing, the FCT service will not add abif:contains to the triple pattern.
Thus it is possible to search for some property or class, etc.
For example: <query>
<property iri="[foaf:knows]">
<view type="properties" limit="20" offset="0"/>
</property>
</query>
is executed as:
SELECT ?s2p AS ?c1
COUNT (*) AS ?c2
WHERE
{
?s1 <http://xmlns.com/foaf/0.1/knows> ?s2 .
?s2 ?s2p ?s2o .
}
GROUP BY ?s2p
ORDER BY DESC 2
LIMIT 20