query-268a9b52be306941a8437a88c9aee988

rq turtle/ttl

List of all magazine (Q41298) with an article on German Wikipedia displaying ISSN (P236) and ZDB ID (P1042)

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#>
PREFIX schema: <http://schema.org/>

SELECT ?Zeitschrift ?ZeitschriftLabel ?ISSN ?ZDB ?article WHERE {
  ?article schema:about ?Zeitschrift.
  ?article schema:isPartOf <https://de.wikipedia.org/>.
  ?Zeitschrift (wdt:P31/wdt:P279*) wd:Q41298.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  OPTIONAL { ?Zeitschrift wdt:P236 ?ISSN. }
  OPTIONAL { ?Zeitschrift wdt:P1042 ?ZDB. }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?ISSN"):::projected v4("?ZDB"):::projected v2("?Zeitschrift"):::projected v1("?article"):::projected a1((" ")) c3([https://de.wikipedia.org/]):::iri c8(["bd:serviceParam"]):::iri c6(["wd:Q41298"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"schema:about"--> v2 v1 --"schema:isPartOf"--> c3 v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P236".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P1042".-> v4 end