query-4a792dfd5f289f9d33eaeda2c8fa735b
Propertiessubclass of (P279)facet of (P1269)studied in (P2579)maintained by WikiProject (P6104)equivalent class (P1709)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
CONSTRUCT {
?class rdf:type owl:Class;
rdfs:label ?classLabel;
schema:description ?classDescription;
skos:altLabel ?classAlias;
rdfs:subClassOf ?superClass;
owl:equivalentClass ?equivalentClass.
} WHERE {
{
VALUES ?top { wd:Q2188189 wd:Q115669410 wd:Q110879422 wd:Q18127 wd:Q32178211 wd:Q638 wd:Q65007448 wd:Q746359 wd:Q115927938 wd:Q15190726 wd:Q1760309 wd:Q5057302 }
?class wdt:P279* ?top.
} UNION {
VALUES ?theme { wd:Q638 wd:Q164204 }
?class wdt:P279*/(wdt:P1269|wdt:P2579) ?theme.
} UNION {
?class wdt:P6104 wd:Q5830855.
}
?class wdt:P279 ?superClass;
rdfs:label ?classLabel FILTER(lang(?classLabel) = 'en').
OPTIONAL { ?class schema:description ?classDescription FILTER(lang(?classDescription) = 'en'). }
OPTIONAL { ?class skos:altLabel ?classAlias FILTER(lang(?classAlias) = 'en'). }
OPTIONAL { ?class wdt:P1709 ?equivalentClass. }
}
ORDER BY ?class
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v13("?_const_15732a70_uri"):::projected
v14("?_const_4592be07_uri")
v12("?_const_5fa4fb96_uri"):::projected
v10("?_const_7e619dcc_uri")
v11("?_const_9285ccfc_uri"):::projected
v15("?_const_aabebca2_uri")
v9("?_const_f5e5585a_uri")
v1("?class"):::projected
v2("?classAlias"):::projected
v4("?classDescription"):::projected
v3("?classLabel"):::projected
v8("?equivalentClass"):::projected
v7("?superClass"):::projected
v6("?theme"):::projected
v5("?top"):::projected
a1((" ")):::projected
c6(["wd:Q5830855"]):::iri
f0[["?classLabel = 'en'"]]
f0 --> v3
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P6104"--> c6
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
bind1[/VALUES ?theme/]
bind1-->v6
bind10(["wd:Q638"])
bind10 --> bind1
bind11(["wd:Q164204"])
bind11 --> bind1
v1 --"wdt:P279"--> a1
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
a1 --"wdt:P2579"--> v6
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
a1 --"wdt:P1269"--> v6
end
union2r <== or ==> union2l
end
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
bind2[/VALUES ?top/]
bind2-->v5
bind20(["wd:Q2188189"])
bind20 --> bind2
bind21(["wd:Q115669410"])
bind21 --> bind2
bind22(["wd:Q110879422"])
bind22 --> bind2
bind23(["wd:Q18127"])
bind23 --> bind2
bind24(["wd:Q32178211"])
bind24 --> bind2
bind25(["wd:Q638"])
bind25 --> bind2
bind26(["wd:Q65007448"])
bind26 --> bind2
bind27(["wd:Q746359"])
bind27 --> bind2
bind28(["wd:Q115927938"])
bind28 --> bind2
bind29(["wd:Q15190726"])
bind29 --> bind2
bind210(["wd:Q1760309"])
bind210 --> bind2
bind211(["wd:Q5057302"])
bind211 --> bind2
v1 --"wdt:P279"--> v5
end
union0r <== or ==> union0l
end
v1 --"wdt:P279"--> v7
v1 --"rdfs:label"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."schema:description".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."skos:altLabel".-> v2
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1709".-> v8
end
bind3[/""a""/]
bind3 --as--o v9
bind4[/"'owl:Class'"/]
bind4 --as--o v10
bind5[/"'rdfs:label'"/]
bind5 --as--o v11
bind6[/"'schema:description'"/]
bind6 --as--o v12
bind7[/"'skos:altLabel'"/]
bind7 --as--o v13
bind8[/"'rdfs:subClassOf'"/]
bind8 --as--o v14
bind9[/"'owl:equivalentClass'"/]
bind9 --as--o v15