From 10c958eaac8cc04ea7f3ec524bd2a9b266d2bf74 Mon Sep 17 00:00:00 2001 From: atomobianco Date: Mon, 4 Nov 2024 23:00:48 +0100 Subject: [PATCH 1/2] Fix typo in ontology used for test Spot a typo for a data property which was supposed to be camel case --- test/test_extra.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_extra.py b/test/test_extra.py index 0f4fdd4..ef954ce 100644 --- a/test/test_extra.py +++ b/test/test_extra.py @@ -38,7 +38,7 @@ rdfs:domain exOnt:Human ; rdfs:range exOnt:Pet . -exOnt:nlegs a rdf:Property ; +exOnt:nLegs a rdf:Property ; rdfs:domain exOnt:Animal ; rdfs:range xsd:integer . From 489476c9ae200112d8b21111eb446633d0400138 Mon Sep 17 00:00:00 2001 From: Tommaso Bianco Date: Wed, 27 Nov 2024 21:44:54 +0100 Subject: [PATCH 2/2] Fix typo in ontologies used for tests --- test/issues/test_014.py | 12 ++++++------ test/issues/test_062.py | 2 +- test/resources/cmdline_tests/o1.ttl | 2 +- test/test_inoculate.py | 4 ++-- test/test_manual_targeting.py | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/issues/test_014.py b/test/issues/test_014.py index 34fa66f..bb3ff3f 100644 --- a/test/issues/test_014.py +++ b/test/issues/test_014.py @@ -19,7 +19,7 @@ ex:Human a rdfs:Class ; rdfs:comment "A Human being"@en ; rdfs:subClassOf ex:Animal . - + ex:Pet a rdfs:Class ; rdfs:comment "An animal owned by a human"@en ; rdfs:subClassOf ex:Animal . @@ -27,11 +27,11 @@ ex:hasPet a rdf:Property ; rdfs:domain ex:Human ; rdfs:range ex:Pet . - -ex:nlegs a rdf:Property ; + +ex:nLegs a rdf:Property ; rdfs:domain ex:Animal ; rdfs:range xsd:integer . - + ex:Lizard a rdfs:Class ; rdfs:subClassOf ex:Pet . """ @@ -56,7 +56,7 @@ sh:minInclusive 2 ; ] ; sh:targetClass ex:Human . - + ex:AnimalShape a sh:NodeShape ; sh:property [ sh:datatype xsd:integer ; @@ -64,7 +64,7 @@ sh:maxInclusive 4 ; sh:minInclusive 1 ; ] ; - sh:targetClass ex:Animal . + sh:targetClass ex:Animal . """ data_file_text = """ diff --git a/test/issues/test_062.py b/test/issues/test_062.py index ed7e394..06a5d48 100644 --- a/test/issues/test_062.py +++ b/test/issues/test_062.py @@ -60,7 +60,7 @@ rdfs:domain exOnt:Human ; rdfs:range exOnt:Pet . -exOnt:nlegs a rdf:Property ; +exOnt:nLegs a rdf:Property ; rdfs:domain exOnt:Animal ; rdfs:range exOnt:integer . diff --git a/test/resources/cmdline_tests/o1.ttl b/test/resources/cmdline_tests/o1.ttl index 1f57350..5a1a4e9 100644 --- a/test/resources/cmdline_tests/o1.ttl +++ b/test/resources/cmdline_tests/o1.ttl @@ -23,7 +23,7 @@ exOnt:hasPet a rdf:Property ; rdfs:domain exOnt:Human ; rdfs:range exOnt:Pet . -exOnt:nlegs a rdf:Property ; +exOnt:nLegs a rdf:Property ; rdfs:domain exOnt:Animal ; rdfs:range exOnt:integer . diff --git a/test/test_inoculate.py b/test/test_inoculate.py index 5959278..88fcb1c 100644 --- a/test/test_inoculate.py +++ b/test/test_inoculate.py @@ -38,7 +38,7 @@ rdfs:domain exOnt:Human ; rdfs:range exOnt:Pet . -exOnt:nlegs a rdf:Property ; +exOnt:nLegs a rdf:Property ; rdfs:domain exOnt:Animal ; rdfs:range xsd:integer . @@ -86,7 +86,7 @@ rdfs:domain exOnt:Human ; rdfs:range exOnt:Pet . -exOnt:nlegs a rdf:Property ; +exOnt:nLegs a rdf:Property ; rdfs:domain exOnt:Animal ; rdfs:range xsd:integer . diff --git a/test/test_manual_targeting.py b/test/test_manual_targeting.py index c960bf0..9b5ff32 100644 --- a/test/test_manual_targeting.py +++ b/test/test_manual_targeting.py @@ -34,7 +34,7 @@ rdfs:domain exOnt:Human ; rdfs:range exOnt:Pet . -exOnt:nlegs a rdf:Property ; +exOnt:nLegs a rdf:Property ; rdfs:domain exOnt:Animal ; rdfs:range xsd:integer .