query-90ea606f15f2880c3ba88323c6d34aac

rq turtle/ttl

Kalau menurut saya opsi pertama lebih sederhana tetapi ternyata opsi kedua jauh lebih cepat. Kalau begitu mari gunakan yang kedua:

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 bd: <http://www.bigdata.com/rdf#>
SELECT ?orang ?orangLabel ?ttl
WHERE
{
  ?orang wdt:P31 wd:Q5;
          wdt:P569 ?ttl.
  FILTER("2015-01-01"^^xsd:date <= ?dob && ?ttl < "2016-01-01"^^xsd:dat).
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". } 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?dob") v3("?orang"):::projected v2("?ttl"):::projected c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;"]):::literal c4(["wd:Q5"]):::iri f0[["'2015-01-01^^xsd:date' <= ?dob?ttl < s2016-01-01^^<http://www.w3.org/2001/XMLSchema#dat>'"]] f0 --> v1 f0 --> v2 v3 --"wdt:P31"--> c4 v3 --"wdt:P569"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end