Author: buildbot
Date: Fri Jan 13 14:11:49 2012
New Revision: 802554
Log:
Staging update by buildbot for stanbol
Modified:
websites/staging/stanbol/trunk/content/stanbol/docs/trunk/factstore/specification.html
Modified:
websites/staging/stanbol/trunk/content/stanbol/docs/trunk/factstore/specification.html
==============================================================================
---
websites/staging/stanbol/trunk/content/stanbol/docs/trunk/factstore/specification.html
(original)
+++
websites/staging/stanbol/trunk/content/stanbol/docs/trunk/factstore/specification.html
Fri Jan 13 14:11:49 2012
@@ -197,20 +197,23 @@
<p>Data: The query is specified by a JSON-LD object in the payload of the
request. The query defines a "select" to specify the desired type of result to
be returned in the result set. The "from" part specifies the fact type to query
and the "where" clause specifies constraints to be fulfilled.</p>
<p><em>Note</em>: For the moment constraints only support the equals "="
relation. There may be more relations like ">" in future versions of this
specification. If there is more than one constraint all constraints are
concatenated by "AND".</p>
<p>Example 1: POST /factstore/query with the following data</p>
-<p>{
- "@context" : {
- "iks" : "http://iks-project.eu/ont/"
- },
- "select" : [ "person" ],
- "from" : "iks:employeeOf",
- "where" : [
- {
- "=" : {
- "organization" : { "@iri" : "http://uni-paderborn.de" }
- }
- }
- ]
- }</p>
+<div class="codehilite"><pre><span class="p">{</span>
+ <span class="s">"@context"</span> <span class="p">:</span> <span
class="p">{</span>
+ <span class="s">"iks"</span> <span class="p">:</span> <span
class="s">"http://iks-project.eu/ont/"</span>
+ <span class="p">},</span>
+ <span class="s">"select"</span> <span class="p">:</span> <span
class="p">[</span> <span class="s">"person"</span> <span
class="p">],</span>
+ <span class="s">"from"</span> <span class="p">:</span> <span
class="s">"iks:employeeOf"</span><span class="p">,</span>
+ <span class="s">"where"</span> <span class="p">:</span> <span
class="p">[</span>
+ <span class="p">{</span>
+ <span class="s">"="</span> <span class="p">:</span> <span
class="p">{</span>
+ <span class="s">"organization"</span> <span
class="p">:</span> <span class="p">{</span> <span
class="s">"@iri"</span> <span class="p">:</span> <span
class="s">"http://uni-paderborn.de"</span> <span class="p">}</span>
+ <span class="p">}</span>
+ <span class="p">}</span>
+ <span class="p">]</span>
+<span class="p">}</span>
+</pre></div>
+
+
<p>returns the list of all persons participating in the fact of type
http://iks-project.eu/ont/employeeOf where the organization is
http://uni-paderborn.de. The result is sent back in JSON-LD format with the
result set specified by the select clause.</p>
<div class="codehilite"><pre><span class="p">{</span>
<span class="s">"@subject"</span> <span class="p">:</span> <span
class="p">[</span>