Skip to content

Commit

Permalink
feat: Add StandoffFootnoteTag (DEV-4306)
Browse files Browse the repository at this point in the history
  • Loading branch information
siers committed Dec 12, 2024
1 parent 3660ae6 commit 47af79e
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion webapi/src/main/resources/knora-ontologies/knora-base.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -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" .


#################################################################
Expand Down
13 changes: 12 additions & 1 deletion webapi/src/main/resources/knora-ontologies/standoff-data.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
<http://rdfh.ch/standoff/mappings/StandardMapping/elements/a05L2z3NT3iMWMn7nFqIOA>,
<http://rdfh.ch/standoff/mappings/StandardMapping/elements/vncrL3zVRxiUzHyK6EE6Cw>,
<http://rdfh.ch/standoff/mappings/StandardMapping/elements/niV5iI8DTVK3on2ySXvXRQ>,
<http://rdfh.ch/standoff/mappings/StandardMapping/elements/5b548e03-7ece-4ed7-858> .
<http://rdfh.ch/standoff/mappings/StandardMapping/elements/5b548e03-7ece-4ed7-858>,
<http://rdfh.ch/standoff/mappings/StandardMapping/elements/YcVF70rEMveEub0QCRKhIl>.

<http://rdfh.ch/standoff/mappings/StandardMapping/elements/4b-Cx4qYQOyy9mUswmvW7g>
a knora-base:MappingElement ;
Expand All @@ -75,6 +76,16 @@
knora-base:mappingElementRequiresSeparator true ;
knora-base:mappingHasXMLTagname "p"^^xsd:string .

<http://rdfh.ch/standoff/mappings/StandardMapping/elements/YcVF70rEMveEub0QCRKhIl>
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 .



<http://rdfh.ch/standoff/mappings/StandardMapping/elements/4XIn2zgbSN-swe5PdPjogg>
a knora-base:MappingElement ;
knora-base:mappingHasStandoffClass standoff:StandoffItalicTag ;
Expand Down
6 changes: 6 additions & 0 deletions webapi/src/main/resources/knora-ontologies/standoff-onto.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion webapi/src/main/scala/org/knora/webapi/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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"

/**
Expand Down

0 comments on commit 47af79e

Please sign in to comment.