Open capital-G opened 2 years ago
Looks good. Not many alternatives to SPARQL anyway, right?
We can use a Python script cell which
#events in time and place
SELECT DISTINCT ?item ?itemLabel ?distance
WHERE
{
?item wdt:P580 "2011-04-26"^^xsd:dateTime.
# Search by Nearest
SERVICE wikibase:around {
?place wdt:P625 ?location .
bd:serviceParam wikibase:center "Point(52.4024875340491 13.9993762209831)"^^geo:wktLiteral .
bd:serviceParam wikibase:radius "100" .
bd:serviceParam wikibase:distance ?distance .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en language
}
ORDER BY ?distance
For sake of sanity: hardcoded json with links to "artikel des tages"
This will need https://github.com/Gencaster/gencaster/issues/381
Wikidata con provide us some content sensitive data. Maybe we can use SPARQL for this, see https://query.wikidata.org/ , which is a favourite of mine. https://www.wikidata.org/wiki/Wikidata:Tools/For_programmers could also be interesting