This repo is being refactored
TODOs:
- Rebranding
- UI Overhaul
- Setting up for a more unified experience
- Algorithm Overhaul (add topic modelling)
Test: Is XPath Working?
Tempus E Spatium (pronounced TEM-poo-se-SPA-ti-oom) is Latin for space and time. It is an edutainment app for adult learners by exploiting the Semantic Web.
Wow, GitHub supports SPARQL syntax highlighting...
#defaultView:Timeline
SELECT DISTINCT ?eventLabel ?date ?dateLabel ?coord ?img
WHERE
{
{ ?event wdt:P31* wd:Q178561. } UNION
{ ?event wdt:P31* wd:Q81672. }
?event wdt:P585* ?date .
?event wdt:P18+ ?img.
OPTIONAL { ?event wdt:P625 ?coord }
FILTER(YEAR(?date) > 1900).
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
FILTER(EXISTS {
?event rdfs:label ?lang_label.
FILTER(LANG(?lang_label) = "en")
})
}
ORDER BY DESC(?dateLabel)
#defaultView:Graph
SELECT DISTINCT ?country ?countryLabel ?country_EN ?country_DE ?country_FR ?capital ?capitalLabel ?flagLabel ?armsLabel ?imgLabel
WHERE
{
?country wdt:P31 wd:Q3624078 .
#not a former country
FILTER NOT EXISTS {?country wdt:P31 wd:Q3024240}
#and no an ancient civilisation (needed to exclude ancient Egypt)
FILTER NOT EXISTS {?country wdt:P31 wd:Q28171280}
?country wdt:P36 ?capital.
?country wdt:P41 ?flag.
?country wdt:P94 ?arms.
?capital wdt:P18 ?img.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en".
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en".
?country rdfs:label ?country_EN.
} hint:Prior hint:runLast false.
SERVICE wikibase:label { bd:serviceParam wikibase:language "de".
?country rdfs:label ?country_DE.
} hint:Prior hint:runLast false.
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr".
?country rdfs:label ?country_FR.
} hint:Prior hint:runLast false.}
ORDER BY ?countryLabel
#defaultView:Table
SELECT DISTINCT ?country ?countryLabel ?country_EN ?country_FR ?anthemLabel ?anthem_FR ?audioLabel
WHERE
{
?country wdt:P31 wd:Q3624078 .
#not a former country
FILTER NOT EXISTS {?country wdt:P31 wd:Q3024240}
#and no an ancient civilisation (needed to exclude ancient Egypt)
FILTER NOT EXISTS {?country wdt:P31 wd:Q28171280}
?country wdt:P85 ?anthem.
?anthem wdt:P51 ?audio.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en".
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en".
?country rdfs:label ?country_EN.
} hint:Prior hint:runLast false.
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr".
?country rdfs:label ?country_FR.
} hint:Prior hint:runLast false.
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr".
?anthem rdfs:label ?anthem_FR.
} hint:Prior hint:runLast false.
}
ORDER BY ?countryLabel