query-4b97b4e7ec87e911f8879068bbac1a49
however are fine just rewriting using an “optional”, with filtering on a unbound variable however are fine just rewriting using an “optional”, with filtering on a unbound variable however are fine just rewriting using an “optional”, with filtering on a unbound variable maar het is prima om te herschrijven met een 'optional' met filtering op een 'unbound' variabele TODO however are fine just rewriting using an “optional”, with filtering on a unbound variable however are fine just rewriting using an “optional”, with filtering on a unbound variable however are fine just rewriting using an “optional”, with filtering on a unbound variable
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
select ?articleFr ?item ?itemLabel ?some ?someLabel {
{
select * {?articleFr schema:about ?item ;
wikibase:badge ?some ;
schema:isPartOf <https://fr.wikipedia.org/>
optional { ?articleEn schema:about ?item ;
schema:isPartOf <https://en.wikipedia.org/> .
}
filter (!bound(?articleEn))
}
}
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/en
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/fr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/hy
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/nl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/pt
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/ru
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/uk
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization/zh
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?articleEn")
v2("?articleFr"):::projected
v3("?item"):::projected
v4("?some"):::projected
c5([https://en.wikipedia.org/]):::iri
c4([https://fr.wikipedia.org/]):::iri
f0[["not bound(?articleEn)"]]
f0 --> v1
v2 --"schema:about"--> v3
v2 --"wikibase:badge"--> v4
v2 --"schema:isPartOf"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."schema:about".-> v3
v1 --"schema:isPartOf"--> c5
end