summaryrefslogtreecommitdiff
path: root/tests/functional-tests/data
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional-tests/data')
-rw-r--r--tests/functional-tests/data/ontologies/add-class/91-test.ontology93
-rw-r--r--tests/functional-tests/data/ontologies/add-domainIndex/91-test.ontology92
-rw-r--r--tests/functional-tests/data/ontologies/add-prop/91-test.ontology131
-rw-r--r--tests/functional-tests/data/ontologies/basic-future/91-test.ontology86
-rw-r--r--tests/functional-tests/data/ontologies/basic/91-test.ontology86
-rw-r--r--tests/functional-tests/data/ontologies/cardinality/91-test.ontology99
-rw-r--r--tests/functional-tests/data/ontologies/indexed/91-test.ontology107
-rw-r--r--tests/functional-tests/data/ontologies/notify/91-test.ontology91
-rw-r--r--tests/functional-tests/data/ontologies/property-promotion/91-test.ontology87
-rw-r--r--tests/functional-tests/data/ontologies/property-range-int-to-string/91-test.ontology99
-rw-r--r--tests/functional-tests/data/ontologies/property-range-string-to-date/91-test.ontology96
-rw-r--r--tests/functional-tests/data/ontologies/simple-updated-with-errors/91-test.ontology33
-rw-r--r--tests/functional-tests/data/ontologies/simple-updated-with-errors/92-test.ontology17
-rw-r--r--tests/functional-tests/data/ontologies/simple-updated/91-test.ontology33
-rw-r--r--tests/functional-tests/data/ontologies/simple-updated/92-test.ontology13
-rw-r--r--tests/functional-tests/data/ontologies/simple-with-errors/91-test.ontology40
-rw-r--r--tests/functional-tests/data/ontologies/simple-with-errors/92-test.ontology16
-rw-r--r--tests/functional-tests/data/ontologies/simple/91-test.ontology35
-rw-r--r--tests/functional-tests/data/ontologies/simple/92-test.ontology13
-rw-r--r--tests/functional-tests/data/ontologies/superclass-remove/91-test.ontology88
-rw-r--r--tests/functional-tests/data/serialized/test-movie.ttl19
21 files changed, 1374 insertions, 0 deletions
diff --git a/tests/functional-tests/data/ontologies/add-class/91-test.ontology b/tests/functional-tests/data/ontologies/add-class/91-test.ontology
new file mode 100644
index 000000000..582cce0d3
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/add-class/91-test.ontology
@@ -0,0 +1,93 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+#
+# Note: If you modify this ontology remember to replicate the changes in the other
+# 91 ontologies
+#
+#
+# A (with props for string and int, string n-cardinality, )
+# / \
+# B C
+#
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2010-03-24T11:00:04Z" ;
+ nrl:prefix "test" .
+
+test:A a rdfs:Class .
+
+test:a_string a rdf:Property ;
+ rdfs:comment "Property to test the conversions from string" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_datetime a rdf:Property ;
+ rdfs:comment "Property to test the changes string/date" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality 1 .
+
+test:a_int a rdf:Property ;
+ rdfs:comment "Property to test the changes string/int" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:integer ;
+ nrl:maxCardinality 1 .
+
+test:a_n_cardinality a rdf:Property ;
+ rdfs:comment "Property to test the cardinality changes" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string .
+# Max cardinality N because is not specified
+
+test:a_superprop a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop." ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_superprop_n a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop. cardinality N" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:B a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:b_property a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:b_property_n a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string .
+
+test:C a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:c_subprop a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:c_subprop_n a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop_n ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string .
+
+# ***** TEST CHANGE *****
+test:D a rdfs:Class .
+
+test:E a rdfs:Class ;
+ rdfs:subClassOf test:A .
+# ***********************
diff --git a/tests/functional-tests/data/ontologies/add-domainIndex/91-test.ontology b/tests/functional-tests/data/ontologies/add-domainIndex/91-test.ontology
new file mode 100644
index 000000000..d11f79e06
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/add-domainIndex/91-test.ontology
@@ -0,0 +1,92 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+#
+# Note: If you modify this ontology remember to replicate the changes in the other
+# 91 ontologies
+#
+#
+# A (with props for string and int, string n-cardinality, )
+# / \
+# B C
+#
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2010-03-24T11:00:04Z" ;
+ nrl:prefix "test" .
+
+test:A a rdfs:Class .
+
+test:a_string a rdf:Property ;
+ rdfs:comment "Property to test the conversions from string" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_datetime a rdf:Property ;
+ rdfs:comment "Property to test the changes string/date" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality 1 .
+
+test:a_int a rdf:Property ;
+ rdfs:comment "Property to test the changes string/int" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:integer ;
+ nrl:maxCardinality 1 .
+
+test:a_n_cardinality a rdf:Property ;
+ rdfs:comment "Property to test the cardinality changes" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string .
+# Max cardinality N because is not specified
+
+test:a_superprop a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop." ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_superprop_n a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop. cardinality N" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+# ****** TEST CHANGE *****
+test:B a rdfs:Class ;
+ nrl:domainIndex test:a_string ;
+ rdfs:subClassOf test:A .
+# ************************
+
+test:b_property a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:b_property_n a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string .
+
+# ****** TEST CHANGE *****
+test:C a rdfs:Class ;
+ nrl:domainIndex test:a_int ;
+ rdfs:subClassOf test:A .
+# *************************
+
+test:c_subprop a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:c_subprop_n a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop_n ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string .
diff --git a/tests/functional-tests/data/ontologies/add-prop/91-test.ontology b/tests/functional-tests/data/ontologies/add-prop/91-test.ontology
new file mode 100644
index 000000000..07ee94571
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/add-prop/91-test.ontology
@@ -0,0 +1,131 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+#
+# Note: If you modify this ontology remember to replicate the changes in the other
+# 91 ontologies
+#
+#
+# A (with props for string and int, string n-cardinality, )
+# / \
+# B C
+#
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2010-03-24T11:00:04Z" ;
+ nrl:prefix "test" .
+
+test:A a rdfs:Class .
+
+test:a_string a rdf:Property ;
+ rdfs:comment "Property to test the conversions from string" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_datetime a rdf:Property ;
+ rdfs:comment "Property to test the changes string/date" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality 1 .
+
+test:a_int a rdf:Property ;
+ rdfs:comment "Property to test the changes string/int" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:integer ;
+ nrl:maxCardinality 1 .
+
+test:a_n_cardinality a rdf:Property ;
+ rdfs:comment "Property to test the cardinality changes" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string .
+# Max cardinality N because is not specified
+
+test:a_superprop a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop." ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_superprop_n a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop. cardinality N" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:B a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:b_property a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:b_property_n a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string .
+
+test:C a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:c_subprop a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:c_subprop_n a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop_n ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string .
+
+# ***** TEST CHANGE *****
+
+test:new_prop_int a rdf:Property ;
+ rdfs:label "Adding a single-valued int property" ;
+ rdfs:comment "x" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:integer ;
+ nrl:maxCardinality 1 .
+
+test:new_prop_int_n a rdf:Property ;
+ rdfs:label "test:new_prop_int_n" ;
+ rdfs:comment "Adding a n-valued int property" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:integer .
+
+test:new_prop_string a rdf:Property ;
+ rdfs:label "test:new_prop_string" ;
+ rdfs:comment "Adding a single valued string property" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:new_prop_string_n a rdf:Property ;
+ rdfs:label "test:new_prop_string_n" ;
+ rdfs:comment "Adding a n-valued string property" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string .
+
+test:new_subprop_string a rdf:Property ;
+ rdfs:label "test:new_subprop_string" ;
+ rdfs:comment "Addind a single-value string subproperty of a prop already in the ontology" ;
+ rdfs:domain test:B ;
+ rdfs:range xsd:string ;
+ rdfs:subPropertyOf test:a_superprop ;
+ nrl:maxCardinality 1 .
+
+test:new_subprop_string_n a rdf:Property ;
+ rdfs:label "test:new_subprop_string" ;
+ rdfs:comment "Addind a n-value string subproperty of a prop already in the ontology" ;
+ rdfs:domain test:B ;
+ rdfs:range xsd:string ;
+ rdfs:subPropertyOf test:a_superprop_n .
+
+# ***********************
diff --git a/tests/functional-tests/data/ontologies/basic-future/91-test.ontology b/tests/functional-tests/data/ontologies/basic-future/91-test.ontology
new file mode 100644
index 000000000..fb15a14b5
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/basic-future/91-test.ontology
@@ -0,0 +1,86 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+#
+# Note: If you modify this ontology remember to replicate the changes in the other
+# 91 ontologies
+#
+#
+# A (with props for string and int, string n-cardinality, )
+# / \
+# B C
+#
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2011-03-24T11:00:04Z" ;
+ nrl:prefix "test" .
+
+test:A a rdfs:Class .
+
+test:a_string a rdf:Property ;
+ rdfs:comment "Property to test the conversions from string" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_datetime a rdf:Property ;
+ rdfs:comment "Property to test the changes string/date" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality 1 .
+
+test:a_int a rdf:Property ;
+ rdfs:comment "Property to test the changes string/int" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:integer ;
+ nrl:maxCardinality 1 .
+
+test:a_n_cardinality a rdf:Property ;
+ rdfs:comment "Property to test the cardinality changes" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string .
+# Max cardinality N because is not specified
+
+test:a_superprop a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop." ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_superprop_n a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop. cardinality N" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:B a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:b_property a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:b_property_n a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string .
+
+test:C a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:c_subprop a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:c_subprop_n a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop_n ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string .
diff --git a/tests/functional-tests/data/ontologies/basic/91-test.ontology b/tests/functional-tests/data/ontologies/basic/91-test.ontology
new file mode 100644
index 000000000..e5143a3b1
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/basic/91-test.ontology
@@ -0,0 +1,86 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+#
+# Note: If you modify this ontology remember to replicate the changes in the other
+# 91 ontologies
+#
+#
+# A (with props for string and int, string n-cardinality, )
+# / \
+# B C
+#
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2010-03-23T11:00:04Z" ;
+ nrl:prefix "test" .
+
+test:A a rdfs:Class .
+
+test:a_string a rdf:Property ;
+ rdfs:comment "Property to test the conversions from string" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_datetime a rdf:Property ;
+ rdfs:comment "Property to test the changes string/date" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality 1 .
+
+test:a_int a rdf:Property ;
+ rdfs:comment "Property to test the changes string/int" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:integer ;
+ nrl:maxCardinality 1 .
+
+test:a_n_cardinality a rdf:Property ;
+ rdfs:comment "Property to test the cardinality changes" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string .
+# Max cardinality N because is not specified
+
+test:a_superprop a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop." ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_superprop_n a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop. cardinality N" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:B a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:b_property a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:b_property_n a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string .
+
+test:C a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:c_subprop a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:c_subprop_n a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop_n ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string .
diff --git a/tests/functional-tests/data/ontologies/cardinality/91-test.ontology b/tests/functional-tests/data/ontologies/cardinality/91-test.ontology
new file mode 100644
index 000000000..b7e972e8e
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/cardinality/91-test.ontology
@@ -0,0 +1,99 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+#
+# Note: If you modify this ontology remember to replicate the changes in the other
+# 91 ontologies
+#
+#
+# A (with props for string and int, string n-cardinality, )
+# / \
+# B C
+#
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2010-03-24T11:00:04Z" ;
+ nrl:prefix "test" .
+
+test:A a rdfs:Class .
+
+test:a_string a rdf:Property ;
+ rdfs:comment "Property to test the conversions from string" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_datetime a rdf:Property ;
+ rdfs:comment "Property to test the changes string/date" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality 1 .
+
+test:a_int a rdf:Property ;
+ rdfs:comment "Property to test the changes string/int" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:integer ;
+ nrl:maxCardinality 1 .
+
+# ******** TEST CHANGE ****
+#test:a_n_cardinality a rdf:Property ;
+# rdfs:comment "Property to test the cardinality changes" ;
+# rdfs:domain test:A ;
+# rdfs:range xsd:string .
+# Max cardinality N because is not specified
+# **************************
+
+test:a_superprop a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop." ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_superprop_n a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop. cardinality N" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:B a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:b_property a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:b_property_n a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string .
+
+test:C a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:c_subprop a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:c_subprop_n a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop_n ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string .
+
+# ******** TEST CHANGE ****
+
+test:a_n_cardinality a rdf:Property ;
+ rdfs:comment "This property has cardinality N in master";
+ nrl:maxCardinality 1 ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string .
+
+# **************************
+
diff --git a/tests/functional-tests/data/ontologies/indexed/91-test.ontology b/tests/functional-tests/data/ontologies/indexed/91-test.ontology
new file mode 100644
index 000000000..f3db50629
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/indexed/91-test.ontology
@@ -0,0 +1,107 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+#
+# Note: If you modify this ontology remember to replicate the changes in the other
+# 91 ontologies
+#
+#
+# A (with props for string and int, string n-cardinality, )
+# / \
+# B C
+#
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2010-03-24T11:00:04Z" ;
+ nrl:prefix "test" .
+
+test:A a rdfs:Class .
+
+# ****** TEST CHANGE ***********
+#test:a_string a rdf:Property ;
+# rdfs:comment "Property to test the conversions from string" ;
+# rdfs:domain test:A ;
+# rdfs:range xsd:string ;
+# nrl:maxCardinality 1 .
+# *******************************
+
+test:a_datetime a rdf:Property ;
+ rdfs:comment "Property to test the changes string/date" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality 1 .
+
+test:a_int a rdf:Property ;
+ rdfs:comment "Property to test the changes string/int" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:integer ;
+ nrl:maxCardinality 1 .
+
+# ******* TEST CHANGE ***********
+#test:a_n_cardinality a rdf:Property ;
+# rdfs:comment "Property to test the cardinality changes" ;
+# rdfs:domain test:A ;
+# rdfs:range xsd:string .
+# Max cardinality N because is not specified
+# *******************************
+
+test:a_superprop a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop." ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_superprop_n a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop. cardinality N" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:B a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:b_property a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:b_property_n a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string .
+
+test:C a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:c_subprop a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:c_subprop_n a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop_n ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string .
+
+# ******* TEST CHANGE ***********
+test:a_n_cardinality a rdf:Property ;
+ rdfs:comment "Property to test the cardinality changes. indexed is false in basic" ;
+ rdfs:domain test:A ;
+ nrl:indexed true ;
+ rdfs:range xsd:string .
+# Max cardinality N because is not specified
+
+test:a_string a rdf:Property ;
+ rdfs:comment "Property to test the conversions from string" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:indexed true ;
+ nrl:maxCardinality 1 .
+
+# *******************************
diff --git a/tests/functional-tests/data/ontologies/notify/91-test.ontology b/tests/functional-tests/data/ontologies/notify/91-test.ontology
new file mode 100644
index 000000000..307b5a51f
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/notify/91-test.ontology
@@ -0,0 +1,91 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+#
+# Note: If you modify this ontology remember to replicate the changes in the other
+# 91 ontologies
+#
+#
+# A (with props for string and int, string n-cardinality, )
+# / \
+# B C
+#
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2010-03-24T11:00:04Z" ;
+ nrl:prefix "test" .
+
+# ***** TEST CHANGE ******
+# test:A a rdfs:Class .
+
+test:A a rdfs:Class ;
+ nrl:notify true .
+# ***************************
+
+test:a_string a rdf:Property ;
+ rdfs:comment "Property to test the conversions from string" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_datetime a rdf:Property ;
+ rdfs:comment "Property to test the changes string/date" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality 1 .
+
+test:a_int a rdf:Property ;
+ rdfs:comment "Property to test the changes string/int" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:integer ;
+ nrl:maxCardinality 1 .
+
+test:a_n_cardinality a rdf:Property ;
+ rdfs:comment "Property to test the cardinality changes" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string .
+# Max cardinality N because is not specified
+
+test:a_superprop a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop." ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_superprop_n a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop. cardinality N" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:B a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:b_property a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:b_property_n a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string .
+
+test:C a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:c_subprop a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:c_subprop_n a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop_n ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string .
diff --git a/tests/functional-tests/data/ontologies/property-promotion/91-test.ontology b/tests/functional-tests/data/ontologies/property-promotion/91-test.ontology
new file mode 100644
index 000000000..f0916736d
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/property-promotion/91-test.ontology
@@ -0,0 +1,87 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+#
+# Note: If you modify this ontology remember to replicate the changes in the other
+# 91 ontologies
+#
+#
+# A (with props for string and int, string n-cardinality, )
+# / \
+# B C
+#
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2010-03-24T11:00:04Z" ;
+ nrl:prefix "test" .
+
+test:A a rdfs:Class .
+
+test:a_string a rdf:Property ;
+ rdfs:comment "Property to test the conversions from string" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_datetime a rdf:Property ;
+ rdfs:comment "Property to test the changes string/date" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality 1 .
+
+test:a_int a rdf:Property ;
+ rdfs:comment "Property to test the changes string/int" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:integer ;
+ nrl:maxCardinality 1 .
+
+test:a_n_cardinality a rdf:Property ;
+ rdfs:comment "Property to test the cardinality changes" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string .
+# Max cardinality N because is not specified
+
+test:a_superprop a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop." ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_superprop_n a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop. cardinality N" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:B a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:b_property a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:b_property_n a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:A ;
+ rdfs:range xsd:string .
+
+test:C a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:c_subprop a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:c_subprop_n a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop_n ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string .
+
diff --git a/tests/functional-tests/data/ontologies/property-range-int-to-string/91-test.ontology b/tests/functional-tests/data/ontologies/property-range-int-to-string/91-test.ontology
new file mode 100644
index 000000000..e45ba6657
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/property-range-int-to-string/91-test.ontology
@@ -0,0 +1,99 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+#
+# Note: If you modify this ontology remember to replicate the changes in the other
+# 91 ontologies
+#
+#
+# A (with props for string and int, string n-cardinality, )
+# / \
+# B C
+#
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2010-03-24T11:00:04Z" ;
+ nrl:prefix "test" .
+
+test:A a rdfs:Class .
+
+test:a_string a rdf:Property ;
+ rdfs:comment "Property to test the conversions from string" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_datetime a rdf:Property ;
+ rdfs:comment "Property to test the changes string/date" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality 1 .
+
+# ******* TEST CHANGE *********
+#test:a_int a rdf:Property ;
+# rdfs:comment "Property to test the changes string/int" ;
+# rdfs:domain test:A ;
+# rdfs:range xsd:integer ;
+# nrl:maxCardinality 1 .
+# *****************************
+
+test:a_n_cardinality a rdf:Property ;
+ rdfs:comment "Property to test the cardinality changes" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string .
+# Max cardinality N because is not specified
+
+test:a_superprop a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop." ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_superprop_n a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop. cardinality N" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:B a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:b_property a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:b_property_n a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string .
+
+test:C a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:c_subprop a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:c_subprop_n a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop_n ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string .
+
+
+# ***** TEST CHANGE *********
+
+test:a_int a rdf:Property ;
+ rdfs:comment "This property is integer in basic here is string" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+# ****************************
diff --git a/tests/functional-tests/data/ontologies/property-range-string-to-date/91-test.ontology b/tests/functional-tests/data/ontologies/property-range-string-to-date/91-test.ontology
new file mode 100644
index 000000000..6749f79d8
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/property-range-string-to-date/91-test.ontology
@@ -0,0 +1,96 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+#
+# Note: If you modify this ontology remember to replicate the changes in the other
+# 91 ontologies
+#
+#
+# A (with props for string and int, string n-cardinality, )
+# / \
+# B C
+#
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2010-03-24T11:00:04Z" ;
+ nrl:prefix "test" .
+
+test:A a rdfs:Class .
+
+# ***** TEST CHANGE *****
+#test:a_string a rdf:Property ;
+# rdfs:comment "Property to test the conversions from string" ;
+# rdfs:domain test:A ;
+# rdfs:range xsd:string ;
+# nrl:maxCardinality 1 .
+# ************************
+
+test:a_datetime a rdf:Property ;
+ rdfs:comment "Property to test the changes string/date" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality 1 .
+
+test:a_int a rdf:Property ;
+ rdfs:comment "Property to test the changes string/int" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:integer ;
+ nrl:maxCardinality 1 .
+
+test:a_n_cardinality a rdf:Property ;
+ rdfs:comment "Property to test the cardinality changes" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string .
+# Max cardinality N because is not specified
+
+test:a_superprop a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop." ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_superprop_n a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop. cardinality N" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:B a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:b_property a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:b_property_n a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string .
+
+test:C a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:c_subprop a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:c_subprop_n a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop_n ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string .
+
+# ****** TEST CHANGE *****
+test:a_string a rdf:Property ;
+ rdfs:comment "This is string in the original ontology, now date" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality 1 .
+# *************************
diff --git a/tests/functional-tests/data/ontologies/simple-updated-with-errors/91-test.ontology b/tests/functional-tests/data/ontologies/simple-updated-with-errors/91-test.ontology
new file mode 100644
index 000000000..e62f6981b
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/simple-updated-with-errors/91-test.ontology
@@ -0,0 +1,33 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2011-03-24T11:00:04Z" ;
+ nrl:prefix "test" .
+
+test:A a rdfs:Class ;
+ rdfs:subClassOf rdfs:Resource .
+
+test:B a rdfs:Class ;
+ rdfs:subClassOf rdfs:Resource .
+
+test:b_range_boolean_string a rdf:Property ;
+ rdfs:range xsd:string ;
+ rdfs:domain test:B .
+
+test:b_a_domain a rdf:Property ;
+ rdfs:range xsd:integer ;
+ rdfs:domain test:A .
+
+test:a_b_domain_range a rdf:Property ;
+ rdfs:range test:A ;
+ rdfs:domain test:B .
+
+# ******* UPDATES *******
+test:a_b_domain a rdf:Property ;
+ rdfs:range xsd:integer ;
+ rdfs:domain test:B . # Will be changed to test:A
+# ***********************
diff --git a/tests/functional-tests/data/ontologies/simple-updated-with-errors/92-test.ontology b/tests/functional-tests/data/ontologies/simple-updated-with-errors/92-test.ontology
new file mode 100644
index 000000000..436a2cdf8
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/simple-updated-with-errors/92-test.ontology
@@ -0,0 +1,17 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix test2: <http://example2.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+test2: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2011-03-24T11:00:04Z" ;
+ nrl:prefix "test2" .
+
+test2:C a rdfs:Class ;
+ rdfs:subClassOf test:B . # Was test:A
+
+# ******* MALFORMED PREFIX *******
+malformed:x a rdfs:Class .
+# ********************************
diff --git a/tests/functional-tests/data/ontologies/simple-updated/91-test.ontology b/tests/functional-tests/data/ontologies/simple-updated/91-test.ontology
new file mode 100644
index 000000000..c63cf232d
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/simple-updated/91-test.ontology
@@ -0,0 +1,33 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2011-03-24T11:00:04Z" ;
+ nrl:prefix "test" .
+
+test:A a rdfs:Class ;
+ rdfs:subClassOf rdfs:Resource .
+
+test:B a rdfs:Class ;
+ rdfs:subClassOf rdfs:Resource .
+
+test:b_range_boolean_string a rdf:Property ;
+ rdfs:range xsd:string ;
+ rdfs:domain test:B .
+
+test:b_a_domain a rdf:Property ;
+ rdfs:range xsd:integer ;
+ rdfs:domain test:A .
+
+test:a_b_domain_range a rdf:Property ;
+ rdfs:range test:A ;
+ rdfs:domain test:B .
+
+# ******* UPDATES *******
+test:a_b_domain a rdf:Property ;
+ rdfs:range xsd:integer ;
+ rdfs:domain test:A . # Was test:B
+# ***********************
diff --git a/tests/functional-tests/data/ontologies/simple-updated/92-test.ontology b/tests/functional-tests/data/ontologies/simple-updated/92-test.ontology
new file mode 100644
index 000000000..c1bfb549e
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/simple-updated/92-test.ontology
@@ -0,0 +1,13 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix test2: <http://example2.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+test2: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2011-03-24T11:00:04Z" ;
+ nrl:prefix "test2" .
+
+test2:C a rdfs:Class ;
+ rdfs:subClassOf test:B .
diff --git a/tests/functional-tests/data/ontologies/simple-with-errors/91-test.ontology b/tests/functional-tests/data/ontologies/simple-with-errors/91-test.ontology
new file mode 100644
index 000000000..daabc6a6b
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/simple-with-errors/91-test.ontology
@@ -0,0 +1,40 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2010-03-24T11:00:04Z" ;
+ nrl:prefix "test" .
+
+test:A a rdfs:Class ;
+ rdfs:subClassOf rdfs:Resource .
+
+test:B a rdfs:Class ;
+ rdfs:subClassOf rdfs:Resource ;
+ rdfs:comment "Class B" . # This will be removed
+
+# The property will be removed in the error-free ontology
+test:a_tmp_prop a rdf:Property ;
+ rdfs:range xsd:integer ;
+ rdfs:domain test:A .
+
+# The range will be changed
+test:b_range_boolean_string a rdf:Property ;
+ rdfs:range xsd:boolean ;
+ rdfs:domain test:B .
+
+# The domain will be changed
+test:b_a_domain a rdf:Property ;
+ rdfs:range xsd:integer ;
+ rdfs:domain test:B .
+
+# ***** MALFORMED STATEMENT ******
+test:x a rdf:Property rdfs:Class ;
+# ********************************
+
+# The domain and range will be changed
+test:a_b_domain_range a rdf:Property ;
+ rdfs:range test:B ;
+ rdfs:domain test:A .
diff --git a/tests/functional-tests/data/ontologies/simple-with-errors/92-test.ontology b/tests/functional-tests/data/ontologies/simple-with-errors/92-test.ontology
new file mode 100644
index 000000000..942436435
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/simple-with-errors/92-test.ontology
@@ -0,0 +1,16 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix test2: <http://example2.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+test2: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2010-03-24T11:00:04Z" ;
+ nrl:prefix "test2" .
+
+test2:C a rdfs:Class ;
+ rdfs:subClassOf test:A . # Will be changed to test:B
+
+# Will be removed
+test2:D a rdfs:Class ;
diff --git a/tests/functional-tests/data/ontologies/simple/91-test.ontology b/tests/functional-tests/data/ontologies/simple/91-test.ontology
new file mode 100644
index 000000000..30b045ad6
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/simple/91-test.ontology
@@ -0,0 +1,35 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2010-03-24T11:00:04Z" ;
+ nrl:prefix "test" .
+
+test:A a rdfs:Class ;
+ rdfs:subClassOf rdfs:Resource .
+
+test:B a rdfs:Class ;
+ rdfs:subClassOf rdfs:Resource .
+
+# The property is removed
+# test:a_tmp_prop a rdf:Property ;
+# rdfs:range xsd:integer ;
+# rdfs:domain test:A .
+
+# The range changed from xsd:boolean to xsd:string
+test:b_range_boolean_string a rdf:Property ;
+ rdfs:range xsd:string ;
+ rdfs:domain test:B .
+
+# The domain is changed from test:B to test:A
+test:b_a_domain a rdf:Property ;
+ rdfs:range xsd:integer ;
+ rdfs:domain test:A .
+
+# The domain and range are exchanged
+test:a_b_domain_range a rdf:Property ;
+ rdfs:range test:A ;
+ rdfs:domain test:B .
diff --git a/tests/functional-tests/data/ontologies/simple/92-test.ontology b/tests/functional-tests/data/ontologies/simple/92-test.ontology
new file mode 100644
index 000000000..b554009af
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/simple/92-test.ontology
@@ -0,0 +1,13 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix test2: <http://example2.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+test2: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2010-03-24T11:00:04Z" ;
+ nrl:prefix "test2" .
+
+test2:C a rdfs:Class ;
+ rdfs:subClassOf test:B . # Was test:A
diff --git a/tests/functional-tests/data/ontologies/superclass-remove/91-test.ontology b/tests/functional-tests/data/ontologies/superclass-remove/91-test.ontology
new file mode 100644
index 000000000..c884b39a3
--- /dev/null
+++ b/tests/functional-tests/data/ontologies/superclass-remove/91-test.ontology
@@ -0,0 +1,88 @@
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix test: <http://example.org/ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
+
+#
+# Note: If you modify this ontology remember to replicate the changes in the other
+# 91 ontologies
+#
+#
+# A (with props for string and int, string n-cardinality, )
+# / \
+# B C
+#
+test: a nrl:Namespace, nrl:Ontology ;
+ nrl:lastModified "2010-03-24T11:00:04Z" ;
+ nrl:prefix "test" .
+
+test:A a rdfs:Class .
+
+test:a_string a rdf:Property ;
+ rdfs:comment "Property to test the conversions from string" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_datetime a rdf:Property ;
+ rdfs:comment "Property to test the changes string/date" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:dateTime ;
+ nrl:maxCardinality 1 .
+
+test:a_int a rdf:Property ;
+ rdfs:comment "Property to test the changes string/int" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:integer ;
+ nrl:maxCardinality 1 .
+
+test:a_n_cardinality a rdf:Property ;
+ rdfs:comment "Property to test the cardinality changes" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string .
+# Max cardinality N because is not specified
+
+test:a_superprop a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop." ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:a_superprop_n a rdf:Property ;
+ rdfs:comment "To use as superproperty and test the superproperty changes in the subprop. cardinality N" ;
+ rdfs:domain test:A ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+# ***** TEST CHANGE *****
+test:B a rdfs:Class .
+# Not subClassOf here
+# ***********************
+
+test:b_property a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:b_property_n a rdf:Property ;
+ rdfs:comment "A plain property in B class";
+ rdfs:domain test:B ;
+ rdfs:range xsd:string .
+
+test:C a rdfs:Class ;
+ rdfs:subClassOf test:A .
+
+test:c_subprop a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string ;
+ nrl:maxCardinality 1 .
+
+test:c_subprop_n a rdf:Property ;
+ rdfs:comment "To test changes in the superproperty" ;
+ rdfs:subPropertyOf test:a_superprop_n ;
+ rdfs:domain test:C ;
+ rdfs:range xsd:string .
diff --git a/tests/functional-tests/data/serialized/test-movie.ttl b/tests/functional-tests/data/serialized/test-movie.ttl
new file mode 100644
index 000000000..8c787a6fc
--- /dev/null
+++ b/tests/functional-tests/data/serialized/test-movie.ttl
@@ -0,0 +1,19 @@
+@prefix nmm: <http://tracker.api.gnome.org/ontology/v3/nmm#> .
+@prefix nfo: <http://tracker.api.gnome.org/ontology/v3/nfo#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix nie: <http://tracker.api.gnome.org/ontology/v3/nie#> .
+
+_:3 a nfo:FileHash ;
+ nfo:hashValue "123456789ABC" ;
+ nfo:hashAlgorithm "gibest" .
+
+<file:///home/sam/Videos/My%20Movie.avi> a nmm:Video , nfo:FileDataObject ;
+ nie:title """It"""@en ;
+ nfo:frameRate 25 ;
+ nfo:channels 2 ;
+ nfo:hasHash _:3 ;
+ nfo:sampleRate 48000 ;
+ nfo:width 640 ;
+ nfo:duration 6130 ;
+ nfo:aspectRatio 1 ;
+ nfo:height 272 .