You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/index.html
+10-10
Original file line number
Diff line number
Diff line change
@@ -384,7 +384,7 @@ <h2>Definition</h2>
384
384
<sectionid="docElement">
385
385
<h3>Document Element</h3>
386
386
<p>The <ahref="#defn-srd">SPARQL Results Document</a> begins with <code>sparql</code> document element in the <code>http://www.w3.org/2005/sparql-results#</code> namespace, written as follows:</p>
<p>Inside the <code>sparql</code> element are two sub-elements, <code>head</code> and a results element (either <code>results</code> or <code>boolean</code>) which must appear in that order.</p>
395
395
<p>If no literals with base direction appear in the results, the <code>sparql</code> document element may be simplified as follows.</p>
<p>Inside the <code>head</code> element, the ordered sequence of variable names chosen are used to create empty child elements <code>variable</code> with the variable name as the value of an
414
414
attribute <code>name</code> giving a document like this:</p>
<p>For any query result, <code>head</code> may also contain <code>link</code> child elements with an <code>href</code> attribute containing a relative URI that provides a link to some additional
434
434
metadata about the query results. The relative URI is resolved against the in-scope base URI which is usually the query results format document URI. <code>link</code> elements must appear after any
435
435
<code>variable</code> elements that are present.</p>
solution. It is used to record how the query variables bind to <adata-cite="RDF12-CONCEPTS#dfn-rdf-term">RDF Terms</a>.</p>
478
478
<p>Each binding inside a solution is written as an element <code>binding</code> as a child of <code>result</code> with the query variable name as the value of the <code>name</code> attribute. So
479
479
for a result binding two variables <em>x</em> and <em>hpage</em> it would look like:</p>
<p><strong>Note:</strong> The blank node label <em>I</em> is scoped to the result set XML document and need not have any association to the blank node label for that RDF Term in the query
530
530
graph.</p>
531
531
<p>An example of a query solution encoded in this format is as follows:</p>
<p>A boolean result is written as the element content of a <code>boolean</code> child-element of the <code>sparql</code> element directly after a <code>head</code>, containing either
616
616
<code>true</code> or <code>false</code> as follows:</p>
0 commit comments