Skip to content

Commit 133a862

Browse files
#128: Added links to prefix declaration (#356)
1 parent 88fd51b commit 133a862

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

shacl12-sparql/index.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,9 @@ <h3>An Example SPARQL-based Constraint</h3>
595595
}
596596
""" ;
597597
] .
598+
599+
ex:
600+
sh:declare ... # See <a href="#prefixes-example">prefix declarations</a>
598601
</div>
599602
</div>
600603
<p>
@@ -658,6 +661,9 @@ <h3>An Example SPARQL-based Constraint</h3>
658661
}
659662
""" ;
660663
] .
664+
665+
ex:
666+
sh:declare ... # See <a href="#prefixes-example">prefix declarations</a>
661667
</div>
662668
</div>
663669
</aside>
@@ -699,20 +705,20 @@ <h4>Prefix Declarations for SPARQL Queries</h4>
699705
A <a>shapes graph</a> may include declarations of namespace prefixes so that these prefixes can be used to abbreviate the SPARQL queries derived from the same shapes graph.
700706
The syntax of such prefix declarations is illustrated by the following example.
701707
</p>
702-
<aside class="example">
708+
<aside class="example" id="prefixes-example">
703709
<div class="shapes-graph">
704710
<div class="turtle">
705711
ex:
706-
a owl:Ontology ;
707-
owl:imports sh: ;
708712
sh:declare [
709713
sh:prefix "ex" ;
710714
sh:namespace "http://example.com/ns#"^^xsd:anyURI ;
711715
] ;
712716
sh:declare [
713717
sh:prefix "schema" ;
714718
sh:namespace "http://schema.org/"^^xsd:anyURI ;
715-
] .
719+
] ;
720+
a owl:Ontology ; # Optional
721+
owl:imports sh: . # Optional
716722
</div>
717723
</div>
718724
</aside>

0 commit comments

Comments
 (0)