query-6140e9b8de048c6191e067665808b0fa
Propertiesequivalent class (P1709)equivalent property (P1628)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX bgn: <http://bibliograph.net/>
SELECT ?bgn ?class ?classLabel ?classDescription ?property ?propertyLabel ?propertyDescription
WHERE {
{
?class wdt:P1709 ?bgn .
FILTER(STRSTARTS(STR(?bgn), STR(bgn:)))
}
UNION
{
?property wdt:P1628 ?bgn .
FILTER(STRSTARTS(STR(?bgn), STR(bgn:)))
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?bgn
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?bgn"):::projected
v2("?class"):::projected
v3("?property"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
f0[["starts-with(str(?bgn),str(http://bibliograph.net/))"]]
f0 --> v1
v3 --"wdt:P1628"--> v1
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
f1[["starts-with(str(?bgn),str(http://bibliograph.net/))"]]
f1 --> v1
v2 --"wdt:P1709"--> v1
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end