diff --git a/geocode/py.typed b/geocode/py.typed deleted file mode 100644 index e69de29..0000000 diff --git a/templates/base.html b/templates/base.html deleted file mode 100644 index f3fd3e5..0000000 --- a/templates/base.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - {% block link %}{% endblock %} - - - {% block title %}{% endblock %} - - - {% block style %}{% endblock %} - - - - {% block content %}{% endblock %} - {% block script %}{% endblock %} - - diff --git a/templates/sparql/lookup_by_name.sparql b/templates/sparql/lookup_by_name.sparql index 39dc30c..3f6afc4 100644 --- a/templates/sparql/lookup_by_name.sparql +++ b/templates/sparql/lookup_by_name.sparql @@ -1,5 +1,5 @@ SELECT DISTINCT ?item ?itemLabel ?commonsSiteLink ?commonsCat WHERE { - { ?item rdfs:label {{ name }}@en } UNION { ?item skos:altLabel {{ name }}@en } + ?item rdfs:label {{ name }}@en . FILTER NOT EXISTS { ?item wdt:P31 wd:Q17362920 } .# ignore Wikimedia duplicated page OPTIONAL { ?commonsSiteLink schema:about ?item ; schema:isPartOf }