query-eeb669c6fa21c13afdac219df1239167
External equivalent/sub classes PREFIX wikibase: http://wikiba.se/ontology# SELECT ?wdClass ?label ?equivalentClass ?subclassOfExternal WHERE { {?wdClass wdt:P279+/wdt:P1709 ?subclassOfExternal} UNION {?wdClass wdt:P1709 ?equivalentClass} ?wdClass rdfs:label ?label. FILTER(LANG(?label)="en")
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
} LIMIT 1000
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#External equivalent/sub classes
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?wdClass ?label ?equivalentClass ?subclassOfExternal
WHERE {
{?wdClass wdt:P279+/wdt:P1709 ?subclassOfExternal}
UNION
{?wdClass wdt:P1709 ?equivalentClass}
?wdClass rdfs:label ?label.
FILTER(LANG(?label)="en")
# SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?equivalentClass"):::projected
v1("?label"):::projected
v3("?subclassOfExternal"):::projected
v2("?wdClass"):::projected
a1((" "))
f0[["?label = 'en'"]]
f0 --> v1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P1709"--> v4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P279"--> a1
a1 --"wdt:P1709"--> v3
end
union0r <== or ==> union0l
end
v2 --"rdfs:label"--> v1