From 3660ae63dca8809174c432605e21912e5143fe55 Mon Sep 17 00:00:00 2001 From: Nora-Olivia-Ammann <103038637+Nora-Olivia-Ammann@users.noreply.github.com> Date: Wed, 11 Dec 2024 09:36:00 +0100 Subject: [PATCH] test: Add test data to anything project (#3441) Co-authored-by: Balduin Landolt <33053745+BalduinLandolt@users.noreply.github.com> --- .../anythingOntologySimple.jsonld | 150 ++ .../anythingOntologyWithValueObjects.jsonld | 376 ++++ .../anythingOntologyWithValueObjects.ttl | 1906 ++++++++++------- test_data/project_data/anything-data.ttl | 121 ++ .../project_ontologies/anything-onto.ttl | 45 + 5 files changed, 1848 insertions(+), 750 deletions(-) diff --git a/test_data/generated_test_data/ontologyR2RV2/anythingOntologySimple.jsonld b/test_data/generated_test_data/ontologyR2RV2/anythingOntologySimple.jsonld index ae6d8e2d84..041f7be788 100644 --- a/test_data/generated_test_data/ontologyR2RV2/anythingOntologySimple.jsonld +++ b/test_data/generated_test_data/ontologyR2RV2/anythingOntologySimple.jsonld @@ -426,6 +426,67 @@ "knora-api:resourceIcon": "thing.png", "@id": "anything:Thing" }, + { + "rdfs:label": "Archive", + "rdfs:subClassOf": [ + { + "@id": "knora-api:ArchiveRepresentation" + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "anything:hasArchiveTitle" + }, + "owl:minCardinality": 0 + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:arkUrl" + }, + "owl:cardinality": 1 + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasArchiveFile" + }, + "owl:cardinality": 1 + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasIncomingLink" + }, + "owl:minCardinality": 0 + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasStandoffLinkTo" + }, + "owl:minCardinality": 0 + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:versionArkUrl" + }, + "owl:cardinality": 1 + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "rdfs:label" + }, + "owl:cardinality": 1 + } + ], + "rdfs:comment": "An archive about a thing", + "@type": "owl:Class", + "knora-api:resourceIcon": "thing.png", + "@id": "anything:ThingArchive" + }, { "rdfs:label": "Document", "rdfs:subClassOf": [ @@ -548,6 +609,67 @@ "knora-api:resourceIcon": "thing.png", "@id": "anything:ThingPicture" }, + { + "rdfs:label": "Text", + "rdfs:subClassOf": [ + { + "@id": "knora-api:TextRepresentation" + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "anything:hasTextTitle" + }, + "owl:minCardinality": 0 + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:arkUrl" + }, + "owl:cardinality": 1 + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasIncomingLink" + }, + "owl:minCardinality": 0 + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasStandoffLinkTo" + }, + "owl:minCardinality": 0 + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasTextFile" + }, + "owl:cardinality": 1 + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:versionArkUrl" + }, + "owl:cardinality": 1 + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "rdfs:label" + }, + "owl:cardinality": 1 + } + ], + "rdfs:comment": "A text about a thing", + "@type": "owl:Class", + "knora-api:resourceIcon": "thing.png", + "@id": "anything:ThingText" + }, { "rdfs:label": "Thing with region", "rdfs:subClassOf": [ @@ -940,6 +1062,20 @@ "@type": "owl:Class", "@id": "anything:VideoThing" }, + { + "rdfs:label": "archive title", + "rdfs:subPropertyOf": { + "@id": "knora-api:hasValue" + }, + "@type": "owl:DatatypeProperty", + "knora-api:subjectType": { + "@id": "anything:ThingArchive" + }, + "knora-api:objectType": { + "@id": "xsd:string" + }, + "@id": "anything:hasArchiveTitle" + }, { "rdfs:label": "A blue thing", "rdfs:subPropertyOf": { @@ -1175,6 +1311,20 @@ }, "@id": "anything:hasText" }, + { + "rdfs:label": "text title", + "rdfs:subPropertyOf": { + "@id": "knora-api:hasValue" + }, + "@type": "owl:DatatypeProperty", + "knora-api:subjectType": { + "@id": "anything:ThingText" + }, + "knora-api:objectType": { + "@id": "xsd:string" + }, + "@id": "anything:hasTextTitle" + }, { "rdfs:label": "document about a thing", "rdfs:subPropertyOf": { diff --git a/test_data/generated_test_data/ontologyR2RV2/anythingOntologyWithValueObjects.jsonld b/test_data/generated_test_data/ontologyR2RV2/anythingOntologyWithValueObjects.jsonld index a7dc109b56..a01772a1f6 100644 --- a/test_data/generated_test_data/ontologyR2RV2/anythingOntologyWithValueObjects.jsonld +++ b/test_data/generated_test_data/ontologyR2RV2/anythingOntologyWithValueObjects.jsonld @@ -1011,6 +1011,171 @@ "@type": "owl:Class", "@id": "anything:Thing" }, + { + "knora-api:isResourceClass": true, + "rdfs:label": "Archive", + "knora-api:resourceIcon": "thing.png", + "knora-api:canBeInstantiated": true, + "rdfs:subClassOf": [ + { + "@id": "knora-api:ArchiveRepresentation" + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "anything:hasArchiveTitle" + }, + "owl:minCardinality": 0 + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:arkUrl" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:attachedToProject" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:attachedToUser" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:creationDate" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:deleteComment" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:deleteDate" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:deletedBy" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasArchiveFileValue" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasIncomingLinkValue" + }, + "owl:minCardinality": 0, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasPermissions" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasStandoffLinkTo" + }, + "owl:minCardinality": 0, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasStandoffLinkToValue" + }, + "owl:minCardinality": 0, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:isDeleted" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:lastModificationDate" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:userHasPermission" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:versionArkUrl" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:versionDate" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "rdfs:label" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + } + ], + "rdfs:comment": "An archive about a thing", + "@type": "owl:Class", + "@id": "anything:ThingArchive" + }, { "knora-api:isResourceClass": true, "rdfs:label": "Document", @@ -1341,6 +1506,171 @@ "@type": "owl:Class", "@id": "anything:ThingPicture" }, + { + "knora-api:isResourceClass": true, + "rdfs:label": "Text", + "knora-api:resourceIcon": "thing.png", + "knora-api:canBeInstantiated": true, + "rdfs:subClassOf": [ + { + "@id": "knora-api:TextRepresentation" + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "anything:hasTextTitle" + }, + "owl:minCardinality": 0 + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:arkUrl" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:attachedToProject" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:attachedToUser" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:creationDate" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:deleteComment" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:deleteDate" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:deletedBy" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasIncomingLinkValue" + }, + "owl:minCardinality": 0, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasPermissions" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasStandoffLinkTo" + }, + "owl:minCardinality": 0, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasStandoffLinkToValue" + }, + "owl:minCardinality": 0, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:hasTextFileValue" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:isDeleted" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:lastModificationDate" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:userHasPermission" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:versionArkUrl" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:versionDate" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "rdfs:label" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + } + ], + "rdfs:comment": "A text about a thing", + "@type": "owl:Class", + "@id": "anything:ThingText" + }, { "knora-api:isResourceClass": true, "rdfs:label": "Thing with region", @@ -2336,6 +2666,29 @@ "@type": "owl:Class", "@id": "anything:VideoThing" }, + { + "rdfs:label": "archive title", + "rdfs:subPropertyOf": { + "@id": "knora-api:hasValue" + }, + "knora-api:isEditable": true, + "knora-api:isResourceProperty": true, + "knora-api:subjectType": { + "@id": "anything:ThingArchive" + }, + "@type": "owl:ObjectProperty", + "salsah-gui:guiAttribute": [ + "maxlength=255", + "size=80" + ], + "knora-api:objectType": { + "@id": "knora-api:TextValue" + }, + "salsah-gui:guiElement": { + "@id": "salsah-gui:SimpleText" + }, + "@id": "anything:hasArchiveTitle" + }, { "rdfs:label": "A blue thing", "rdfs:subPropertyOf": { @@ -2721,6 +3074,29 @@ }, "@id": "anything:hasText" }, + { + "rdfs:label": "text title", + "rdfs:subPropertyOf": { + "@id": "knora-api:hasValue" + }, + "knora-api:isEditable": true, + "knora-api:isResourceProperty": true, + "knora-api:subjectType": { + "@id": "anything:ThingText" + }, + "@type": "owl:ObjectProperty", + "salsah-gui:guiAttribute": [ + "maxlength=255", + "size=80" + ], + "knora-api:objectType": { + "@id": "knora-api:TextValue" + }, + "salsah-gui:guiElement": { + "@id": "salsah-gui:SimpleText" + }, + "@id": "anything:hasTextTitle" + }, { "rdfs:label": "document about a thing", "rdfs:subPropertyOf": { diff --git a/test_data/generated_test_data/ontologyR2RV2/anythingOntologyWithValueObjects.ttl b/test_data/generated_test_data/ontologyR2RV2/anythingOntologyWithValueObjects.ttl index 1b96b384b0..5922b168bd 100644 --- a/test_data/generated_test_data/ontologyR2RV2/anythingOntologyWithValueObjects.ttl +++ b/test_data/generated_test_data/ontologyR2RV2/anythingOntologyWithValueObjects.ttl @@ -29,35 +29,28 @@ [ a ; true; - + 1; - + ]; [ a ; true; - + 1; - - ]; - - [ a ; - - 0; - - + ]; [ a ; true; - + 1; - + ]; [ a ; @@ -66,7 +59,7 @@ 1; - + ]; [ a ; @@ -75,7 +68,7 @@ 1; - + ]; [ a ; @@ -84,7 +77,7 @@ 1; - + ]; [ a ; @@ -93,43 +86,41 @@ 0; - + ]; [ a ; - - true; - - 1; + + 0; - + ]; [ a ; true; - - 1; + + 0; - + ]; [ a ; true; - - 1; + + 0; - + ]; [ a ; true; - - 0; + + 1; - + ]; [ a ; @@ -138,23 +129,25 @@ 1; - + ]; [ a ; - - 0; + + true; + + 1; - + ]; [ a ; true; - - 0; + + 1; - + ]; [ a ; @@ -163,25 +156,25 @@ 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; @@ -190,7 +183,14 @@ 1; - + + ]; + + [ a ; + + 0; + + ]; true; @@ -209,37 +209,37 @@ [ a ; true; - + 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; true; - - 0; + + 1; - + ]; [ a ; @@ -248,16 +248,16 @@ 0; - + ]; [ a ; true; - - 0; + + 1; - + ]; [ a ; @@ -266,32 +266,30 @@ 1; - + ]; [ a ; 0; - + ]; [ a ; - - true; - - 1; + + 0; - + ]; [ a ; true; - + 1; - + ]; [ a ; @@ -304,10 +302,12 @@ ]; [ a ; - - 0; + + true; + + 1; - + ]; [ a ; @@ -316,7 +316,7 @@ 1; - + ]; [ a ; @@ -340,19 +340,19 @@ [ a ; true; - - 1; + + 0; - + ]; [ a ; true; - - 1; + + 0; - + ]; [ a ; @@ -361,7 +361,7 @@ 1; - + ]; [ a ; @@ -370,7 +370,7 @@ 1; - + ]; true; @@ -572,25 +572,34 @@ 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; true; - + 1; - + + ]; + + [ a ; + + true; + + 0; + + ]; [ a ; @@ -599,7 +608,7 @@ 1; - + ]; [ a ; @@ -614,10 +623,10 @@ [ a ; true; - + 1; - + ]; [ a ; @@ -626,16 +635,23 @@ 1; - + ]; [ a ; true; + + 1; + + + ]; + + [ a ; 1; - + ]; [ a ; @@ -644,7 +660,7 @@ 1; - + ]; [ a ; @@ -653,7 +669,7 @@ 1; - + ]; [ a ; @@ -662,7 +678,7 @@ 1; - + ]; [ a ; @@ -671,7 +687,7 @@ 0; - + ]; [ a ; @@ -682,24 +698,6 @@ ]; - - [ a ; - - true; - - 1; - - - ]; - - [ a ; - - true; - - 0; - - - ]; [ a ; @@ -720,10 +718,12 @@ ]; [ a ; - + + true; + 1; - + ]; [ a ; @@ -732,7 +732,7 @@ 1; - + ]; true; @@ -767,20 +767,20 @@ [ a ; - 2; + 5; 0; - + ]; [ a ; - - true; - - 1; + + 13; + + 0; - + ]; [ a ; @@ -789,61 +789,70 @@ 0; - + ]; [ a ; - 10; + 15; 0; - + ]; [ a ; - - true; + + 9; 0; - + ]; [ a ; - - true; - - 1; + + 10; + + 0; - + ]; [ a ; - 7; + 1; 0; - + ]; [ a ; - - true; - - 1; + + 13; + + 0; - + ]; [ a ; - - 3; + + true; 0; - + + ]; + + [ a ; + + true; + + 1; + + ]; [ a ; @@ -852,16 +861,16 @@ 0; - + ]; [ a ; - 13; + 3; 0; - + ]; [ a ; @@ -870,25 +879,16 @@ 1; - - ]; - - [ a ; - - 13; - - 0; - - + ]; [ a ; true; - - 1; + + 0; - + ]; [ a ; @@ -897,7 +897,7 @@ 1; - + ]; [ a ; @@ -911,38 +911,29 @@ [ a ; - 5; - 0; - - - ]; - - [ a ; - - 2; 0; - + ]; [ a ; true; - + 1; - + ]; [ a ; - - true; + + 0; 0; - + ]; [ a ; @@ -951,7 +942,7 @@ 1; - + ]; [ a ; @@ -960,97 +951,97 @@ 1; - + ]; [ a ; - 0; + 7; 0; - + ]; [ a ; - 13; + 2; 0; - + ]; [ a ; - - 15; - - 0; + + true; + + 1; - + ]; [ a ; true; - - 0; + + 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; - - 12; - - 0; + + true; + + 1; - + ]; [ a ; - - 11; + + true; 0; - + ]; [ a ; - 9; + 12; 0; - + ]; [ a ; - - true; - + 1; + + 0; - + ]; [ a ; - - true; - - 1; + + 11; + + 0; - + ]; [ a ; @@ -1064,20 +1055,20 @@ [ a ; - 1; + 2; 0; - + ]; [ a ; true; - + 1; - + ]; [ a ; @@ -1086,34 +1077,43 @@ 1; - + ]; [ a ; - 0; + 4; 0; - + ]; [ a ; - + + true; + 1; - - 0; - + ]; [ a ; - 4; + 13; 0; - + + ]; + + [ a ; + + true; + + 1; + + ]; true; @@ -1202,19 +1202,21 @@ ; [ a ; - - 0; + + true; + + 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; @@ -1223,16 +1225,16 @@ 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; @@ -1241,7 +1243,16 @@ 1; - + + ]; + + [ a ; + + true; + + 0; + + ]; [ a ; @@ -1250,7 +1261,7 @@ 1; - + ]; [ a ; @@ -1259,16 +1270,16 @@ 1; - + ]; [ a ; true; - - 1; + + 0; - + ]; [ a ; @@ -1277,7 +1288,7 @@ 1; - + ]; [ a ; @@ -1286,7 +1297,7 @@ 1; - + ]; [ a ; @@ -1295,25 +1306,32 @@ 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; true; - + 1; - + + ]; + + [ a ; + + 0; + + ]; [ a ; @@ -1331,43 +1349,25 @@ 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; true; - - 0; + + 1; - - ]; - - [ a ; - - true; - - 0; - - - ]; - - [ a ; - - true; - - 1; - - + ]; true; @@ -1424,10 +1424,10 @@ [ a ; true; - + 1; - + ]; [ a ; @@ -1436,7 +1436,7 @@ 1; - + ]; [ a ; @@ -1445,14 +1445,16 @@ 1; - + ]; [ a ; - + + true; + 1; - + ]; [ a ; @@ -1461,16 +1463,16 @@ 1; - + ]; [ a ; true; - - 1; + + 0; - + ]; [ a ; @@ -1479,7 +1481,7 @@ 1; - + ]; [ a ; @@ -1488,7 +1490,7 @@ 1; - + ]; [ a ; @@ -1497,25 +1499,25 @@ 1; - + ]; [ a ; true; - - 1; + + 0; - + ]; [ a ; true; - - 0; + + 1; - + ]; [ a ; @@ -1530,19 +1532,19 @@ [ a ; true; - - 0; + + 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; @@ -1551,16 +1553,14 @@ 1; - + ]; [ a ; - - true; 1; - + ]; [ a ; @@ -1575,19 +1575,19 @@ [ a ; true; - - 1; + + 0; - + ]; [ a ; true; - - 0; + + 1; - + ]; true; @@ -1639,22 +1639,20 @@ . - + a ; - "Diese Resource-Klasse beschreibt ein unbedeutendes Ding"; + "An archive about a thing"; - "Trivial thing"; + "Archive"; - ; + ; [ a ; - - true; - - 1; + + 0; - + ]; [ a ; @@ -1663,7 +1661,7 @@ 1; - + ]; [ a ; @@ -1681,7 +1679,7 @@ 1; - + ]; [ a ; @@ -1690,7 +1688,7 @@ 1; - + ]; [ a ; @@ -1699,7 +1697,7 @@ 1; - + ]; [ a ; @@ -1708,25 +1706,25 @@ 1; - + ]; [ a ; true; - - 0; + + 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; @@ -1735,52 +1733,61 @@ 1; - + ]; [ a ; true; - - 0; + + 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; true; - + 1; - + + ]; + + [ a ; + + true; + + 0; + + ]; [ a ; @@ -1791,6 +1798,15 @@ ]; + + [ a ; + + true; + + 0; + + + ]; [ a ; @@ -1807,98 +1823,285 @@ "thing.png" . - - a ; - - "The anything ontology"; - - ; - - "2017-12-19T15:23:42.166Z"^^ . - - - a ; - - "Other list element"; - - ; - - true; - - true; - - ; - - ; - - "hlist="; - - . - - - a ; + + a ; + + "Diese Resource-Klasse beschreibt ein unbedeutendes Ding"; - "Title"; - - ; - - true; - - true; - - ; - + "Trivial thing"; + ; - - "maxlength=255" , "size=80"; - - . - - - a ; - - "Picture of a thing"; - - ; - - true; - - true; - - true; - - ; - - ; - - . - - - a ; - - "has region"; - - ; - - true; - - true; - - true; - - ; - - ; - - . - - - a ; - - "document about a thing"; - - ; - + + [ a ; + + true; + + 0; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 0; + + + ]; + + [ a ; + + true; + + 0; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + true; + + true; + + "thing.png" . + + + a ; + + "archive title"; + + ; + + true; + + true; + + ; + + ; + + "maxlength=255" , "size=80"; + + . + + + a ; + + "The anything ontology"; + + ; + + "2017-12-19T15:23:42.166Z"^^ . + + + a ; + + "Other list element"; + + ; + + true; + + true; + + ; + + ; + + "hlist="; + + . + + + a ; + + "Title"; + + ; + + true; + + true; + + ; + + ; + + "maxlength=255" , "size=80"; + + . + + + a ; + + "Picture of a thing"; + + ; + + true; + + true; + + true; + + ; + + ; + + . + + + a ; + + "has region"; + + ; + + true; + + true; + + true; + + ; + + ; + + . + + + a ; + + "document about a thing"; + + ; + true; true; @@ -1918,7 +2121,109 @@ "Blue thing"; - ; + ; + + [ a ; + + true; + + 6; + + 1; + + + ]; + + [ a ; + + true; + + 12; + + 0; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 7; + + 0; + + + ]; + + [ a ; + + 63; + + 0; + + + ]; + + [ a ; + + true; + + 15; + + 0; + + + ]; + + [ a ; + + true; + + 0; + + 0; + + + ]; + + [ a ; + + true; + + 0; + + + ]; + + [ a ; + + true; + + 15; + + 0; + + + ]; [ a ; @@ -1926,18 +2231,27 @@ 1; - + + ]; + + [ a ; + + true; + + 1; + + ]; [ a ; true; - 13; + 0; 0; - + ]; [ a ; @@ -1946,36 +2260,83 @@ 1; - + ]; [ a ; + + true; - 63; + 13; 0; - + ]; [ a ; true; - + 1; - + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + true; + + 1; + + ]; [ a ; true; - 5; + 13; 0; - + + ]; + + [ a ; + + true; + + 1; + + + ]; + + [ a ; + + 63; + + 0; + + + ]; + + [ a ; + + true; + + 1; + + ]; [ a ; @@ -1992,41 +2353,54 @@ [ a ; true; + + 5; 0; - + + ]; + + [ a ; + + true; + + 1; + + ]; [ a ; true; - 15; + 13; 0; - + ]; [ a ; true; - 13; + 3; 0; - + ]; [ a ; true; - - 1; + + 13; + + 0; - + ]; [ a ; @@ -2044,22 +2418,20 @@ true; - 13; + 2; 0; - + ]; [ a ; true; - - 13; 0; - + ]; [ a ; @@ -2068,76 +2440,183 @@ 1; - + ]; [ a ; true; - - 1; + + 0; - + ]; [ a ; true; - 0; + 2; 0; - + ]; [ a ; + + true; - 63; + 13; 0; - + + ]; + + [ a ; + + true; + + 1; + + ]; [ a ; true; + + 11; 0; - + ]; [ a ; true; - 6; - + 4; + + 0; + + + ]; + + [ a ; + + true; + 1; - + ]; + + true; + + true . + + + a ; + + "List element"; + + ; + + true; + + true; + + ; + + ; + + "hlist="; + + . + + + a ; + + "Timestamp"; + + ; + + true; + + true; + + ; + + ; + + . + + + a ; + + "Picture of a thing"; + + ; + + true; + + true; + + true; + + ; + + ; + + . + + + a ; + + "text title"; + + ; + + true; + + true; + + ; + + ; + + "size=80" , "maxlength=255"; + + . + + + a ; + + "A text about a thing"; + + "Text"; + + ; [ a ; true; - + 1; - + ]; [ a ; true; - - 15; - - 0; + + 1; - + ]; [ a ; @@ -2155,7 +2634,7 @@ 1; - + ]; [ a ; @@ -2164,89 +2643,77 @@ 1; - + ]; [ a ; true; - - 1; + + 0; - + ]; [ a ; true; - - 7; - - 0; + + 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; - - true; - - 1; + + 0; - + ]; [ a ; true; - - 12; - - 0; + + 1; - + ]; [ a ; true; - - 2; - - 0; + + 1; - + ]; [ a ; true; - - 13; - - 0; + + 1; - + ]; [ a ; true; - - 2; - - 0; + + 1; - + ]; [ a ; @@ -2261,114 +2728,53 @@ [ a ; true; - - 4; - - 0; + + 1; - + ]; [ a ; true; - - 3; - - 0; + + 1; - + ]; [ a ; true; - - 0; 0; - + ]; [ a ; true; - - 0; + + 1; - + ]; [ a ; true; - - 11; 0; - + ]; true; - true . - - - a ; - - "List element"; - - ; - - true; - - true; - - ; - - ; - - "hlist="; - - . - - - a ; - - "Timestamp"; - - ; - - true; - - true; - - ; - - ; - - . - - - a ; - - "Picture of a thing"; - - ; - - true; - true; - - true; - - ; - - ; - - . + + "thing.png" . a ; @@ -2382,28 +2788,28 @@ [ a ; true; - + 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; @@ -2418,28 +2824,35 @@ [ a ; true; - + 1; - + ]; [ a ; true; + + 1; + + + ]; + + [ a ; 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; @@ -2454,10 +2867,10 @@ [ a ; true; - + 1; - + ]; [ a ; @@ -2466,7 +2879,7 @@ 1; - + ]; [ a ; @@ -2481,19 +2894,19 @@ [ a ; true; - + 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; @@ -2502,7 +2915,7 @@ 1; - + ]; [ a ; @@ -2520,16 +2933,16 @@ 1; - + ]; [ a ; true; - + 1; - + ]; [ a ; @@ -2547,14 +2960,7 @@ 1; - - ]; - - [ a ; - - 1; - - + ]; true . @@ -2571,72 +2977,59 @@ [ a ; true; - - 1; - - - ]; - - [ a ; - - true; - - 1; + + 0; - + ]; [ a ; true; - 2; + 10; 0; - + ]; [ a ; true; - - 5; - - 0; + + 1; - + ]; [ a ; true; - - 10; - - 0; + + 1; - + ]; [ a ; true; - 15; + 2; 0; - + ]; [ a ; true; - - 0; + + 1; - + ]; [ a ; @@ -2651,63 +3044,72 @@ [ a ; true; - + 1; - + ]; [ a ; true; - 0; + 13; 0; - + ]; [ a ; true; - 4; + 15; 0; - + ]; [ a ; true; - + 1; + + + ]; + + [ a ; + + true; + + 15; 0; - + ]; [ a ; true; - + 1; - + ]; [ a ; true; - 15; + 12; 0; - + ]; [ a ; @@ -2718,67 +3120,71 @@ 0; - + ]; [ a ; true; - 0; + 3; 0; - + ]; [ a ; true; - 13; + 11; 0; - + ]; [ a ; true; - 12; + 0; 0; - + ]; [ a ; true; - - 1; + + 9; + + 0; - + ]; [ a ; true; - + + 6; + 1; - + ]; [ a ; true; - - 0; + + 1; - + ]; [ a ; @@ -2787,16 +3193,16 @@ 1; - + ]; [ a ; true; - - 0; + + 1; - + ]; [ a ; @@ -2814,162 +3220,162 @@ true; - 2; + 0; 0; - + ]; [ a ; true; - 7; + 13; 0; - + ]; [ a ; true; - - 1; + + 7; + + 0; - + ]; [ a ; true; - 3; + 13; 0; - + ]; [ a ; true; - - 1; + + 0; - + ]; [ a ; true; - - 1; + + 5; + + 0; - + ]; [ a ; true; - + 1; + + 0; - + ]; [ a ; true; - 9; + 4; 0; - + ]; [ a ; true; - - 11; - - 0; + + 1; - + ]; [ a ; true; - - 6; 1; - + ]; [ a ; true; - - 1; + + 0; - + ]; [ a ; true; - - 1; + + 2; + + 0; - + ]; [ a ; true; - 13; + 1; 0; - + ]; [ a ; true; - + 1; - + ]; [ a ; true; - + 1; - - 0; - + ]; [ a ; true; - - 13; - - 0; + + 1; - + ]; true; @@ -3029,7 +3435,7 @@ 1; - + ]; [ a ; @@ -3038,7 +3444,7 @@ 1; - + ]; [ a ; @@ -3047,25 +3453,16 @@ 1; - + ]; [ a ; true; - + 1; - - ]; - - [ a ; - - true; - - 0; - - + ]; [ a ; @@ -3074,7 +3471,7 @@ 1; - + ]; [ a ; @@ -3083,23 +3480,16 @@ 1; - + ]; [ a ; true; - - 0; - - - ]; - - [ a ; - - 0; + + 1; - + ]; [ a ; @@ -3108,7 +3498,7 @@ 1; - + ]; [ a ; @@ -3117,7 +3507,7 @@ 1; - + ]; [ a ; @@ -3126,7 +3516,7 @@ 1; - + ]; [ a ; @@ -3135,34 +3525,41 @@ 1; - + ]; [ a ; true; - - 1; + + 0; - + ]; [ a ; true; - + 1; - + ]; [ a ; true; - - 1; + + 0; - + + ]; + + [ a ; + + 0; + + ]; [ a ; @@ -3171,7 +3568,7 @@ 1; - + ]; [ a ; @@ -3182,6 +3579,15 @@ ]; + + [ a ; + + true; + + 1; + + + ]; [ a ; diff --git a/test_data/project_data/anything-data.ttl b/test_data/project_data/anything-data.ttl index 31bcc85fff..06d8d88a8c 100644 --- a/test_data/project_data/anything-data.ttl +++ b/test_data/project_data/anything-data.ttl @@ -2312,3 +2312,124 @@ knora-base:hasPermissions "V knora-admin:UnknownUser|M knora-admin:ProjectMember" ; knora-base:valueCreationDate "2019-11-29T10:00:00.673298Z"^^xsd:dateTime ; knora-base:isDeleted false . + + +# Archive Resource + + rdf:type anything:ThingArchive; + rdfs:label "Archive Representation"; + anything:hasArchiveTitle ; + knora-base:attachedToProject ; + knora-base:attachedToUser ; + knora-base:creationDate "2024-12-10T08:39:27.140070091Z"^^xsd:dateTime; + knora-base:hasArchiveFileValue ; + knora-base:hasPermissions "V knora-admin:UnknownUser|M knora-admin:ProjectMember"; + knora-base:isDeleted false . + +# Archive File Value + + rdf:type knora-base:ArchiveFileValue; + knora-base:attachedToUser ; + knora-base:hasPermissions "V knora-admin:UnknownUser|M knora-admin:ProjectMember"; + knora-base:internalFilename "7mdeoFJ48dI-YCKeZrXK3Rr.7z"; + knora-base:internalMimeType "application/x-7z-compressed"; + knora-base:isDeleted false; + knora-base:originalFilename "test.7z"; + knora-base:originalMimeType "application/x-7z-compressed"; + knora-base:valueCreationDate "2024-12-10T08:39:27.140070091Z"^^xsd:dateTime; + knora-base:valueHasOrder 0; + knora-base:valueHasString "7mdeoFJ48dI-YCKeZrXK3Rr.7z"; + knora-base:valueHasUUID "2pLJLbhxTw-C6399l2THEA" . + +# Archive Title Value + + rdf:type knora-base:TextValue; + knora-base:attachedToUser ; + knora-base:hasPermissions "V knora-admin:UnknownUser|M knora-admin:ProjectMember"; + knora-base:hasTextValueType knora-base:UnformattedText; + knora-base:isDeleted false; + knora-base:valueCreationDate "2024-12-10T08:39:27.140070091Z"^^xsd:dateTime; + knora-base:valueHasOrder 0; + knora-base:valueHasString "Archive Representation Title"; + knora-base:valueHasUUID "8_nsV2hRS8W9sFDpzhrzTw" . + + +# Document Resource + + rdf:type anything:ThingDocument; + rdfs:label "Document Representation"; + anything:hasDocumentTitle ; + knora-base:attachedToProject ; + knora-base:attachedToUser ; + knora-base:creationDate "2024-12-10T08:39:59.608189134Z"^^xsd:dateTime; + knora-base:hasDocumentFileValue + ; + knora-base:hasPermissions "V knora-admin:UnknownUser|M knora-admin:ProjectMember"; + knora-base:isDeleted false . + +# Document File Value + + rdf:type knora-base:DocumentFileValue; + knora-base:attachedToUser ; + knora-base:hasPermissions "V knora-admin:UnknownUser|M knora-admin:ProjectMember"; + knora-base:internalFilename "0TH7hVGe5PM-Kuya3ywgcwc.docx"; + knora-base:internalMimeType "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; + knora-base:isDeleted false; + knora-base:originalFilename "test.docx"; + knora-base:originalMimeType "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; + knora-base:valueCreationDate "2024-12-10T08:39:59.608189134Z"^^xsd:dateTime; + knora-base:valueHasOrder 0; + knora-base:valueHasString "0TH7hVGe5PM-Kuya3ywgcwc.docx"; + knora-base:valueHasUUID "UCOapFgNQHqTTo9YQ592sA" . + +# Document Title Value + + rdf:type knora-base:TextValue; + knora-base:attachedToUser ; + knora-base:hasPermissions "V knora-admin:UnknownUser|M knora-admin:ProjectMember"; + knora-base:hasTextValueType knora-base:UnformattedText; + knora-base:isDeleted false; + knora-base:valueCreationDate "2024-12-10T08:39:59.608189134Z"^^xsd:dateTime; + knora-base:valueHasOrder 0; + knora-base:valueHasString "Document Representation Title"; + knora-base:valueHasUUID "sGelTEhoTu2-KAG_i5rRIg" . + + +# Text Resource + + rdf:type anything:ThingText; + rdfs:label "Text Representation"; + anything:hasTextTitle ; + knora-base:attachedToProject ; + knora-base:attachedToUser ; + knora-base:creationDate "2024-12-10T08:40:27.941261633Z"^^xsd:dateTime; + knora-base:hasPermissions "V knora-admin:UnknownUser|M knora-admin:ProjectMember"; + knora-base:hasTextFileValue ; + knora-base:isDeleted false . + +# Text File Value + + rdf:type knora-base:TextFileValue; + knora-base:attachedToUser ; + knora-base:hasPermissions "V knora-admin:UnknownUser|M knora-admin:ProjectMember"; + knora-base:internalFilename "01yOfm8a7bI-wlUBek9G60F.xml"; + knora-base:internalMimeType "application/xml"; + knora-base:isDeleted false; + knora-base:originalFilename "test.xml"; + knora-base:originalMimeType "application/xml"; + knora-base:valueCreationDate "2024-12-10T08:40:27.941261633Z"^^xsd:dateTime; + knora-base:valueHasOrder 0; + knora-base:valueHasString "01yOfm8a7bI-wlUBek9G60F.xml"; + knora-base:valueHasUUID "xPudKXnITOWQVWghBbg0tA" . + +# Text Title Value + + rdf:type knora-base:TextValue; + knora-base:attachedToUser ; + knora-base:hasPermissions "V knora-admin:UnknownUser|M knora-admin:ProjectMember"; + knora-base:hasTextValueType knora-base:UnformattedText; + knora-base:isDeleted false; + knora-base:valueCreationDate "2024-12-10T08:40:27.941261633Z"^^xsd:dateTime; + knora-base:valueHasOrder 0; + knora-base:valueHasString "Text Representation Title"; + knora-base:valueHasUUID "uVBZBMP3QYaF-gy00q0UXA" . diff --git a/test_data/project_ontologies/anything-onto.ttl b/test_data/project_ontologies/anything-onto.ttl index d4fcad2778..fcdf103ec0 100644 --- a/test_data/project_ontologies/anything-onto.ttl +++ b/test_data/project_ontologies/anything-onto.ttl @@ -512,6 +512,29 @@ salsah-gui:guiAttribute "size=80", "maxlength=255" . + +:hasArchiveTitle + rdf:type owl:ObjectProperty ; + rdfs:subPropertyOf knora-base:hasValue ; + rdfs:label "archive title"@en ; + knora-base:subjectClassConstraint :ThingArchive ; + knora-base:objectClassConstraint knora-base:TextValue ; + salsah-gui:guiElement salsah-gui:SimpleText ; + salsah-gui:guiAttribute "size=80", + "maxlength=255" . + + +:hasTextTitle + rdf:type owl:ObjectProperty ; + rdfs:subPropertyOf knora-base:hasValue ; + rdfs:label "text title"@en ; + knora-base:subjectClassConstraint :ThingText ; + knora-base:objectClassConstraint knora-base:TextValue ; + salsah-gui:guiElement salsah-gui:SimpleText ; + salsah-gui:guiAttribute "size=80", + "maxlength=255" . + + :ThingWithSeqnum rdf:type owl:Class ; rdfs:subClassOf :Thing, @@ -562,6 +585,28 @@ rdfs:comment """A document about a thing"""@en . +:ThingArchive + rdf:type owl:Class ; + rdfs:subClassOf knora-base:ArchiveRepresentation, + [ rdf:type owl:Restriction ; + owl:onProperty :hasArchiveTitle ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ] ; + knora-base:resourceIcon "thing.png" ; + rdfs:label "Archive"@en ; + rdfs:comment """An archive about a thing"""@en . + + +:ThingText + rdf:type owl:Class ; + rdfs:subClassOf knora-base:TextRepresentation, + [ rdf:type owl:Restriction ; + owl:onProperty :hasTextTitle ; + owl:minCardinality "0"^^xsd:nonNegativeInteger ] ; + knora-base:resourceIcon "thing.png" ; + rdfs:label "Text"@en ; + rdfs:comment """A text about a thing"""@en . + + :ThingWithRepresentation rdf:type owl:Class ; rdfs:subClassOf knora-base:Resource ;