[tracker] Ignore InverseFunctionalProperty subclassing in the validator



commit eb2667b2d801af2396a1ce87103f98e0c7ff0700
Author: Ivan Frade <ivan frade nokia com>
Date:   Tue Nov 17 11:12:56 2009 +0200

    Ignore InverseFunctionalProperty subclassing in the validator

 utils/services/ontology-validator.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/utils/services/ontology-validator.c b/utils/services/ontology-validator.c
index 3e316eb..402da36 100644
--- a/utils/services/ontology-validator.c
+++ b/utils/services/ontology-validator.c
@@ -24,7 +24,7 @@ static GOptionEntry   entries[] = {
 #define TRACKER_PREFIX "http://www.tracker-project.org/ontologies/tracker#prefix";
 #define RDFS_RANGE "http://www.w3.org/2000/01/rdf-schema#range";
 #define RDFS_DOMAIN "http://www.w3.org/2000/01/rdf-schema#domain";
-
+#define NRL_IFP "http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#InverseFunctionalProperty";
 
 static GList *unknown_items = NULL;
 static GList *known_items = NULL;
@@ -61,6 +61,11 @@ turtle_load_ontology (const gchar *turtle_subject,
                         return;
                 }
 
+                if (!g_strcmp0 (turtle_object, NRL_IFP)) {
+                        /* Ignore the InverseFunctionalProperty subclassing */
+                        return;
+                }
+
                 /* Check the nmo:Email hasn't already be defined
                  *  (ignoring rdfs:Class and rdf:Property for bootstraping reasons)
                  */



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