query-a628b34c4c7e75d77f2ed4983affacc4
Catalans vius nascuts entre 1898 i 1918 SELECT ?s ?desc ?article WHERE { ?s wdt:P31 wd:Q5 ; wdt:P569 ?naix . ?s wdt:P19 ?lloc . ?lloc wdt:P131/wdt:P706 wd:Q5705. FILTER (?naix > "1898-01-01"^^xsd:dateTime && ?naix < "1918-01-01"^^xsd:dateTime) MINUS { ?s wdt:P570 [] } ?s rdfs:label ?desc FILTER(lang(?desc)="ca"). SERVICE wikibase:label { bd:serviceParam wikibase:language "ca". } ?article schema:about ?s . ?article schema:inLanguage "ca" . ?article schema:isPartOf https://ca.wikipedia.org/ }
LIMIT 100
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Catalans vius nascuts entre 1898 i 1918
SELECT ?s ?desc ?article
WHERE
{
?s wdt:P31 wd:Q5 ;
wdt:P569 ?naix .
?s wdt:P19 ?lloc .
?lloc wdt:P131*/wdt:P706* wd:Q5705.
FILTER (?naix > "1898-01-01"^^xsd:date && ?naix < "1918-01-01"^^xsd:dat)
MINUS { ?s wdt:P570 [] }
?s rdfs:label ?desc FILTER(lang(?desc)="ca").
SERVICE wikibase:label { bd:serviceParam wikibase:language "ca". }
?article schema:about ?s .
?article schema:inLanguage "ca" .
?article schema:isPartOf <https://ca.wikipedia.org/>
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?article"):::projected
v1("?desc"):::projected
v4("?lloc")
v2("?naix")
v3("?s"):::projected
a2((" "))
a1((" "))
c10(["wd:Q5705"]):::iri
c19([https://ca.wikipedia.org/]):::iri
c14(["bd:serviceParam"]):::iri
c5(["wd:Q5"]):::iri
c1(["ca"]):::literal
f0[["?desc = 'ca'"]]
f0 --> v1
f1[["?naix > '1898-01-01^^xsd:date'?naix < s1918-01-01^^<http://www.w3.org/2001/XMLSchema#dat>'"]]
f1 --> v2
v3 --"wdt:P31"--> c5
v3 --"wdt:P569"--> v2
v3 --"wdt:P19"--> v4
v4 --"wdt:P131"--> a1
a1 --"wdt:P706"--> c10
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P570"--> a2
end
v3 --"rdfs:label"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c1
end
v5 --"schema:about"--> v3
v5 --"schema:inLanguage"--> c1
v5 --"schema:isPartOf"--> c19