query-6420c19f466621230d7d9ffb8f8ba819
title: Items to be exposed via the OAI-PMH endpoint https://enkore.toolforge.org/oai_pmh/ SELECT DISTINCT ?item ?itemLabel ?license ?licenseLabel ?topic ?topicLabel WHERE { ?item wdt:P6104 wd:Q56241615; wdt:P356 ?doi ; wdt:P921 ?topic .
{?topic wdt:P31 wd:Q41719 .} UNION {VALUES ?topic { wd:Q109467185 wd:Q112148709 wd:Q111525751 wd:Q113019190 wd:Q124428132 } } UNION {?item wdt:P275 ?license . ?license wdt:P31/wdt:P279 wd:Q30939938 .} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?item ?itemLabel ?license ?licenseLabel ?topic ?topicLabel
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#>
#title: Items to be exposed via the OAI-PMH endpoint https://enkore.toolforge.org/oai_pmh/
SELECT DISTINCT ?item ?itemLabel ?license ?licenseLabel ?topic ?topicLabel
WHERE {
?item wdt:P6104 wd:Q56241615;
wdt:P356 ?doi ;
wdt:P921 ?topic .
{?topic wdt:P31 wd:Q41719 .}
UNION
{VALUES ?topic { wd:Q109467185 wd:Q112148709 wd:Q111525751 wd:Q113019190 wd:Q124428132 } }
UNION
{?item wdt:P275 ?license .
?license wdt:P31*/wdt:P279* wd:Q30939938 .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?item ?itemLabel ?license ?licenseLabel ?topic ?topicLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?doi")
v1("?item"):::projected
v4("?license"):::projected
v4("?topic"):::projected
a1((" "))
c2(["wd:Q56241615"]):::iri
c11(["bd:serviceParam"]):::iri
c9(["wd:Q30939938"]):::iri
c6(["wd:Q41719"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P6104"--> c2
v1 --"wdt:P356"--> v2
v1 --"wdt:P921"--> v4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P275"--> v4
v4 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c9
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
bind0[/VALUES ?topic/]
bind0-->v4
bind00(["wd:Q109467185"])
bind00 --> bind0
bind01(["wd:Q112148709"])
bind01 --> bind0
bind02(["wd:Q111525751"])
bind02 --> bind0
bind03(["wd:Q113019190"])
bind03 --> bind0
bind04(["wd:Q124428132"])
bind04 --> bind0
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P31"--> c6
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end