query-dff7ba0d3dd37c611e627870a5aa4f53

rq turtle/ttl

. Podríamos explorar sus clases, para seleccionar las adecuadas para profundizar en la taxonomía de obras literarias. Por ejemplo, los 239 que aparecenen más de 40 Wikipedias. suficiente número de artículos en las Wikipedias para considerarse relevantesPodemos extender la consulta a todos los items descritos con cualquier subclase de Obra literaria, y saber cuántos tienen

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel (COUNT(*) AS ?n_wikis)
WHERE {
 {
  SELECT DISTINCT ?item
WHERE {
  ?clase wdt:P279* wd:Q7725634. # Clase Obra literaria
  ?item wdt:P31 ?clase .
  #FILTER (!CONTAINS(str(?clase),'Q77725634'))
  MINUS { ?item wdt:P31 wd:Q7725634 }
#SERVICE wikibase:label { bd:serviceParam wikibase:language "es,en". } 
}
LIMIT 5000
      }
  ?article schema:about ?item .
  FILTER (CONTAINS(str(?article),'wikipedia'))
  SERVICE wikibase:label { bd:serviceParam wikibase:language "es,en". } 
}
GROUP BY ?item ?itemLabel
HAVING (?n_wikis > 40)
ORDER BY DESC(?n_wikis)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?article") v3("?clase") v4("?item"):::projected v5("?n_wikis") c8(["bd:serviceParam"]):::iri c10(["es,en"]):::literal c4(["wd:Q7725634"]):::iri f0[["?n_wikis > '40^^xsd:integer'"]] f0 --> v5 f1[["contains(str(?article),'wikipedia')"]] f1 --> v2 v3 --"wdt:P279"--> c4 v4 --"wdt:P31"--> v3 subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v4 --"wdt:P31"--> c4 end v2 --"schema:about"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind4[/"count(*)"/] bind4 --as--o v5