summaryrefslogtreecommitdiff
path: root/tests/functional-tests
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2020-04-18 01:06:47 +0200
committerSam Thursfield <sam@afuera.me.uk>2020-05-01 12:18:33 +0200
commit04f3e4b9a9859c90a1b7f29fe68d942106b24336 (patch)
tree155d598137355d27ec5eaf83031d1d138a52ddb2 /tests/functional-tests
parent88ec7fe7af7207a852da0aeef2cfd9ff0dfecceb (diff)
downloadtracker-04f3e4b9a9859c90a1b7f29fe68d942106b24336.tar.gz
Remove unused ontologies
All of these are unused within tracker-miners, and as far as we know they are also unused in GNOME. Each ontology has a cost on database size and on time to create a new database, so it's good to limit these as much as we can. Alternatives: - nid3: use nmm ontology - ncal, scal: use evolution-data-server as GNOME Calendar does - mlo: use slo ontology
Diffstat (limited to 'tests/functional-tests')
-rw-r--r--tests/functional-tests/distance.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/functional-tests/distance.py b/tests/functional-tests/distance.py
index 746153b1c..9ad6ddd6b 100644
--- a/tests/functional-tests/distance.py
+++ b/tests/functional-tests/distance.py
@@ -39,9 +39,9 @@ class TestDistanceFunctions (fixtures.TrackerSparqlDirectTest):
for lat, log in POINT_COORDS:
insert = """
INSERT {
- <%s> a mlo:GeoPoint ;
- mlo:longitude %d ;
- mlo:latitude %d .
+ <%s> a slo:GeoLocation ;
+ slo:longitude %d ;
+ slo:latitude %d .
}
""" % ("point://test/point/" + str(self.counter), log, lat)
self.tracker.update(insert)
@@ -65,13 +65,13 @@ class TestDistanceFunctions (fixtures.TrackerSparqlDirectTest):
query_1_to_2 = """
SELECT xsd:integer(tracker:%s-distance(?lat1,?lat2,?lon1,?lon2))
WHERE {
- <point://test/point/%d> a mlo:GeoPoint ;
- mlo:latitude ?lat1 ;
- mlo:longitude ?lon1 .
+ <point://test/point/%d> a slo:GeoLocation ;
+ slo:latitude ?lat1 ;
+ slo:longitude ?lon1 .
- <point://test/point/%d> a mlo:GeoPoint ;
- mlo:latitude ?lat2 ;
- mlo:longitude ?lon2 .
+ <point://test/point/%d> a slo:GeoLocation ;
+ slo:latitude ?lat2 ;
+ slo:longitude ?lon2 .
}
""" % (sum_func, id1, id2)
result = self.tracker.query(query_1_to_2)