query-36bb2e3d0ce834e0e1875564fa335cd3
Podemos ver los usos desde propiedades diferentes a P31
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 ?clase ?claseLabel (count(?item) as ?frec) WHERE {
?clase wdt:P279+ ?mid.
?mid wdt:P279* wd:Q273120. # Protesta
MINUS {?item wdt:P31 ?clase.}
?item ?p ?clase.
?propiedad wikibase:directClaim ?p.
SERVICE wikibase:label { bd:serviceParam wikibase:language "es,en". }
} group by ?clase ?claseLabel
order by ?frec
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?clase"):::projected
v7("?frec")
v4("?item"):::projected
v3("?mid")
v5("?p")
v6("?propiedad")
c6(["bd:serviceParam"]):::iri
c8(["es,en"]):::literal
c2(["wd:Q273120"]):::iri
v2 --"wdt:P279"--> v3
v3 --"wdt:P279"--> c2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v4 --"wdt:P31"--> v2
end
v4 -->v5--> v2
v6 --"wikibase:directClaim"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind2[/"count(?item)"/]
v4 --o bind2
bind2 --as--o v7