diff --git a/spec/index.html b/spec/index.html index ecbcf04..df38478 100644 --- a/spec/index.html +++ b/spec/index.html @@ -388,11 +388,20 @@
The SPARQL Results Document begins with sparql
document element in the http://www.w3.org/2005/sparql-results#
namespace, written as follows:
<?xml version="1.0"?> -<sparql xmlns="http://www.w3.org/2005/sparql-results#"> +<sparql xmlns="http://www.w3.org/2005/sparql-results#" + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> ... </sparql>
Inside the sparql
element are two sub-elements, head
and a results element (either results
or boolean
) which must appear in that order.
If no literals with base direction appear in the results, the sparql
document element may be simplified as follows.
<?xml version="1.0"?> +<sparql xmlns="http://www.w3.org/2005/sparql-results#"> + ... +</sparql> ++
Different values of its:version
are allowed.
Inside the head
element, the ordered sequence of variable names chosen are used to create empty child elements variable
with the variable name as the value of an
attribute name
giving a document like this:
<?xml version="1.0"?> -<sparql xmlns="http://www.w3.org/2005/sparql-results#"> +<sparql xmlns="http://www.w3.org/2005/sparql-results#" + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> <head> <variable name="x"/> @@ -426,7 +437,9 @@Header
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.link
elements must appear after anyvariable
elements that are present.<?xml version="1.0"?> -<sparql xmlns="http://www.w3.org/2005/sparql-results#"> +<sparql xmlns="http://www.w3.org/2005/sparql-results#" + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> <head> ... @@ -448,7 +461,9 @@Variable Binding Results
For each Query Solution in the query results, a
result
child-element ofresults
is added giving a document like:<?xml version="1.0"?> -<sparql xmlns="http://www.w3.org/2005/sparql-results#"> +<sparql xmlns="http://www.w3.org/2005/sparql-results#" + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> ... head ... <results> @@ -466,7 +481,9 @@Variable Binding Results
Each binding inside a solution is written as an element
binding
as a child ofresult
with the query variable name as the value of thename
attribute. So for a result binding two variables x and hpage it would look like:<?xml version="1.0"?> -<sparql xmlns="http://www.w3.org/2005/sparql-results#"> +<sparql xmlns="http://www.w3.org/2005/sparql-results#" + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> <head> <variable name="x"/> <variable name="hpage"/> @@ -493,8 +510,10 @@Variable Binding Results
<binding><uri>
U</uri></binding>
<binding><literal>
S</literal></binding>
<binding><literal xml:lang="
L">
S</literal></binding>
<binding><literal xml:lang="
L" its:dir="
B">
S</literal></binding>
<binding><literal datatype="
D">
S</literal></binding>
An example of a query solution encoded in this format is as follows:
<?xml version="1.0"?> -<sparql xmlns="http://www.w3.org/2005/sparql-results#"> +<sparql xmlns="http://www.w3.org/2005/sparql-results#" + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> <head> <variable name="x"/> @@ -551,7 +572,9 @@Variable Binding Results
An example of a query solution that includes quoted triples is as follows:
<?xml version="1.0"?> -<sparql xmlns="http://www.w3.org/2005/sparql-results#"> +<sparql xmlns="http://www.w3.org/2005/sparql-results#" + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> <head> <variable name="x"/> diff --git a/spec/output-quoted.srx b/spec/output-quoted.srx index feb7a96..8e1a095 100644 --- a/spec/output-quoted.srx +++ b/spec/output-quoted.srx @@ -1,7 +1,9 @@+ xsi:schemaLocation="http://www.w3.org/2001/sw/DataAccess/rf1/result2.xsd" + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0"> diff --git a/spec/output.srx b/spec/output.srx index c9652b9..d8a5793 100644 --- a/spec/output.srx +++ b/spec/output.srx @@ -1,7 +1,9 @@ + xsi:schemaLocation="http://www.w3.org/2001/sw/DataAccess/rf1/result2.xsd" + xmlns:its="http://www.w3.org/2005/11/its" + its:version="2.0">