query-a74451028b607d05f8ea57b64e13669f
Archeologi italiani con VIAF in Wikidata che non hanno voce in it.wiki
occupation=archeologo
paese di cittadinanza = Italia
VIAF ID
get DOB for ordering.
look for articles (sitelinks) in italiano ("it")
but select items with no such article
PREFIX schema: http://schema.org/ SELECT ?item ?itemLabel ?dob WHERE { ?item wdt:P106 wd:Q3621491. ?item wdt:P27 wd:Q38. ?item wdt:P214 ?VIAF_ID. OPTIONAL { ?item wdt:P569 ?dob. } OPTIONAL { ?sitelink schema:about ?item. ?sitelink schema:inLanguage "it". } SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en". } FILTER(!BOUND(?sitelink)) } ORDER BY ?dob LIMIT 4999
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#>
#Archeologi italiani con VIAF in Wikidata che non hanno voce in it.wiki
#occupation=archeologo
#paese di cittadinanza = Italia
#VIAF ID
# get DOB for ordering.
# look for articles (sitelinks) in italiano ("it")
# but select items with no such article
PREFIX schema: <http://schema.org/>
SELECT ?item ?itemLabel ?dob WHERE {
?item wdt:P106 wd:Q3621491.
?item wdt:P27 wd:Q38.
?item wdt:P214 ?VIAF_ID.
OPTIONAL { ?item wdt:P569 ?dob. }
OPTIONAL {
?sitelink schema:about ?item.
?sitelink schema:inLanguage "it".
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en". }
FILTER(!BOUND(?sitelink))
}
ORDER BY ?dob
LIMIT 4999
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?VIAF_ID")
v1("?dob"):::projected
v3("?item"):::projected
v2("?sitelink")
c9(["it"]):::literal
c2(["wd:Q3621491"]):::iri
c4(["wd:Q38"]):::iri
c11(["bd:serviceParam"]):::iri
c13(["it,en"]):::literal
f0[["not bound(?sitelink)"]]
f0 --> v2
v3 --"wdt:P106"--> c2
v3 --"wdt:P27"--> c4
v3 --"wdt:P214"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P569".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."schema:about".-> v3
v2 --"schema:inLanguage"--> c9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end