query-890a8d3e6c6d83832de114c3c50104c4
equivilant properties and all their subroperties http://schema.org/actorThis query returns all properties equivalent to
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?prop WHERE {
{
?item p:P1628/ps:P1628 <http://schema.org/actor>.
} UNION {
?item p:P1628/ps:P1628 <https://schema.org/actor>.
}
?item wikibase:propertyType wikibase:WikibaseItem.
?item p:P1628 [ wikibase:rank ?rank ].
BIND (replace(str(?item), 'http://www.wikidata.org/entity/', '') AS ?prop)
BIND (IF(?rank = wikibase:PreferredRank, 1, IF(?rank = wikibase:NormalRank, 2, 3)) as ?order)
} ORDER BY ?order
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item")
v5("?order")
v4("?prop"):::projected
v3("?rank")
a1((" "))
a2((" "))
a3((" "))
c4([https://schema.org/actor]):::iri
c3([http://schema.org/actor]):::iri
c6(["wikibase:WikibaseItem"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"p:P1628"--> a2
a2 --"p:statement/P1628"--> c4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"p:P1628"--> a1
a1 --"p:statement/P1628"--> c3
end
union0r <== or ==> union0l
end
v2 --"wikibase:propertyType"--> c6
a3 --"wikibase:rank"--> v3
v2 --"p:P1628"--> a3
bind0[/"replace(str(?item),'http://www.wikidata.org/entity/','')"/]
v2 --o bind0
bind0 --as--o v4
bind1[/"if(?rank = 'wikibase:PreferredRank','1^^xsd:integer',if(?rank = 'wikibase:NormalRank','2^^xsd:integer','3^^xsd:integer'))"/]
v3 --o bind1
bind1 --as--o v5