query-e6851194b627f90020e1c4529028512f

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 
  ?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)

  ?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)

WHERE {
  BIND(target1: AS ?originating_language)
  BIND(target2: AS ?derived_language)

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

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

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

}
ORDER BY ?originating_lexemeLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?derived_language"):::projected v10("?derived_languageUrl") v4("?derived_lexeme"):::projected v6("?derived_lexemeLabel"):::projected v9("?derived_lexemeUrl") v2("?originating_language"):::projected v8("?originating_languageUrl") v5("?originating_lexeme"):::projected v1("?originating_lexemeLabel"):::projected v7("?originating_lexemeUrl") c5(["bd:serviceParam"]):::iri c7(["#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"--> v3 v4 --"wdt:P5191"--> v5 v5 --"dct:language"--> v2 v4 --"wikibase:lemma"--> v6 v5 --"wikibase:lemma"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind2[/"concat('#lexeme/',substring(str(?originating_lexeme),'32^^xsd:integer'))"/] v5 --o bind2 bind2 --as--o v7 bind3[/"concat('#language/',substring(str(?originating_language),'32^^xsd:integer'))"/] v2 --o bind3 bind3 --as--o v8 bind4[/"concat('#lexeme/',substring(str(?derived_lexeme),'32^^xsd:integer'))"/] v4 --o bind4 bind4 --as--o v9 bind5[/"concat('#language/',substring(str(?derived_language),'32^^xsd:integer'))"/] v3 --o bind5 bind5 --as--o v10