From 6fd0692ee6d2feafac5e0b2d10d62ee9bc99f9a0 Mon Sep 17 00:00:00 2001 From: Balduin Landolt <33053745+BalduinLandolt@users.noreply.github.com> Date: Mon, 18 Mar 2024 20:14:23 +0100 Subject: [PATCH] bring back falsely removed test data --- .../ontologyR2RV2/anythingHasDate.ttl | 22 -------------- .../knoraApiSimpleHasColor.jsonld | 29 ++++++++++++++++++ .../ontologyR2RV2/knoraApiSimpleHasColor.ttl | 16 ++++++++++ ...> knoraApiWithValueObjectsHasColor.jsonld} | 30 +++++++++---------- .../knoraApiWithValueObjectsHasColor.ttl | 23 ++++++++++++++ 5 files changed, 82 insertions(+), 38 deletions(-) delete mode 100644 test_data/generated_test_data/ontologyR2RV2/anythingHasDate.ttl create mode 100644 test_data/generated_test_data/ontologyR2RV2/knoraApiSimpleHasColor.jsonld create mode 100644 test_data/generated_test_data/ontologyR2RV2/knoraApiSimpleHasColor.ttl rename test_data/generated_test_data/ontologyR2RV2/{anythingHasDate.jsonld => knoraApiWithValueObjectsHasColor.jsonld} (58%) create mode 100644 test_data/generated_test_data/ontologyR2RV2/knoraApiWithValueObjectsHasColor.ttl diff --git a/test_data/generated_test_data/ontologyR2RV2/anythingHasDate.ttl b/test_data/generated_test_data/ontologyR2RV2/anythingHasDate.ttl deleted file mode 100644 index 9e83aae4e7..0000000000 --- a/test_data/generated_test_data/ontologyR2RV2/anythingHasDate.ttl +++ /dev/null @@ -1,22 +0,0 @@ -@prefix anything: . -@prefix knora-api: . -@prefix owl: . -@prefix rdf: . -@prefix rdfs: . -@prefix salsah-gui: . -@prefix xsd: . - - - rdf:type owl:Ontology ; - rdfs:label "The anything ontology" ; - knora-api:attachedToProject ; - knora-api:lastModificationDate "2017-12-19T15:23:42.166Z"^^xsd:dateTimeStamp . - -anything:hasDate rdf:type owl:ObjectProperty ; - rdfs:label "Date" ; - rdfs:subPropertyOf knora-api:hasValue ; - knora-api:isEditable true ; - knora-api:isResourceProperty true ; - knora-api:objectType knora-api:DateValue ; - knora-api:subjectType anything:Thing ; - salsah-gui:guiElement salsah-gui:Date . diff --git a/test_data/generated_test_data/ontologyR2RV2/knoraApiSimpleHasColor.jsonld b/test_data/generated_test_data/ontologyR2RV2/knoraApiSimpleHasColor.jsonld new file mode 100644 index 0000000000..4d55e8c843 --- /dev/null +++ b/test_data/generated_test_data/ontologyR2RV2/knoraApiSimpleHasColor.jsonld @@ -0,0 +1,29 @@ +{ + "@id": "http://api.knora.org/ontology/knora-api/simple/v2", + "@type": "owl:Ontology", + "rdfs:label": "The knora-api ontology in the simple schema", + "@graph": [ + { + "rdfs:label": "Color", + "rdfs:subPropertyOf": { + "@id": "knora-api:hasValue" + }, + "rdfs:comment": "Specifies the color of a region.", + "@type": "owl:DatatypeProperty", + "knora-api:subjectType": { + "@id": "knora-api:Region" + }, + "knora-api:objectType": { + "@id": "knora-api:Color" + }, + "@id": "knora-api:hasColor" + } + ], + "@context": { + "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", + "knora-api": "http://api.knora.org/ontology/knora-api/simple/v2#", + "owl": "http://www.w3.org/2002/07/owl#", + "rdfs": "http://www.w3.org/2000/01/rdf-schema#", + "xsd": "http://www.w3.org/2001/XMLSchema#" + } +} \ No newline at end of file diff --git a/test_data/generated_test_data/ontologyR2RV2/knoraApiSimpleHasColor.ttl b/test_data/generated_test_data/ontologyR2RV2/knoraApiSimpleHasColor.ttl new file mode 100644 index 0000000000..d2551f0a90 --- /dev/null +++ b/test_data/generated_test_data/ontologyR2RV2/knoraApiSimpleHasColor.ttl @@ -0,0 +1,16 @@ +@prefix knora-api: . +@prefix owl: . +@prefix rdf: . +@prefix rdfs: . +@prefix xsd: . + + + rdf:type owl:Ontology; + rdfs:label "The knora-api ontology in the simple schema" . + +knora-api:hasColor rdf:type owl:DatatypeProperty; + rdfs:comment "Specifies the color of a region."; + rdfs:label "Color"; + rdfs:subPropertyOf knora-api:hasValue; + knora-api:objectType knora-api:Color; + knora-api:subjectType knora-api:Region . diff --git a/test_data/generated_test_data/ontologyR2RV2/anythingHasDate.jsonld b/test_data/generated_test_data/ontologyR2RV2/knoraApiWithValueObjectsHasColor.jsonld similarity index 58% rename from test_data/generated_test_data/ontologyR2RV2/anythingHasDate.jsonld rename to test_data/generated_test_data/ontologyR2RV2/knoraApiWithValueObjectsHasColor.jsonld index 23a951fa9b..babb4ad9c2 100644 --- a/test_data/generated_test_data/ontologyR2RV2/anythingHasDate.jsonld +++ b/test_data/generated_test_data/ontologyR2RV2/knoraApiWithValueObjectsHasColor.jsonld @@ -1,42 +1,40 @@ { - "knora-api:lastModificationDate": { - "@value": "2017-12-19T15:23:42.166Z", - "@type": "xsd:dateTimeStamp" - }, - "rdfs:label": "The anything ontology", + "rdfs:label": "The knora-api ontology in the complex schema", "@graph": [ { - "rdfs:label": "Date", + "rdfs:label": "Color", "rdfs:subPropertyOf": { "@id": "knora-api:hasValue" }, "knora-api:isEditable": true, "knora-api:isResourceProperty": true, - "knora-api:subjectType": { - "@id": "anything:Thing" - }, "@type": "owl:ObjectProperty", + "salsah-gui:guiAttribute": "ncolors=8", "knora-api:objectType": { - "@id": "knora-api:DateValue" + "@id": "knora-api:ColorValue" }, "salsah-gui:guiElement": { - "@id": "salsah-gui:Date" + "@id": "salsah-gui:Colorpicker" + }, + "@id": "knora-api:hasColor", + "knora-api:subjectType": { + "@id": "knora-api:Region" }, - "@id": "anything:hasDate" + "rdfs:comment": "Specifies the color of a region." } ], "knora-api:attachedToProject": { - "@id": "http://rdfh.ch/projects/0001" + "@id": "http://www.knora.org/ontology/knora-admin#SystemProject" }, + "knora-api:isBuiltIn": true, "@type": "owl:Ontology", - "@id": "http://0.0.0.0:3333/ontology/0001/anything/v2", + "@id": "http://api.knora.org/ontology/knora-api/v2", "@context": { "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", "knora-api": "http://api.knora.org/ontology/knora-api/v2#", "owl": "http://www.w3.org/2002/07/owl#", "salsah-gui": "http://api.knora.org/ontology/salsah-gui/v2#", "rdfs": "http://www.w3.org/2000/01/rdf-schema#", - "xsd": "http://www.w3.org/2001/XMLSchema#", - "anything": "http://0.0.0.0:3333/ontology/0001/anything/v2#" + "xsd": "http://www.w3.org/2001/XMLSchema#" } } \ No newline at end of file diff --git a/test_data/generated_test_data/ontologyR2RV2/knoraApiWithValueObjectsHasColor.ttl b/test_data/generated_test_data/ontologyR2RV2/knoraApiWithValueObjectsHasColor.ttl new file mode 100644 index 0000000000..292b630b7b --- /dev/null +++ b/test_data/generated_test_data/ontologyR2RV2/knoraApiWithValueObjectsHasColor.ttl @@ -0,0 +1,23 @@ +@prefix knora-api: . +@prefix owl: . +@prefix rdf: . +@prefix rdfs: . +@prefix salsah-gui: . +@prefix xsd: . + +knora-api:hasColor rdf:type owl:ObjectProperty; + rdfs:comment "Specifies the color of a region."; + rdfs:label "Color"; + rdfs:subPropertyOf knora-api:hasValue; + knora-api:isEditable true; + knora-api:isResourceProperty true; + knora-api:objectType knora-api:ColorValue; + knora-api:subjectType knora-api:Region; + salsah-gui:guiAttribute "ncolors=8"; + salsah-gui:guiElement salsah-gui:Colorpicker . + + + rdf:type owl:Ontology; + rdfs:label "The knora-api ontology in the complex schema"; + knora-api:attachedToProject ; + knora-api:isBuiltIn true .