[tracker/sam/remove-maemo: 1/2] Remove Maemo ontology
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/remove-maemo: 1/2] Remove Maemo ontology
- Date: Fri, 6 Mar 2020 01:45:45 +0000 (UTC)
commit 46ca75a255afe8186b28cef18aac16efebac7ce6
Author: Sam Thursfield <sam afuera me uk>
Date: Fri Mar 6 02:16:02 2020 +0100
Remove Maemo ontology
It's very obsolete.
docs/reference/ontology/ontology-docs.xml | 1 -
src/ontologies/meson.build | 2 -
src/ontologies/nepomuk/91-maemo.description | 13 --
src/ontologies/nepomuk/91-maemo.ontology | 115 ------------
tests/functional-tests/insertion.py | 69 --------
utils/ontology/resources/logo-maemo-ontology.png | Bin 3948 -> 0 bytes
utils/ontology/resources/maemo-logo.gif | Bin 3720 -> 0 bytes
utils/ontology/resources/nie-maemo.css | 213 -----------------------
8 files changed, 413 deletions(-)
---
diff --git a/docs/reference/ontology/ontology-docs.xml b/docs/reference/ontology/ontology-docs.xml
index 463bf4e17..b560125f7 100644
--- a/docs/reference/ontology/ontology-docs.xml
+++ b/docs/reference/ontology/ontology-docs.xml
@@ -52,7 +52,6 @@
<xi:include href="xml/mtp-ontology.xml" />
<xi:include href="xml/slo-ontology.xml" />
<xi:include href="xml/tracker-ontology.xml" />
- <xi:include href="xml/maemo-ontology.xml" />
<xi:include href="xml/osinfo-ontology.xml" />
<xi:include href="xml/nid3-ontology.xml" />
</part>
diff --git a/src/ontologies/meson.build b/src/ontologies/meson.build
index 429bff3f7..d4fe478b0 100644
--- a/src/ontologies/meson.build
+++ b/src/ontologies/meson.build
@@ -38,8 +38,6 @@ nepomuk = files(
'nepomuk/89-mtp.ontology',
'nepomuk/90-tracker.description',
'nepomuk/90-tracker.ontology',
- 'nepomuk/91-maemo.description',
- 'nepomuk/91-maemo.ontology',
'nepomuk/92-slo.description',
'nepomuk/92-slo.ontology',
'nepomuk/93-libosinfo.description',
diff --git a/tests/functional-tests/insertion.py b/tests/functional-tests/insertion.py
index cd56fa85c..4db193d6a 100644
--- a/tests/functional-tests/insertion.py
+++ b/tests/functional-tests/insertion.py
@@ -717,74 +717,5 @@ class TrackerStoreDeleteTests (fixtures.TrackerSparqlDirectTest):
self.assertEqual(after_removal, initial)
-class TrackerStorePhoneNumberTest (fixtures.TrackerSparqlDirectTest):
- """
- Tests around phone numbers (maemo specific). Inserting correct/incorrect ones
- and running query to get the contact from the number.
- """
-
- def test_phone_01(self):
- """
- 1. Setting the maemo:localPhoneNumber property to last 7 digits of phone number.
- 2. Receiving a message from a contact whose localPhoneNumber is saved.
- 3. Query messages from the local phone number
- """
-
- INSERT_CONTACT_PHONE = """
- INSERT {
- <tel:123456789> a nco:PhoneNumber ;
- nco:phoneNumber '00358555444333' ;
- maemo:localPhoneNumber '5444333'.
-
- <test://test_phone_1/contact> a nco:PersonContact;
- nco:contactUID '112';
- nco:nameFamily 'Family-name' ;
- nco:nameGiven 'Given-name'.
- <test://test_phone_1/contact> nco:hasPhoneNumber <tel:123456789>.
- }
- """
- self.tracker.update(INSERT_CONTACT_PHONE)
-
- INSERT_MESSAGE = """
- INSERT {
- <test://test_phone_1/message> a nmo:Message ;
- nmo:from [a nco:Contact ; nco:hasPhoneNumber <tel:123456789>];
- nmo:receivedDate '2010-01-02T10:13:00Z' ;
- nie:plainTextContent 'hello'
- }
- """
- self.tracker.update(INSERT_MESSAGE)
-
- QUERY_SPARQL = """
- SELECT ?msg WHERE {
- ?msg a nmo:Message;
- nmo:from ?c .
- ?c nco:hasPhoneNumber ?n .
- ?n maemo:localPhoneNumber '5444333'.
- } """
- result = self.tracker.query(QUERY_SPARQL)
- self.assertEqual(len(result), 1)
- self.assertEqual(len(result[0]), 1)
- self.assertEqual(result[0][0], "test://test_phone_1/message")
-
- def test_phone_02(self):
- """
- Inserting a local phone number which have spaces
- """
- INSERT_SPARQL = """
- INSERT {
- <tel+3333333333> a nco:PhoneNumber ;
- nco:phoneNumber <tel+3333333333> ;
- maemo:localPhoneNumber '333 333'.
-
- <test://test_phone_02/contact> a nco:PersonContact;
- nco:nameFamily 'test_name_01' ;
- nco:nameGiven 'test_name_02';
- nco:hasPhoneNumber <tel+3333333333> .
- }
- """
- self.tracker.update(INSERT_SPARQL)
-
-
if __name__ == "__main__":
ut.main(verbosity=2)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]