query-f5843216728d928e863e0ddb114dd6cd

rq turtle/ttl

Lexemes derived

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX target1: <http://www.wikidata.org/entity/Q9035>
PREFIX target2: <http://www.wikidata.org/entity/Q9027>

SELECT 
  ?derived_lexeme ?derived_lexemeLabel
  (CONCAT("#lexeme/", SUBSTR(STR(?derived_lexeme), 32)) AS ?derived_lexemeUrl)

  ?derived_language ?derived_languageLabel
  (CONCAT("#language/", SUBSTR(STR(?derived_language), 32)) AS ?derived_languageUrl)

  ?originating_lexeme ?originating_lexemeLabel
  (CONCAT("#lexeme/", SUBSTR(STR(?originating_lexeme), 32)) AS ?originating_lexemeUrl)

  ?originating_language ?originating_languageLabel
  (CONCAT("#language/", SUBSTR(STR(?originating_language), 32)) AS ?originating_languageUrl)
WHERE {
  BIND(target1: AS ?derived_language)
  BIND(target2: AS ?originating_language)

  ?derived_lexeme dct:language ?derived_language ;
                  wdt:P5191+ ?originating_lexeme .
  ?originating_lexeme dct:language target2: .

  ?derived_lexeme wikibase:lemma ?derived_lexemeLabel .
  ?originating_lexeme wikibase:lemma ?originating_lexemeLabel .

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

}
ORDER BY ?derived_lexemeLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?derived_language"):::projected v8("?derived_languageUrl") v4("?derived_lexeme"):::projected v1("?derived_lexemeLabel"):::projected v7("?derived_lexemeUrl") v3("?originating_language"):::projected v10("?originating_languageUrl") v5("?originating_lexeme"):::projected v6("?originating_lexemeLabel"):::projected v9("?originating_lexemeUrl") c3([http://www.wikidata.org/entity/Q9027]):::iri c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/"http://www.wikidata.org/entity/Q9035"/] bind0 --as--o v2 bind1[/"http://www.wikidata.org/entity/Q9027"/] bind1 --as--o v3 v4 --"dct:language"--> v2 v4 --"wdt:P5191"--> v5 v5 --"dct:language"--> c3 v4 --"wikibase:lemma"--> v1 v5 --"wikibase:lemma"--> v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind2[/"concat('#lexeme/',substring(str(?derived_lexeme),'32^^xsd:integer'))"/] v4 --o bind2 bind2 --as--o v7 bind3[/"concat('#language/',substring(str(?derived_language),'32^^xsd:integer'))"/] v2 --o bind3 bind3 --as--o v8 bind4[/"concat('#lexeme/',substring(str(?originating_lexeme),'32^^xsd:integer'))"/] v5 --o bind4 bind4 --as--o v9 bind5[/"concat('#language/',substring(str(?originating_language),'32^^xsd:integer'))"/] v3 --o bind5 bind5 --as--o v10