query-fc90d66984e574dae3642cd4770f033e
Get all W3C ontologies SELECT DISTINCT ?item ?itemLabel WHERE { ?item wdt:P31? / wdt:P279 wd:Q324254. ?item ( wdt:P31? / wdt:P279 / ( wdt:P797| wdt:P123 | wdt:P790 | wdt:P797 | wdt:P50 | wdt:P1462 ) ) wd:Q37033. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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#>
# Get all W3C ontologies
SELECT DISTINCT ?item ?itemLabel WHERE
{
?item wdt:P31? / wdt:P279* wd:Q324254.
?item ( wdt:P31? / wdt:P279* / ( wdt:P797| wdt:P123 | wdt:P790 | wdt:P797 | wdt:P50 | wdt:P1462 ) ) wd:Q37033.
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
a1((" "))
a2((" "))
a3((" "))
c11(["bd:serviceParam"]):::iri
c5(["wd:Q37033"]):::iri
c3(["wd:Q324254"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> a1
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
a1 --"wdt:P279"--> c3
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> a2
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
end
union1r <== or ==> union1l
end
a2 --"wdt:P279"--> a3
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
subgraph union4[" Union "]
subgraph union4l[" "]
style union4l fill:#abf,stroke-dasharray: 3 3;
subgraph union5[" Union "]
subgraph union5l[" "]
style union5l fill:#abf,stroke-dasharray: 3 3;
subgraph union6[" Union "]
subgraph union6l[" "]
style union6l fill:#abf,stroke-dasharray: 3 3;
a3 --"wdt:P1462"--> c5
end
subgraph union6r[" "]
style union6r fill:#abf,stroke-dasharray: 3 3;
a3 --"wdt:P50"--> c5
end
union6r <== or ==> union6l
end
end
subgraph union5r[" "]
style union5r fill:#abf,stroke-dasharray: 3 3;
a3 --"wdt:P797"--> c5
end
union5r <== or ==> union5l
end
end
subgraph union4r[" "]
style union4r fill:#abf,stroke-dasharray: 3 3;
a3 --"wdt:P790"--> c5
end
union4r <== or ==> union4l
end
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
a3 --"wdt:P123"--> c5
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
a3 --"wdt:P797"--> c5
end
union2r <== or ==> union2l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end