query-e64607781ddeade3ad31042457919f9e

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?itemLabel_nl ?vertaallink WHERE {
  ?item wdt:P5008 wd:Q85931561.
  ?article_nl schema:about ?item .
  ?article_nl schema:isPartOf <https://nl.wikipedia.org/>.
  FILTER NOT EXISTS { ?article_pap schema:about ?item .
    ?article_pap schema:isPartOf <https://pap.wikipedia.org/>. }
  OPTIONAL { ?item rdfs:label ?itemLabel_nl . FILTER(lang(?itemLabel_nl)='nl') }
  OPTIONAL { ?item rdfs:label ?itemLabel_pap . FILTER(lang(?itemLabel_pap)='pap') }
  BIND(CONCAT("[https://pap.wikipedia.org/wiki/Special:ContentTranslation?title=Special:ContentTranslation&page=", ENCODE_FOR_URI(?itemLabel_nl), "&from=nl&to=pap&targettitle=", ENCODE_FOR_URI(?itemLabel_pap), " Vertaal dit artikel van het Nederlands naar het Papiaments]") AS ?vertaallink)
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?article_nl") v2("?article_pap") v3("?item"):::projected v4("?itemLabel_nl"):::projected v1("?itemLabel_pap") v6("?vertaallink"):::projected c7(["wd:Q85931561"]):::iri c4([https://pap.wikipedia.org/]):::iri c8([https://nl.wikipedia.org/]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"schema:about"--> e0v2 e0v1 --"schema:isPartOf"--> e0c3 e0v1("?article_pap"):::projected e0v2("?item"):::projected e0c3([https://pap.wikipedia.org/]):::iri end f0--EXISTS--> f0e0 f0 --> v2 f0 --> c2 f0 --> v3 f0 --> c3 f0 --> c4 v2 --"schema:about"--> v3 v2 --"schema:isPartOf"--> c4 v3 --"wdt:P5008"--> c7 v5 --"schema:about"--> v3 v5 --"schema:isPartOf"--> c8 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."rdfs:label".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."rdfs:label".-> v1 end bind1[/"concat('#91;https://pap.wikipedia.org/wiki/Special:ContentTranslation?title=Special:ContentTranslation&page=',encode-for-uri(?itemLabel_nl),'&from=nl&to=pap&targettitle=',encode-for-uri(?itemLabel_pap),' Vertaal dit artikel van het Nederlands naar het Papiaments#93;')"/] v4 --o bind1 v1 --o bind1 bind1 --as--o v6