diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2023-02-13 13:46:54 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2023-02-13 14:55:16 +0100 |
commit | 39856ca30aae7c21d01c778196286ca6c67484d2 (patch) | |
tree | 15b7fe15df72de67bcafc4dfa02c7bebc4c3e1ea /tests/functional-tests/data/ontologies/basic/91-test.ontology | |
parent | d1a3400089031528c8267662b1c7be6e269191cd (diff) | |
download | tracker-39856ca30aae7c21d01c778196286ca6c67484d2.tar.gz |
functional-tests: Clean up directory
Python convention is to use `_` in file names, so they can be imported, and
prefix all test modules with `test_`.
All config files are now in `config/` subdir and all data files are now
in `data/` subdir.
Diffstat (limited to 'tests/functional-tests/data/ontologies/basic/91-test.ontology')
-rw-r--r-- | tests/functional-tests/data/ontologies/basic/91-test.ontology | 86 |
1 files changed, 86 insertions, 0 deletions
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 . |