query-d7d173f99606afcdceae7a7cb9e9596f
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?constraint ?constraintLabel ?dataType ?dataTypeLabel
WHERE
{
?constraint wdt:P31/wdt:P279* wd:Q21502402.
OPTIONAL {
?constraint wdt:P8956 ?dataType.
?dataType wdt:P31/wdt:P279* wd:Q19798645.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ?dataTypeLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?constraint"):::projected
v3("?dataType"):::projected
v1("?dataTypeLabel"):::projected
a1((" "))
a2((" "))
c7(["bd:serviceParam"]):::iri
c5(["wd:Q19798645"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q21502402"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P8956".-> v3
v3 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end