query-ef4001b771e4bfb11cbccb42eaafb1cc
14:21, 15 May 2017 (UTC)) talk (MisterSynergy for the other project. —wikiquote by wikisource You can simply replace Alernatively, you can have both Wikisource and Wikiquote in the same query :
Use at
- https://query.wikidata.org/sparql
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?sitelink {
?sitelink schema:about ?item; schema:isPartOf ?wiki .
VALUES ?wiki { <https://he.wikisource.org/> <https://he.wikiquote.org/> } .
OPTIONAL {
?item rdfs:label ?label .
FILTER(LANG(?label) = 'he') .
}
FILTER(!BOUND(?label)) .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?label")
v2("?sitelink"):::projected
v5("?wiki")
f0[["not bound(?label)"]]
f0 --> v1
v2 --"schema:about"--> v3
v2 --"schema:isPartOf"--> v5
bind1[/VALUES ?wiki/]
bind1-->v5
bind10([https://he.wikisource.org/])
bind10 --> bind1
bind11([https://he.wikiquote.org/])
bind11 --> bind1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v1
end