sparql-examples

A set of SPARQL examples that are used in different TGX resources

View the Project on GitHub BiGCAT-UM/sparql-examples

001

rq turtle/ttl

List of the 100 most cited retracted articles.

Use at

PREFIX wd: <http://wikidata.org/entity/>
PREFIX wdt: <http://wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>

SELECT ?work ?workLabel ?count WITH {
  SELECT ?work (COUNT(DISTINCT ?citation) AS ?count) WHERE {
    { ?work wdt:P31 wd:Q45182324 . } UNION
    { ?work wdt:P793 wd:Q7316896 . } UNION
    { ?work wdt:P5824 [] . }
    ?work wdt:P1433 / wdt:P123 ?publisher .
    ?citation wdt:P2860 ?work .
  } GROUP BY ?work ORDER BY DESC(?count) LIMIT 100
} AS %RETRACTIONS WHERE {
  INCLUDE %RETRACTIONS
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
} ORDER BY DESC(?count)