query-afbd2cdc5d583748fc37c4e8107260cd

rq turtle/ttl

Elenco di poeti italiani nati nel 900 in ordine di data di nascita, con eventuale pagina di Wikipedia SELECT ?item ?itemLabel ?ddn ?cc ?wkp WHERE { ?item wdt:P31 wd:Q5; wdt:P106 wd:Q49757; wdt:P569 ?ddn; wdt:P27 wd:Q38. OPTIONAL { ?item wdt:P8248 ?cc. } OPTIONAL { ?wkp schema:about ?item. FILTER(REGEX(STR(?wkp), "it.wikipedia.org")) } FILTER((?ddn >= "1900-01-01T00:00:00Z"^^xsd:dateTime) && (?ddn <= "1999-12-31T00:00:00Z"^^xsd:dateTime)) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY (?ddn)

Use at

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 bd: <http://www.bigdata.com/rdf#>
# Elenco di poeti italiani nati nel 900 in ordine di data di nascita, con eventuale pagina di Wikipedia
SELECT ?item ?itemLabel ?ddn ?cc ?wkp WHERE {
  ?item wdt:P31 wd:Q5;
    wdt:P106 wd:Q49757;
    wdt:P569 ?ddn;
    wdt:P27 wd:Q38.
  OPTIONAL { ?item wdt:P8248 ?cc. }
  OPTIONAL {
    ?wkp schema:about ?item.
    FILTER(REGEX(STR(?wkp), "it.wikipedia.org"))
  }
  FILTER((?ddn >= "1900-01-01T00:00:00Z"^^xsd:dateTime) && (?ddn <= "1999-12-31T00:00:00Z"^^xsd:dateTime))
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY (?ddn)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?cc"):::projected v1("?ddn"):::projected v3("?item"):::projected v2("?wkp"):::projected c7(["wd:Q49757"]):::iri c10(["wd:Q38"]):::iri c14(["bd:serviceParam"]):::iri c5(["wd:Q5"]):::iri c16(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?ddn >= '1900-01-01T00:00:00Z^^xsd:dateTime'?ddn <= '1999-12-31T00:00:00Z^^xsd:dateTime'"]] f0 --> v1 v3 --"wdt:P31"--> c5 v3 --"wdt:P106"--> c7 v3 --"wdt:P569"--> v1 v3 --"wdt:P27"--> c10 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P8248".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."schema:about".-> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c14 --"wikibase:language"--> c16 end