From 02debbced8cc92c48132eaec600b86bed5c7920a Mon Sep 17 00:00:00 2001 From: Balduin Landolt <33053745+BalduinLandolt@users.noreply.github.com> Date: Tue, 11 Jun 2024 12:04:43 +0200 Subject: [PATCH] chore: Add missing labels and comment to relatesToValue (#3273) --- .../knoraApiOntologyWithValueObjects.jsonld | 10 ++++++---- .../src/main/resources/knora-ontologies/knora-base.ttl | 7 ++++++- webapi/src/main/scala/org/knora/webapi/package.scala | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/test_data/generated_test_data/ontologyR2RV2/knoraApiOntologyWithValueObjects.jsonld b/test_data/generated_test_data/ontologyR2RV2/knoraApiOntologyWithValueObjects.jsonld index 3f93b22a04..39bd56e9b4 100644 --- a/test_data/generated_test_data/ontologyR2RV2/knoraApiOntologyWithValueObjects.jsonld +++ b/test_data/generated_test_data/ontologyR2RV2/knoraApiOntologyWithValueObjects.jsonld @@ -9146,19 +9146,21 @@ }, { "knora-api:isLinkValueProperty": true, + "rdfs:label": "Related Resources", "rdfs:subPropertyOf": { "@id": "knora-api:hasLinkToValue" }, "knora-api:isEditable": true, "knora-api:isResourceProperty": true, - "knora-api:subjectType": { - "@id": "knora-api:Resource" - }, "@type": "owl:ObjectProperty", "knora-api:objectType": { "@id": "knora-api:LinkValue" }, - "@id": "knora-api:relatesToValue" + "@id": "knora-api:relatesToValue", + "knora-api:subjectType": { + "@id": "knora-api:Resource" + }, + "rdfs:comment": "Indicates that this resource relates to another resource" }, { "@id": "knora-api:resourceIcon", diff --git a/webapi/src/main/resources/knora-ontologies/knora-base.ttl b/webapi/src/main/resources/knora-ontologies/knora-base.ttl index 773f8a8058..7df1d82b43 100644 --- a/webapi/src/main/resources/knora-ontologies/knora-base.ttl +++ b/webapi/src/main/resources/knora-ontologies/knora-base.ttl @@ -20,7 +20,7 @@ rdf:type owl:Ontology ; rdfs:label "The Knora base ontology"@en ; :attachedToProject knora-admin:SystemProject ; - :ontologyVersion "knora-base v39" . + :ontologyVersion "knora-base v40" . ################################################################# @@ -2312,6 +2312,11 @@ :relatesToValue rdf:type owl:ObjectProperty ; + rdfs:label "Related Resources"@en , + "Verknüpfte Ressourcen"@de , + "Ressources associées"@fr , + "Risorse correlate"@it ; + rdfs:comment "Indicates that this resource relates to another resource"@en ; :objectClassConstraint :LinkValue ; :subjectClassConstraint :Resource ; :isEditable true ; diff --git a/webapi/src/main/scala/org/knora/webapi/package.scala b/webapi/src/main/scala/org/knora/webapi/package.scala index 5865c4e6ed..d8f94d13ee 100644 --- a/webapi/src/main/scala/org/knora/webapi/package.scala +++ b/webapi/src/main/scala/org/knora/webapi/package.scala @@ -14,7 +14,7 @@ package object webapi { * The version of `knora-base` and of the other built-in ontologies that this version of Knora requires. * Must be the same as the object of `knora-base:ontologyVersion` in the `knora-base` ontology being used. */ - val KnoraBaseVersion: Int = 39 + val KnoraBaseVersion: Int = 40 val KnoraBaseVersionString: String = s"$versionPrefix$KnoraBaseVersion" /**