File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -604,6 +604,38 @@ <h4>Variable Binding Results</h4>
604
604
</results>
605
605
606
606
</sparql>
607
+ </ pre >
608
+
609
+ < p >
610
+ As an alternative to including the `xml:its` declaration in every result
611
+ set, the namespace can be declared on specific elements as needed:
612
+ </ p >
613
+
614
+ < pre class ="box xml "> <?xml version="1.0"?>
615
+ <sparql xmlns="http://www.w3.org/2005/sparql-results#">
616
+ <head>
617
+ <variable name="animal"/>
618
+ </head>
619
+ <results>
620
+ <result>
621
+ <binding name="animal">
622
+ <literal xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"
623
+ xml:lang="ar" its:dir="rtl">قطة</literal>
624
+ </binding>
625
+ </result>
626
+ <result>
627
+ <binding name="animal">
628
+ <literal xml:lang="en">cat</literal>
629
+ </binding>
630
+ </result>
631
+ <result>
632
+ <binding name="animal">
633
+ <literal xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"
634
+ xml:lang="fr" its:dir="ltr">chat</literal>
635
+ </binding>
636
+ </result>
637
+ </results>
638
+ </sparql>
607
639
</ pre >
608
640
</ section >
609
641
You can’t perform that action at this time.
0 commit comments