query-ba164a4117d64513ae189a46e8b4aaf5
Propertiesinstance of (P31)subclass of (P279)facet of (P1269)
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 ?sbLabel ?propLabel ?prop
WHERE
{
# TODO: ?item wdt:P31 wd:Q21099935 .
?prop wdt:P31 ?propClass .
?propClass wdt:P279 wd:Q18616576 .
?propClass wdt:P1269 ?sb . ## P1269; P361 - 0; P642 - 0
{ ?sb wdt:P31+ wd:Q2465832 }
UNION { ?sb wdt:P31 wd:Q336 } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
} ORDER BY ?sbLabel ?propLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?prop"):::projected
v4("?propClass")
v2("?propLabel"):::projected
v5("?sb")
v1("?sbLabel"):::projected
c5(["wd:Q2465832"]):::iri
c6(["wd:Q336"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["en"]):::literal
c3(["wd:Q18616576"]):::iri
v3 --"wdt:P31"--> v4
v4 --"wdt:P279"--> c3
v4 --"wdt:P1269"--> v5
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v5 --"wdt:P31"--> c6
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v5 --"wdt:P31"--> c5
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end