diff --git a/test_data/generated_test_data/ontologyR2RV2/standoffOntologyWithValueObjects.jsonld b/test_data/generated_test_data/ontologyR2RV2/standoffOntologyWithValueObjects.jsonld index 0ee0e8d002..5f58cdf410 100644 --- a/test_data/generated_test_data/ontologyR2RV2/standoffOntologyWithValueObjects.jsonld +++ b/test_data/generated_test_data/ontologyR2RV2/standoffOntologyWithValueObjects.jsonld @@ -456,6 +456,97 @@ "@type": "owl:Class", "@id": "standoff:StandoffCodeTag" }, + { + "knora-api:isStandoffClass": true, + "rdfs:subClassOf": [ + { + "@id": "standoff:StandoffStructuralTag" + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:standoffTagHasEnd" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:standoffTagHasEndIndex" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:standoffTagHasEndParent" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:standoffTagHasEndParentIndex" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:standoffTagHasOriginalXMLID" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:standoffTagHasStart" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:standoffTagHasStartIndex" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:standoffTagHasStartParent" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:standoffTagHasStartParentIndex" + }, + "owl:maxCardinality": 1, + "knora-api:isInherited": true + }, + { + "@type": "owl:Restriction", + "owl:onProperty": { + "@id": "knora-api:standoffTagHasUUID" + }, + "owl:cardinality": 1, + "knora-api:isInherited": true + } + ], + "rdfs:comment": "Represents a footnote in a TextValue", + "@type": "owl:Class", + "@id": "standoff:StandoffFootnoteTag" + }, { "knora-api:isStandoffClass": true, "rdfs:subClassOf": [ diff --git a/webapi/src/main/resources/knora-ontologies/knora-base.ttl b/webapi/src/main/resources/knora-ontologies/knora-base.ttl index ccbf4297ab..c2caed9f30 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 v43" . + :ontologyVersion "knora-base v44" . ################################################################# diff --git a/webapi/src/main/resources/knora-ontologies/standoff-data.ttl b/webapi/src/main/resources/knora-ontologies/standoff-data.ttl index 87f2fd9e58..3a9828771e 100644 --- a/webapi/src/main/resources/knora-ontologies/standoff-data.ttl +++ b/webapi/src/main/resources/knora-ontologies/standoff-data.ttl @@ -50,7 +50,8 @@ , , , - . + , + . a knora-base:MappingElement ; @@ -75,6 +76,16 @@ knora-base:mappingElementRequiresSeparator true ; knora-base:mappingHasXMLTagname "p"^^xsd:string . + + a knora-base:MappingElement ; + knora-base:mappingHasStandoffClass standoff:StandoffFootnoteTag ; + knora-base:mappingHasXMLClass "noClass"^^xsd:string ; + knora-base:mappingHasXMLNamespace "noNamespace"^^xsd:string ; + knora-base:mappingElementRequiresSeparator true ; + knora-base:mappingHasXMLTagname "footnote"^^xsd:string . + + + a knora-base:MappingElement ; knora-base:mappingHasStandoffClass standoff:StandoffItalicTag ; diff --git a/webapi/src/main/resources/knora-ontologies/standoff-onto.ttl b/webapi/src/main/resources/knora-ontologies/standoff-onto.ttl index cfb976f911..e615150ce4 100644 --- a/webapi/src/main/resources/knora-ontologies/standoff-onto.ttl +++ b/webapi/src/main/resources/knora-ontologies/standoff-onto.ttl @@ -120,6 +120,12 @@ rdfs:subClassOf :StandoffStructuralTag ; rdfs:comment "Represents a paragraph in a TextValue"@en . +### http://www.knora.org/ontology/standoff#StandoffFootnoteTag + +:StandoffFootnoteTag + rdf:type owl:Class ; + rdfs:subClassOf :StandoffStructuralTag ; + rdfs:comment "Represents a footnote in a TextValue"@en . ### http://www.knora.org/ontology/standoff#StandoffHeader1Tag diff --git a/webapi/src/main/scala/org/knora/webapi/package.scala b/webapi/src/main/scala/org/knora/webapi/package.scala index 82c9853cf7..135c2d8eb7 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 = 43 + val KnoraBaseVersion: Int = 44 val KnoraBaseVersionString: String = s"$versionPrefix$KnoraBaseVersion" /**