[tracker/ontology-cope-for-master: 1/11] Changed the ontology to have tracker:Ontology and nao:lastModified



commit 6c860789c898b1f0c947b4dfe71272f74d51ed45
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue Feb 16 12:15:53 2010 +0100

    Changed the ontology to have tracker:Ontology and nao:lastModified

 data/ontologies/10-xsd.ontology            |    6 ++++--
 data/ontologies/11-rdf.ontology            |   10 ++++++++--
 data/ontologies/12-nrl.ontology            |    6 ++++--
 data/ontologies/20-dc.ontology             |    6 ++++--
 data/ontologies/30-nie.ontology            |    6 ++++--
 data/ontologies/31-nao.ontology            |   22 ++++++++++++++++------
 data/ontologies/32-nco.ontology            |    6 ++++--
 data/ontologies/33-nfo.ontology            |    6 ++++--
 data/ontologies/34-nmo.ontology            |    6 ++++--
 data/ontologies/35-ncal.ontology           |    6 ++++--
 data/ontologies/36-scal.ontology           |    7 ++++---
 data/ontologies/37-nid3.ontology           |    6 ++++--
 data/ontologies/38-nmm.ontology            |    6 ++++--
 data/ontologies/39-mto.ontology            |    8 ++++----
 data/ontologies/40-mlo.ontology            |    6 +++---
 data/ontologies/41-mfo.ontology            |    7 ++++---
 data/ontologies/89-mtp.ontology            |    8 ++++----
 data/ontologies/90-tracker.ontology        |    3 +++
 data/ontologies/91-maemo.ontology          |    5 +++--
 src/libtracker-data/tracker-data-manager.c |    7 +++++++
 20 files changed, 96 insertions(+), 47 deletions(-)
---
diff --git a/data/ontologies/10-xsd.ontology b/data/ontologies/10-xsd.ontology
index d9ba87d..c22c5fd 100644
--- a/data/ontologies/10-xsd.ontology
+++ b/data/ontologies/10-xsd.ontology
@@ -1,9 +1,11 @@
 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+ prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 
-xsd: a tracker:Namespace ;
-	tracker:prefix "xsd" .
+xsd: a tracker:Namespace, tracker:Ontology ;
+	tracker:prefix "xsd" ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
 
 xsd:string a rdfs:Class .
 xsd:boolean a rdfs:Class .
diff --git a/data/ontologies/11-rdf.ontology b/data/ontologies/11-rdf.ontology
index 4d177d4..1e8e02d 100644
--- a/data/ontologies/11-rdf.ontology
+++ b/data/ontologies/11-rdf.ontology
@@ -3,9 +3,11 @@
 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+ prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 
-rdf: a tracker:Namespace ;
-	tracker:prefix "rdf" .
+rdf: a tracker:Namespace, tracker:Ontology ;
+	tracker:prefix "rdf" ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
 
 rdfs: a tracker:Namespace ;
 	tracker:prefix "rdfs" .
@@ -65,6 +67,10 @@ tracker:Namespace a rdfs:Class ;
 	rdfs:label "Namespace" ;
 	rdfs:subClassOf rdfs:Resource .
 
+tracker:Ontology a rdfs:Class ;
+	rdfs:label "Ontology" ;
+	rdfs:subClassOf rdfs:Resource .
+
 tracker:prefix a rdf:Property ;
 	nrl:maxCardinality 1 ;
 	rdfs:domain tracker:Namespace ;
diff --git a/data/ontologies/12-nrl.ontology b/data/ontologies/12-nrl.ontology
index 62e76db..381e0c3 100644
--- a/data/ontologies/12-nrl.ontology
+++ b/data/ontologies/12-nrl.ontology
@@ -3,9 +3,11 @@
 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+ prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 
-nrl: a tracker:Namespace ;
-	tracker:prefix "nrl" .
+nrl: a tracker:Namespace, tracker:Ontology ;
+	tracker:prefix "nrl" ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
 
 nrl:InverseFunctionalProperty a rdfs:Class .
 
diff --git a/data/ontologies/20-dc.ontology b/data/ontologies/20-dc.ontology
index 3fead04..c50187d 100644
--- a/data/ontologies/20-dc.ontology
+++ b/data/ontologies/20-dc.ontology
@@ -4,9 +4,11 @@
 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+ prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 
-dc: a tracker:Namespace ;
-	tracker:prefix "dc" .
+dc: a tracker:Namespace, tracker:Ontology ;
+	tracker:prefix "dc" ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
 
 dc:title a rdf:Property ;
 	rdfs:label "Title" ;
diff --git a/data/ontologies/30-nie.ontology b/data/ontologies/30-nie.ontology
index 2b5f92a..a2a96f0 100644
--- a/data/ontologies/30-nie.ontology
+++ b/data/ontologies/30-nie.ontology
@@ -6,9 +6,11 @@
 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+ prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 
-nie: a tracker:Namespace ;
-	tracker:prefix "nie" .
+nie: a tracker:Namespace, tracker:Ontology ;
+	tracker:prefix "nie" ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
 
 nie:DataObject a rdfs:Class ;
 	rdfs:label "Data Object" ;
diff --git a/data/ontologies/31-nao.ontology b/data/ontologies/31-nao.ontology
index 6c69470..d5ee42c 100644
--- a/data/ontologies/31-nao.ontology
+++ b/data/ontologies/31-nao.ontology
@@ -1,3 +1,4 @@
+ prefix dc: <http://purl.org/dc/elements/1.1/> .
 @prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 @prefix nie: <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#> .
 @prefix nrl: <http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#> .
@@ -6,8 +7,9 @@
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
 
-nao: a tracker:Namespace ;
-	tracker:prefix "nao" .
+nao: a tracker:Namespace, tracker:Ontology ;
+	tracker:prefix "nao" ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
 
 nao:Tag a rdfs:Class ;
 	rdfs:subClassOf rdfs:Resource ;
@@ -37,10 +39,10 @@ nao:numericRating a rdf:Property ;
 	rdfs:range xsd:double .
 
 nao:deprecated a rdf:Property;
-  rdfs:domain rdfs:Resource;
-  rdfs:range xsd:boolean;
-  rdfs:label "deprecated";
-  rdfs:comment "If this property is assigned, the subject class, property, or resource, is deprecated and should not be used in production systems any longer. It may be removed without further notice." .
+	rdfs:domain rdfs:Resource;
+	rdfs:range xsd:boolean;
+	rdfs:label "deprecated";
+	rdfs:comment "If this property is assigned, the subject class, property, or resource, is deprecated and should not be used in production systems any longer. It may be removed without further notice." .
 
 # These are added and approval by Nepomuk-upstream is pending
 
@@ -61,3 +63,11 @@ nao:hasProperty a rdf:Property ;
 	rdfs:range  nao:Property .
 
 nao:predefined-tag-favorite a nao:Tag .
+
+nao:lastModified a rdf:Property ;
+	rdfs:label "lastModified" ;
+	rdfs:comment "last modification date" ;
+	rdfs:subPropertyOf dc:date ;
+	nrl:maxCardinality 1 ;
+	rdfs:domain rdfs:Resource ;
+	rdfs:range xsd:dateTime .
diff --git a/data/ontologies/32-nco.ontology b/data/ontologies/32-nco.ontology
index 43dbbf2..f75b427 100644
--- a/data/ontologies/32-nco.ontology
+++ b/data/ontologies/32-nco.ontology
@@ -7,9 +7,11 @@
 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+ prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 
-nco: a tracker:Namespace ;
-	tracker:prefix "nco" .
+nco: a tracker:Namespace, tracker:Ontology ;
+	tracker:prefix "nco" ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
 
 nco:Role a rdfs:Class ;
 	rdfs:label "Role" ;
diff --git a/data/ontologies/33-nfo.ontology b/data/ontologies/33-nfo.ontology
index 13b4672..4220840 100644
--- a/data/ontologies/33-nfo.ontology
+++ b/data/ontologies/33-nfo.ontology
@@ -8,9 +8,11 @@
 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+ prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 
-nfo: a tracker:Namespace ;
-	tracker:prefix "nfo" .
+nfo: a tracker:Namespace, tracker:Ontology ;
+	tracker:prefix "nfo" ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
 
 nfo:Document a rdfs:Class ;
 	rdfs:label "Document" ;
diff --git a/data/ontologies/34-nmo.ontology b/data/ontologies/34-nmo.ontology
index a95f1d3..1a7cfd7 100644
--- a/data/ontologies/34-nmo.ontology
+++ b/data/ontologies/34-nmo.ontology
@@ -8,9 +8,11 @@
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
 @prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
+ prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 
-nmo: a tracker:Namespace ;
-	tracker:prefix "nmo" .
+nmo: a tracker:Namespace, tracker:Ontology ;
+	tracker:prefix "nmo" ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
 
 # FIXME Extension requested in Nepomuk
 nmo:MimePart a rdfs:Class ;
diff --git a/data/ontologies/35-ncal.ontology b/data/ontologies/35-ncal.ontology
index ba03d92..1719dbf 100644
--- a/data/ontologies/35-ncal.ontology
+++ b/data/ontologies/35-ncal.ontology
@@ -8,9 +8,11 @@
 @prefix nfo: <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#> .
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+ prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 
-ncal: a tracker:Namespace ;
-	tracker:prefix "ncal" .
+ncal: a tracker:Namespace, tracker:Ontology ;
+	tracker:prefix "ncal" ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
 
 ncal:UnionParentClass a rdfs:Class ;
 	rdfs:label "UnionParentClass" ;
diff --git a/data/ontologies/36-scal.ontology b/data/ontologies/36-scal.ontology
index 404e777..65eea11 100644
--- a/data/ontologies/36-scal.ontology
+++ b/data/ontologies/36-scal.ontology
@@ -5,11 +5,12 @@
 @prefix nie: <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#> .
 @prefix nco: <http://www.semanticdesktop.org/ontologies/2007/03/22/nco#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
-
+ prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 @prefix scal: <http://www.tracker-project.org/temp/scal#> .
 
-scal: a tracker:Namespace ;
-      tracker:prefix "scal" .
+scal: a tracker:Namespace, tracker:Ontology ;
+      tracker:prefix "scal" ;
+      nao:lastModified "2010-02-16T11:00:00Z" .
 
 scal:Calendar a rdfs:Class ;
       rdfs:label "Calendar" ;
diff --git a/data/ontologies/37-nid3.ontology b/data/ontologies/37-nid3.ontology
index a4c6c02..08e1d05 100644
--- a/data/ontologies/37-nid3.ontology
+++ b/data/ontologies/37-nid3.ontology
@@ -7,9 +7,11 @@
 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+ prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 
-nid3: a tracker:Namespace ;
-	tracker:prefix "nid3" .
+nid3: a tracker:Namespace, tracker:Ontology ;
+	tracker:prefix "nid3" ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
 
 nid3:ID3Audio a rdfs:Class ;
 	rdfs:subClassOf nfo:Audio .
diff --git a/data/ontologies/38-nmm.ontology b/data/ontologies/38-nmm.ontology
index 327178a..83c508e 100644
--- a/data/ontologies/38-nmm.ontology
+++ b/data/ontologies/38-nmm.ontology
@@ -9,9 +9,11 @@
 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+ prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 
-nmm: a tracker:Namespace ;
-	tracker:prefix "nmm" .
+nmm: a tracker:Namespace, tracker:Ontology ;
+	tracker:prefix "nmm" ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
 
 nmm:MusicPiece a rdfs:Class ;
 	rdfs:label "Music" ;
diff --git a/data/ontologies/39-mto.ontology b/data/ontologies/39-mto.ontology
index fe7e711..4531b1f 100644
--- a/data/ontologies/39-mto.ontology
+++ b/data/ontologies/39-mto.ontology
@@ -3,14 +3,14 @@
 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
 @prefix nrl: <http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#> .
 @prefix nie: <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#> .
-
 @prefix nfo: <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#> .
-
 @prefix mto: <http://www.tracker-project.org/temp/mto#> .
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
+ prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 
-mto: a tracker:Namespace ;
-    tracker:prefix "mto" .
+mto: a tracker:Namespace, tracker:Ontology ;
+    tracker:prefix "mto" ;
+    nao:lastModified "2010-02-16T11:00:00Z" .
 
 mto:TransferElement a rdfs:Class ;
     rdfs:label "Transfer element" ;
diff --git a/data/ontologies/40-mlo.ontology b/data/ontologies/40-mlo.ontology
index 2324c63..a1d8dfd 100644
--- a/data/ontologies/40-mlo.ontology
+++ b/data/ontologies/40-mlo.ontology
@@ -4,13 +4,13 @@
 @prefix nrl: <http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#> .
 @prefix nie: <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#> .
 @prefix nco: <http://www.semanticdesktop.org/ontologies/2007/03/22/nco#> .
-
 @prefix mlo: <http://www.tracker-project.org/temp/mlo#> .
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 
-mlo: a tracker:Namespace ;
-    tracker:prefix "mlo" .
+mlo: a tracker:Namespace, tracker:Ontology ;
+    tracker:prefix "mlo" ;
+    nao:lastModified "2010-02-16T11:00:00Z" .
 
 mlo:GeoLocation a rdfs:Class ;
     rdfs:label "Location" ;
diff --git a/data/ontologies/41-mfo.ontology b/data/ontologies/41-mfo.ontology
index c5cfac3..a7f1f9b 100644
--- a/data/ontologies/41-mfo.ontology
+++ b/data/ontologies/41-mfo.ontology
@@ -7,10 +7,11 @@
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix nmo: <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#> .
 @prefix mfo: <http://www.tracker-project.org/temp/mfo#> .
+ prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 
-
-mfo: a tracker:Namespace ;
-	tracker:prefix "mfo" .
+mfo: a tracker:Namespace, tracker:Ontology ;
+	tracker:prefix "mfo" ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
 
 mfo:FeedElement a rdfs:Class;
 	rdfs:label "Feed element";
diff --git a/data/ontologies/89-mtp.ontology b/data/ontologies/89-mtp.ontology
index 49cf653..c0004c8 100644
--- a/data/ontologies/89-mtp.ontology
+++ b/data/ontologies/89-mtp.ontology
@@ -4,20 +4,20 @@
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
 @prefix mtp: <http://www.tracker-project.org/temp/mtp#> .
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
-
 @prefix nie: <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#> .
 @prefix nmm: <http://www.tracker-project.org/temp/nmm#> .
 @prefix nfo: <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#> .
+ prefix nao: <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#> .
 
+mtp: a tracker:Namespace, tracker:Ontology ;
+	tracker:prefix "mtp" ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
 
 #
 # This ontology "decorates" nmm and nfo to include properties required
 # by the MTP protocol
 #
 
-mtp: a tracker:Namespace ;
-	tracker:prefix "mtp" .
-
 mtp:ScanType a rdfs:Class ;
 	rdfs:label "Scan types" ;
 	rdfs:comment "pre-defined set of scan types instances" ;
diff --git a/data/ontologies/90-tracker.ontology b/data/ontologies/90-tracker.ontology
index 88e9936..22a641e 100644
--- a/data/ontologies/90-tracker.ontology
+++ b/data/ontologies/90-tracker.ontology
@@ -7,6 +7,9 @@
 @prefix tracker: <http://www.tracker-project.org/ontologies/tracker#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
 
+tracker: a tracker:Ontology ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
+
 tracker:isDefaultTag a rdf:Property ;
 	rdfs:domain nao:Tag ;
 	rdfs:range xsd:boolean .
diff --git a/data/ontologies/91-maemo.ontology b/data/ontologies/91-maemo.ontology
index 1b1c052..28b84b3 100644
--- a/data/ontologies/91-maemo.ontology
+++ b/data/ontologies/91-maemo.ontology
@@ -9,8 +9,9 @@
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
 @prefix maemo: <http://maemo.org/ontologies/tracker#> .
 
-maemo: a tracker:Namespace ;
-	tracker:prefix "maemo" .
+maemo: a tracker:Namespace, tracker:Ontology ;
+	tracker:prefix "maemo" ;
+	nao:lastModified "2010-02-16T11:00:00Z" .
 
 maemo:SoftwareWidget a rdfs:Class ;
 	rdfs:label "Widget" ;
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index c65aca6..b434697 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -57,6 +57,9 @@
 #define NRL_INVERSE_FUNCTIONAL_PROPERTY TRACKER_NRL_PREFIX "InverseFunctionalProperty"
 #define NRL_MAX_CARDINALITY NRL_PREFIX "maxCardinality"
 
+#define NAO_PREFIX TRACKER_NAO_PREFIX
+#define NAO_LAST_MODIFIED NAO_PREFIX "lastModified"
+
 #define TRACKER_PREFIX TRACKER_TRACKER_PREFIX
 
 #define ZLIBBUFSIZ 8192
@@ -132,7 +135,11 @@ load_ontology_statement (const gchar *ontology_file,
 			tracker_namespace_set_uri (namespace, subject);
 			tracker_ontology_add_namespace (namespace);
 			g_object_unref (namespace);
+		} else if (g_strcmp0 (object, TRACKER_PREFIX "Ontology") == 0) {
+			g_print ("ONTOLOGY: %s\n", subject);
 		}
+	} else if (g_strcmp0 (predicate, NAO_LAST_MODIFIED) == 0) {
+		g_print ("\tNAO LAST MODIFIED: %s\n", object);
 	} else if (g_strcmp0 (predicate, RDFS_SUB_CLASS_OF) == 0) {
 		TrackerClass *class, *super_class;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]