query-ad25dde52d80f4be8704b8c4dceb9364
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?type ?typeLabel ?extension ?extensionLabel ?implemented ?usedSince ?usedSinceRef
WHERE
{
?type wdt:P31/wdt:P279* wd:Q19798645.
?type wdt:P31*/wdt:P279* ?super.
?super p:P1535 ?usedByStmt.
?usedByStmt ps:P1535 wd:Q2013.
OPTIONAL {?super wdt:P361 ?extension . ?extension wdt:P31 wd:Q6805426}
OPTIONAL {?type wdt:P571 ?implemented}
OPTIONAL {
?usedByStmt pq:P580 ?usedSince.
OPTIONAL { ?usedByStmt prov:wasDerivedFrom [pr:P854 ?usedSinceRef] }
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY COALESCE(?usedSince, ?implemented)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?extension"):::projected
v2("?implemented"):::projected
v4("?super")
v3("?type"):::projected
v5("?usedByStmt")
v1("?usedSince"):::projected
v7("?usedSinceRef"):::projected
a1((" "))
a2((" "))
a3((" "))
c3(["wd:Q19798645"]):::iri
c14(["bd:serviceParam"]):::iri
c8(["wd:Q6805426"]):::iri
c16(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q2013"]):::iri
v3 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
v3 --"p:direct/P31"--> a2
a2 --"p:direct/P279"--> v4
v4 --"p:P1535"--> v5
v5 --"p:statement/P1535"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:direct/P361".-> v6
v6 --"p:direct/P31"--> c8
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P571".-> v2
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:qualifier/P580".-> v1
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
a3 -."p:reference/P854".-> v7
v5 --"prov:wasDerivedFrom"--> a3
end
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end