query-471274703d89ebb133f6b5ffecda9348
Segunda versión con universos de ficción y forma parte de, que mejora los resultados a partir del análisis de Cien años de Soledad, Ulises, La riqueza de las naciones, El príncipe y Harry Potter que tenían pocos resultados.
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 ?obraCanon ?obraCanonLabel (COUNT(?obra) as ?num) WHERE {
VALUES ?obraCanon {wd:Q178869 wd:Q6511 wd:Q43361 wd:Q28306}
{
?obra wdt:P921|wdt:P941|wdt:P144|wdt:P2860|wdt:P6977|wdt:P6166|wdt:P8371|wdt:P5059|wdt:P138|wdt:P1441|wdt:P4969|wdt:P737|wdt:P629|wdt:P361|wdt:P1433|wd:P1080|wdt:P1434|wdt:P179 ?obraCanon.
# Tema principal|Inspirado por|Basado en|Referencia|Reseña sobre|Cita la obra|Versión modificada de|Nombrado por|Personaje presente en la obra|Obra derivada|influenciado por|edición o traducción de|Forma parte de|Publicado en
#Del universo de ficción|Describe el universo de ficción | De la serie
}
UNION
{
?obraCanon wdt:P4969|wdt:5940|wdt:P2512|wdt:P1434 ?obra. # Obra derivada; Trama continuada en; Serie derivada; Describe el universo de ficción
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "es,en". }
}
GROUP BY ?obraCanon ?obraCanonLabel
ORDER BY DESC(?num)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?num")
v3("?obra"):::projected
v2("?obraCanon"):::projected
c24(["es,en"]):::literal
c22(["bd:serviceParam"]):::iri
bind0[/VALUES ?obraCanon/]
bind0-->v2
bind00(["wd:Q178869"])
bind00 --> bind0
bind01(["wd:Q6511"])
bind01 --> bind0
bind02(["wd:Q43361"])
bind02 --> bind0
bind03(["wd:Q28306"])
bind03 --> bind0
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P1434"--> v3
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P2512"--> v3
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:5940"--> v3
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P4969"--> v3
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
subgraph union4[" Union "]
subgraph union4l[" "]
style union4l fill:#abf,stroke-dasharray: 3 3;
subgraph union5[" Union "]
subgraph union5l[" "]
style union5l fill:#abf,stroke-dasharray: 3 3;
subgraph union6[" Union "]
subgraph union6l[" "]
style union6l fill:#abf,stroke-dasharray: 3 3;
subgraph union7[" Union "]
subgraph union7l[" "]
style union7l fill:#abf,stroke-dasharray: 3 3;
subgraph union8[" Union "]
subgraph union8l[" "]
style union8l fill:#abf,stroke-dasharray: 3 3;
subgraph union9[" Union "]
subgraph union9l[" "]
style union9l fill:#abf,stroke-dasharray: 3 3;
subgraph union10[" Union "]
subgraph union10l[" "]
style union10l fill:#abf,stroke-dasharray: 3 3;
subgraph union11[" Union "]
subgraph union11l[" "]
style union11l fill:#abf,stroke-dasharray: 3 3;
subgraph union12[" Union "]
subgraph union12l[" "]
style union12l fill:#abf,stroke-dasharray: 3 3;
subgraph union13[" Union "]
subgraph union13l[" "]
style union13l fill:#abf,stroke-dasharray: 3 3;
subgraph union14[" Union "]
subgraph union14l[" "]
style union14l fill:#abf,stroke-dasharray: 3 3;
subgraph union15[" Union "]
subgraph union15l[" "]
style union15l fill:#abf,stroke-dasharray: 3 3;
subgraph union16[" Union "]
subgraph union16l[" "]
style union16l fill:#abf,stroke-dasharray: 3 3;
subgraph union17[" Union "]
subgraph union17l[" "]
style union17l fill:#abf,stroke-dasharray: 3 3;
subgraph union18[" Union "]
subgraph union18l[" "]
style union18l fill:#abf,stroke-dasharray: 3 3;
subgraph union19[" Union "]
subgraph union19l[" "]
style union19l fill:#abf,stroke-dasharray: 3 3;
subgraph union20[" Union "]
subgraph union20l[" "]
style union20l fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P179"--> v2
end
subgraph union20r[" "]
style union20r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P1434"--> v2
end
union20r <== or ==> union20l
end
end
subgraph union19r[" "]
style union19r fill:#abf,stroke-dasharray: 3 3;
v3 --"wd:P1080"--> v2
end
union19r <== or ==> union19l
end
end
subgraph union18r[" "]
style union18r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P1433"--> v2
end
union18r <== or ==> union18l
end
end
subgraph union17r[" "]
style union17r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P361"--> v2
end
union17r <== or ==> union17l
end
end
subgraph union16r[" "]
style union16r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P629"--> v2
end
union16r <== or ==> union16l
end
end
subgraph union15r[" "]
style union15r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P737"--> v2
end
union15r <== or ==> union15l
end
end
subgraph union14r[" "]
style union14r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P4969"--> v2
end
union14r <== or ==> union14l
end
end
subgraph union13r[" "]
style union13r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P1441"--> v2
end
union13r <== or ==> union13l
end
end
subgraph union12r[" "]
style union12r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P138"--> v2
end
union12r <== or ==> union12l
end
end
subgraph union11r[" "]
style union11r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P5059"--> v2
end
union11r <== or ==> union11l
end
end
subgraph union10r[" "]
style union10r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P8371"--> v2
end
union10r <== or ==> union10l
end
end
subgraph union9r[" "]
style union9r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P6166"--> v2
end
union9r <== or ==> union9l
end
end
subgraph union8r[" "]
style union8r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P6977"--> v2
end
union8r <== or ==> union8l
end
end
subgraph union7r[" "]
style union7r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P2860"--> v2
end
union7r <== or ==> union7l
end
end
subgraph union6r[" "]
style union6r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P144"--> v2
end
union6r <== or ==> union6l
end
end
subgraph union5r[" "]
style union5r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P941"--> v2
end
union5r <== or ==> union5l
end
end
subgraph union4r[" "]
style union4r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P921"--> v2
end
union4r <== or ==> union4l
end
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c22 --"wikibase:language"--> c24
end
bind2[/"count(?obra)"/]
v3 --o bind2
bind2 --as--o v4