query-fb8287df7c8eac00989f1a650a64766b
Related work based on citations
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX target: <http://www.wikidata.org/entity/Q110954128>
SELECT
?score
?work ?workLabel
(CONCAT("#work/", SUBSTR(STR(?work), 32)) AS ?workUrl)
?workDescription
("Wikidata ↗" AS ?wikidata)
(CONCAT("https://www.wikidata.org/wiki/", SUBSTR(STR(?work), 32)) AS ?wikidataUrl)
("Scholia ↗" AS ?scholia)
(CONCAT("https://scholia.toolforge.org/work/", SUBSTR(STR(?work), 32)) AS ?scholiaUrl)
WHERE {
{
SELECT
(COUNT(*) AS ?score)
?work
WHERE {
target: (^wdt:P2860 | wdt:P2860) / (^wdt:P2860 | wdt:P2860)? ?work .
FILTER (target: != ?work)
}
GROUP BY ?work
ORDER BY DESC(?count)
LIMIT 500
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?score) DESC(?titleUrl)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?count")
v8("?scholia")
v9("?scholiaUrl")
v5("?score"):::projected
v2("?titleUrl")
v6("?wikidata")
v7("?wikidataUrl")
v4("?work"):::projected
v5("?workUrl")
a1((" "))
c1([http://www.wikidata.org/entity/Q110954128]):::iri
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["http://www.wikidata.org/entity/Q110954128 != ?work"]]
f0 --> v4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
c1 --"wdt:P2860"--> a1
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
a1 --"wdt:P2860"--> c1
end
union0r <== or ==> union0l
end
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;
a1 --"wdt:P2860"--> v4
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P2860"--> a1
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
end
union1r <== or ==> union1l
end
bind2[/"count(*)"/]
bind2 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
bind3[/"concat('#work/',substring(str(?work),'32^^xsd:integer'))"/]
v4 --o bind3
bind3 --as--o v5
bind4[/"'Wikidata ↗'"/]
bind4 --as--o v6
bind5[/"concat('https://www.wikidata.org/wiki/',substring(str(?work),'32^^xsd:integer'))"/]
v4 --o bind5
bind5 --as--o v7
bind6[/"'Scholia ↗'"/]
bind6 --as--o v8
bind7[/"concat('https://scholia.toolforge.org/work/',substring(str(?work),'32^^xsd:integer'))"/]
v4 --o bind7
bind7 --as--o v9