Skip to content

Commit a545cf0

Browse files
domelafs
authored andcommitted
change pre element
1 parent 2f11b7b commit a545cf0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

spec/index.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ <h2>Definition</h2>
384384
<section id="docElement">
385385
<h3>Document Element</h3>
386386
<p>The <a href="#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>
387-
<pre>&lt;?xml version="1.0"?&gt;
387+
<pre class="box xml">&lt;?xml version="1.0"?&gt;
388388
&lt;sparql xmlns="http://www.w3.org/2005/sparql-results#"
389389
xmlns:its="http://www.w3.org/2005/11/its"
390390
its:version="2.0"&gt;
@@ -393,7 +393,7 @@ <h3>Document Element</h3>
393393
</pre>
394394
<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>
395395
<p>If no literals with base direction appear in the results, the <code>sparql</code> document element may be simplified as follows.</p>
396-
<pre>&lt;?xml version="1.0"?&gt;
396+
<pre class="box xml">&lt;?xml version="1.0"?&gt;
397397
&lt;sparql xmlns="http://www.w3.org/2005/sparql-results#"&gt;
398398
...
399399
&lt;/sparql&gt;
@@ -412,7 +412,7 @@ <h3>Header</h3>
412412
used, the order of the names is undefined.</p>
413413
<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
414414
attribute <code>name</code> giving a document like this:</p>
415-
<pre>&lt;?xml version="1.0"?&gt;
415+
<pre class="box xml">&lt;?xml version="1.0"?&gt;
416416
&lt;sparql xmlns="http://www.w3.org/2005/sparql-results#"
417417
xmlns:its="http://www.w3.org/2005/11/its"
418418
its:version="2.0"&gt;
@@ -433,7 +433,7 @@ <h3>Header</h3>
433433
<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
434434
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
435435
<code>variable</code> elements that are present.</p>
436-
<pre>&lt;?xml version="1.0"?&gt;
436+
<pre class="box xml">&lt;?xml version="1.0"?&gt;
437437
&lt;sparql xmlns="http://www.w3.org/2005/sparql-results#"
438438
xmlns:its="http://www.w3.org/2005/11/its"
439439
its:version="2.0"&gt;
@@ -457,7 +457,7 @@ <h4>Variable Binding Results</h4>
457457
<p>The <code>results</code> element contains the complete sequence of query results.</p>
458458
<p>For each <a data-cite="SPARQL12-QUERY#defn_sparqlSolutionMapping">Query Solution</a> in the query results, a <code>result</code> child-element of
459459
<code>results</code> is added giving a document like:</p>
460-
<pre>&lt;?xml version="1.0"?&gt;
460+
<pre class="box xml">&lt;?xml version="1.0"?&gt;
461461
&lt;sparql xmlns="http://www.w3.org/2005/sparql-results#"
462462
xmlns:its="http://www.w3.org/2005/11/its"
463463
its:version="2.0"&gt;
@@ -477,7 +477,7 @@ <h4>Variable Binding Results</h4>
477477
solution. It is used to record how the query variables bind to <a data-cite="RDF12-CONCEPTS#dfn-rdf-term">RDF Terms</a>.</p>
478478
<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
479479
for a result binding two variables <em>x</em> and <em>hpage</em> it would look like:</p>
480-
<pre>&lt;?xml version="1.0"?&gt;
480+
<pre class="box xml">&lt;?xml version="1.0"?&gt;
481481
&lt;sparql xmlns="http://www.w3.org/2005/sparql-results#"
482482
xmlns:its="http://www.w3.org/2005/11/its"
483483
its:version="2.0"&gt;
@@ -529,7 +529,7 @@ <h4>Variable Binding Results</h4>
529529
<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
530530
graph.</p>
531531
<p>An example of a query solution encoded in this format is as follows:</p>
532-
<pre>&lt;?xml version="1.0"?&gt;
532+
<pre class="box xml">&lt;?xml version="1.0"?&gt;
533533
&lt;sparql xmlns="http://www.w3.org/2005/sparql-results#"
534534
xmlns:its="http://www.w3.org/2005/11/its"
535535
its:version="2.0"&gt;
@@ -568,7 +568,7 @@ <h4>Variable Binding Results</h4>
568568
&lt;/sparql&gt;
569569
</pre>
570570
<p>An example of a query solution that includes triple terms is as follows:</p>
571-
<pre>&lt;?xml version="1.0"?&gt;
571+
<pre class="box xml">&lt;?xml version="1.0"?&gt;
572572
&lt;sparql xmlns="http://www.w3.org/2005/sparql-results#"
573573
xmlns:its="http://www.w3.org/2005/11/its"
574574
its:version="2.0"&gt;
@@ -614,7 +614,7 @@ <h4>Variable Binding Results</h4>
614614
<h4>Boolean Results</h4>
615615
<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
616616
<code>true</code> or <code>false</code> as follows:</p>
617-
<pre>&lt;?xml version="1.0"?&gt;
617+
<pre class="box xml">&lt;?xml version="1.0"?&gt;
618618
&lt;sparql xmlns="http://www.w3.org/2005/sparql-results#"&gt;
619619
... head ...
620620

@@ -667,7 +667,7 @@ <h2>XML Schemas</h2>
667667
Note: this schema is machine-generated from the RELAX NG XML schema.</li>
668668
</ol>
669669
<p>If W3C XML Schema is used, an <code>xsi:schemaLocation</code> attribute can be used pointing to the schema as follows:</p>
670-
<pre>&lt;?xml version="1.0"?&gt;
670+
<pre class="box xml">&lt;?xml version="1.0"?&gt;
671671
&lt;sparql xmlns="http://www.w3.org/2005/sparql-results#"
672672
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
673673
xsi:schemaLocation="http://www.w3.org/2005/sparql-results# http://www.w3.org/2007/SPARQL/result.xsd"&gt;

0 commit comments

Comments
 (0)