Compare commits

..

2 commits

Author SHA1 Message Date
Edward Betts 58611d04b6 Various improvements 2023-10-13 16:50:27 +01:00
Edward Betts 474d9c6a66 Name match on aliases 2023-10-13 16:49:18 +01:00
3 changed files with 23 additions and 1 deletions

0
geocode/py.typed Normal file
View file

22
templates/base.html Normal file
View file

@ -0,0 +1,22 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
{% block link %}{% endblock %}
<title>
{% block title %}{% endblock %}
</title>
{% block style %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
{% block script %}{% endblock %}
</body>
</html>

View file

@ -1,5 +1,5 @@
SELECT DISTINCT ?item ?itemLabel ?commonsSiteLink ?commonsCat WHERE {
?item rdfs:label {{ name }}@en .
{ ?item rdfs:label {{ name }}@en } UNION { ?item skos:altLabel {{ name }}@en }
FILTER NOT EXISTS { ?item wdt:P31 wd:Q17362920 } .# ignore Wikimedia duplicated page
OPTIONAL { ?commonsSiteLink schema:about ?item ;
schema:isPartOf <https://commons.wikimedia.org/> }