query-e21e9d7e38d44cf708c068b6d2613afa
Synia: Shape Expressions
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
?item ?itemLabel ?itemDescription
?shex ?shexLabel ?shexUrl
WHERE {
?item wdt:P12861 ?shex
BIND(CONCAT(SUBSTR(STR(?shex), 32), " ↗") AS ?shexLabel)
BIND(CONCAT("https://www.wikidata.org/wiki/EntitySchema:", SUBSTR(STR(?shex), 32)) AS ?shexUrl)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?shex"):::projected
v3("?shexLabel"):::projected
v4("?shexUrl"):::projected
c3(["bd:serviceParam"]):::iri
c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P12861"--> v2
bind0[/"concat(substring(str(?shex),'32^^xsd:integer'),' ↗')"/]
v2 --o bind0
bind0 --as--o v3
bind1[/"concat('https://www.wikidata.org/wiki/EntitySchema:',substring(str(?shex),'32^^xsd:integer'))"/]
v2 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end