query-f40f36529538bd30914515a21808c46c
Use OWL equivalent properties) equivalent properties in Wikidata. (equivalentProperty:owl equivalentProperty:owl P1628:wdtHere for example with rdfs:subClassOf, which is equivalent (wdt:1628) to wdt:P279. In OWL, if I’m not mistaken, we could have a rule like . general prosecutorsHere we search the various types of prosecutors rdfs:subClassOf
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?prosecutor
WHERE {
?prosecutor ?propProperty wd:Q3368517 .
?propEntity wdt:P1628 rdfs:subClassOf .
?propEntity wikibase:directClaim ?propProperty .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?propEntity")
v2("?propProperty")
v1("?prosecutor"):::projected
c1(["wd:Q3368517"]):::iri
c3(["rdfs:subClassOf"]):::iri
v1 -->v2--> c1
v3 --"wdt:P1628"--> c3
v3 --"wikibase:directClaim"--> v2