query-862bc3f1625c21d0e4a39fbabc323221

rq turtle/ttl

by Realworldobject, 2019-12-04

Short tail works that have been translated into English

SELECT DISTINCT ?original (SAMPLE(?originalTitle) AS ?originalTitle) (GROUP_CONCAT(DISTINCT ?authorLabel) AS ?authors) (GROUP_CONCAT(DISTINCT ?originalLangLabel) AS ?originalLangs) ?translation ?translationTitle ?translationLangLabel ?translatorLabel ?sitelinks WHERE { VALUES ?translationLang { wd:Q1860 # English } ?original wdt:P747 ?translation ; wdt:P407 ?originalLang ; wdt:P1476 ?originalTitle ; wdt:P50 ?author ; wikibase:sitelinks ?sitelinks . ?translation wdt:P655 ?translator ; wdt:P407 ?translationLang ; wdt:P1476 ?translationTitle; wdt:P655 ?translator .

SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". ?author rdfs:label ?authorLabel .?originalLang rdfs:label ?originalLangLabel} } GROUP BY ?original ?translation ?translationTitle ?translationLangLabel ?translatorLabel ?sitelinks ORDER BY DESC(?sitelinks) LIMIT 100

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
# by Realworldobject, 2019-12-04
# Short tail works that have been translated into English
SELECT DISTINCT ?original (SAMPLE(?originalTitle) AS ?originalTitle) (GROUP_CONCAT(DISTINCT ?authorLabel) AS ?authors) (GROUP_CONCAT(DISTINCT ?originalLangLabel) AS ?originalLangs) ?translation ?translationTitle ?translationLangLabel ?translatorLabel ?sitelinks
WHERE {
  VALUES ?translationLang {
    wd:Q1860  # English
  }
  ?original wdt:P747 ?translation ;
            wdt:P407 ?originalLang ;
            wdt:P1476 ?originalTitle ;
            wdt:P50 ?author ;
            wikibase:sitelinks ?sitelinks .
  ?translation wdt:P655 ?translator ;
               wdt:P407 ?translationLang ;
               wdt:P1476 ?translationTitle;
               wdt:P655 ?translator .

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". ?author rdfs:label ?authorLabel .?originalLang rdfs:label ?originalLangLabel}
}
GROUP BY ?original ?translation ?translationTitle ?translationLangLabel ?translatorLabel ?sitelinks
ORDER BY DESC(?sitelinks)
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?author") v10("?authorLabel"):::projected v12("?authors") v3("?original"):::projected v5("?originalLang") v11("?originalLangLabel"):::projected v13("?originalLangs") v12("?originalTitle"):::projected v1("?sitelinks"):::projected v4("?translation"):::projected v2("?translationLang") v9("?translationTitle"):::projected v8("?translator") c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?translationLang/] bind0-->v2 bind00(["wd:Q1860"]) bind00 --> bind0 v3 --"wdt:P747"--> v4 v3 --"wdt:P407"--> v5 v3 --"wdt:P1476"--> v12 v3 --"wdt:P50"--> v7 v3 --"wikibase:sitelinks"--> v1 v4 --"wdt:P655"--> v8 v4 --"wdt:P407"--> v2 v4 --"wdt:P1476"--> v9 v4 --"wdt:P655"--> v8 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 v7 --"rdfs:label"--> v10 v5 --"rdfs:label"--> v11 end bind4[/"sample(?originalTitle)"/] v12 --o bind4 bind4 --as--o v12 bind5[/"?authorLabel"/] v10 --o bind5 bind5 --as--o v12 bind6[/"?originalLangLabel"/] v11 --o bind6 bind6 --as--o v13