query-c5b26449d81730e77e987aff4678ccab
title: Kommunikationsprotokolle SELECT ?page_title ?article ?item WHERE { ?item wdt:P31 wd:Q132364. ?enwiki schema:about ?item; schema:isPartOf https://en.wikipedia.org/; schema:name ?en_title. OPTIONAL { ?dewiki schema:about ?item; schema:isPartOf https://de.wikipedia.org/; schema:name ?de_title. } BIND(IF(BOUND(?dewiki), ?dewiki, ?enwiki) AS ?article) BIND(IF(BOUND(?de_title), ?de_title, ?en_title) AS ?page_title) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Kommunikationsprotokolle
SELECT ?page_title ?article ?item WHERE {
?item wdt:P31 wd:Q132364.
?enwiki schema:about ?item;
schema:isPartOf <https://en.wikipedia.org/>;
schema:name ?en_title.
OPTIONAL {
?dewiki schema:about ?item;
schema:isPartOf <https://de.wikipedia.org/>;
schema:name ?de_title.
}
BIND(IF(BOUND(?dewiki), ?dewiki, ?enwiki) AS ?article)
BIND(IF(BOUND(?de_title), ?de_title, ?en_title) AS ?page_title)
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;
v6("?article"):::projected
v5("?de_title")
v4("?dewiki")
v3("?en_title")
v2("?enwiki")
v1("?item"):::projected
v7("?page_title"):::projected
c7([https://de.wikipedia.org/]):::iri
c5([https://en.wikipedia.org/]):::iri
c9(["bd:serviceParam"]):::iri
c2(["wd:Q132364"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> c2
v2 --"schema:about"--> v1
v2 --"schema:isPartOf"--> c5
v2 --"schema:name"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:about".-> v1
v4 --"schema:isPartOf"--> c7
v4 --"schema:name"--> v5
end
bind0[/"if(bound(?dewiki),?dewiki,?enwiki)"/]
v4 --o bind0
v2 --o bind0
bind0 --as--o v6
bind1[/"if(bound(?de_title),?de_title,?en_title)"/]
v5 --o bind1
v3 --o bind1
bind1 --as--o v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end