16,603
edits
(→Citations: Related works panel) |
|||
Line 148: | Line 148: | ||
} | } | ||
} | } | ||
}} | |||
== Related works == | |||
{{SPARQL | query= | |||
PREFIX target: <https://dreams.wikibase.cloud/entity/Q153> | |||
PREFIX dreams: <https://dreams.wikibase.cloud/entity/> | |||
PREFIX dreamst: <https://dreams.wikibase.cloud/prop/direct/> | |||
SELECT | |||
(COUNT(?work) AS ?count) | |||
(SAMPLE(?title_) AS ?title_) | |||
("Scholia ↗" AS ?scholia) | |||
(SAMPLE(?scholiaUrl_) AS ?scholiaUrl) | |||
WHERE { | |||
target: dreamst:P3 ?wikidata_q . | |||
BIND(IRI(CONCAT("http://www.wikidata.org/entity/", ?wikidata_q)) AS ?wikidata) | |||
SERVICE <https://query.wikidata.org/sparql> { | |||
?wikidata (^wdt:P2860 | wdt:P2860) / (^wdt:P2860 | wdt:P2860)? ?work . | |||
FILTER (?wikidata != ?work) | |||
?work wdt:P1476 ?title_ . | |||
BIND(CONCAT("https://scholia.toolforge.org/work/", SUBSTR(STR(?work), 32)) AS ?scholiaUrl_) | |||
} | |||
} | |||
GROUP BY ?work | |||
ORDER BY DESC(?count) | |||
LIMIT 500 | |||
}} | }} |