query-6ed9cb02641c55b475de133193469a23
Propertiesequivalent property (P1628)external subproperty (P2236)external superproperty (P2235)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?wdt ?wdLabel ?equivalent ?externalSubproperty ?externalSuperproperty
WHERE {
?wd wikibase:directClaim ?wdt.
OPTIONAL {?wd wdt:P1628 ?equivalent}
OPTIONAL {?wd wdt:P2236 ?externalSubproperty}
OPTIONAL {?wd wdt:P2235 ?externalSuperproperty}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
FILTER(BOUND(?equivalent) || BOUND(?externalSubproperty) || BOUND(?externalSuperproperty))
}
ORDER BY ?wd ?equivalent ?externalSubproperty ?externalSuperproperty
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?equivalent"):::projected
v3("?externalSubproperty"):::projected
v4("?externalSuperproperty"):::projected
v1("?wd")
v5("?wdt"):::projected
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
f0[["(bound(?equivalent) || (bound(?externalSubproperty) || bound(?externalSuperproperty)))"]]
f0 --> v2
f0 --> v3
f0 --> v4
v1 --"wikibase:directClaim"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1628".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2236".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2235".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end