query-a4e4cfee1e5b5d5693a077724bcb058e

rq turtle/ttl

Translations of Diary of Anne Frank SELECT ?work ?workLabel ?translation ?translationLabel ?translator ?translatorLabel ?translationLanguageLabel WHERE { VALUES ?work { wd:Q14624856 wd:Q6911 } ?work wdt:P50 ?author. ?author wdt:P21 wd:Q6581072. { ?work wdt:P747 ?translation. ?translation wdt:P31 wd:Q7553. } UNION { ?translation wdt:P629 ?work } ?translation wdt:P1476 ?translationTitle; wdt:P655 ?translator. OPTIONAL {?translation wdt:P407 ?translationLanguage}

SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

Use at

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#>
# Translations of Diary of Anne Frank
SELECT ?work ?workLabel ?translation ?translationLabel ?translator ?translatorLabel ?translationLanguageLabel
WHERE {
  VALUES ?work {
    wd:Q14624856
    wd:Q6911
  }
  ?work wdt:P50 ?author.
  ?author wdt:P21 wd:Q6581072.
  {
    ?work wdt:P747 ?translation.
    ?translation wdt:P31 wd:Q7553.
  }
  UNION
  {
    ?translation wdt:P629 ?work
  }
  ?translation wdt:P1476 ?translationTitle;
               wdt:P655 ?translator.
  OPTIONAL {?translation wdt:P407 ?translationLanguage}

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?author") v3("?translation"):::projected v6("?translationLanguage") v4("?translationTitle") v5("?translator"):::projected v1("?work"):::projected c3(["wd:Q6581072"]):::iri c6(["wd:Q7553"]):::iri c12(["bd:serviceParam"]):::iri c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?work/] bind0-->v1 bind00(["wd:Q14624856"]) bind00 --> bind0 bind01(["wd:Q6911"]) bind01 --> bind0 v1 --"wdt:P50"--> v2 v2 --"wdt:P21"--> c3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P629"--> v1 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P747"--> v3 v3 --"wdt:P31"--> c6 end union0r <== or ==> union0l end v3 --"wdt:P1476"--> v4 v3 --"wdt:P655"--> v5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P407".-> v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end