query-d8964aa1177702d6ee41b9345f04b7ff
Focus list journals with NLM ID, but without publisher SELECT DISTINCT ?journal ?journalLabel
WHERE {
?item wdt:P5008 wd:Q55439927;
wdt:P1433 ?journal.
?journal wdt:P1055 [ ].
MINUS {?journal wdt:P123 [ ]}
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 bd: <http://www.bigdata.com/rdf#>
#Focus list journals with NLM ID, but without publisher
SELECT DISTINCT ?journal ?journalLabel
WHERE {
?item wdt:P5008 wd:Q55439927;
wdt:P1433 ?journal.
?journal wdt:P1055 [ ].
MINUS {?journal wdt:P123 [ ]}
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;
v1("?item")
v2("?journal"):::projected
a1((" "))
a2((" "))
c7(["bd:serviceParam"]):::iri
c2(["wd:Q55439927"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P5008"--> c2
v1 --"wdt:P1433"--> v2
v2 --"wdt:P1055"--> a1
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P123"--> a2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end