A set of SPARQL examples that are used in different TGX resources
Lists prefixes used in this database.
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?prefix ?namespace WHERE {
[] sh:declare [
sh:prefix ?prefix ;
sh:namespace ?namespace
] .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?namespace"):::projected
v1("?prefix"):::projected
a2((" "))
a1((" "))
a1 --"sh:prefix"--> v1
a1 --"sh:namespace"--> v2
a2 --"sh:declare"--> a1