Skip to content

Commit

Permalink
fix: Temporarily bring back support for isSequenceOf while it exist…
Browse files Browse the repository at this point in the history
…s in data (#3162)
  • Loading branch information
BalduinLandolt authored Apr 3, 2024
1 parent 1beb192 commit d22adfd
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,18 @@
},
"@id": "knora-api:hasSegmentBounds"
},
{
"rdfs:label": "Sequence Bounds",
"rdfs:subPropertyOf": {
"@id": "knora-api:hasValue"
},
"rdfs:comment": "Indicates the bounds of a sequence, i.e. the start and end point in the containing resource.",
"@type": "owl:DatatypeProperty",
"knora-api:objectType": {
"@id": "knora-api:Interval"
},
"@id": "knora-api:hasSequenceBounds"
},
{
"rdfs:label": "has Standoff Link to",
"rdfs:subPropertyOf": {
Expand Down Expand Up @@ -1432,6 +1444,21 @@
},
"@id": "knora-api:isSegmentOf"
},
{
"rdfs:label": "is sequence of",
"rdfs:subPropertyOf": {
"@id": "knora-api:hasLinkTo"
},
"rdfs:comment": "Deprecated in favour of :Segment",
"@type": "owl:ObjectProperty",
"knora-api:subjectType": {
"@id": "knora-api:Resource"
},
"knora-api:objectType": {
"@id": "knora-api:Resource"
},
"@id": "knora-api:isSequenceOf"
},
{
"rdfs:label": "is video segment of",
"rdfs:subPropertyOf": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8184,6 +8184,20 @@
},
"rdfs:comment": "Indicates the bounds of a segment, i.e. the start and end point in the containing resource."
},
{
"rdfs:label": "Sequence Bounds",
"rdfs:subPropertyOf": {
"@id": "knora-api:hasValue"
},
"knora-api:isEditable": true,
"knora-api:isResourceProperty": true,
"rdfs:comment": "Indicates the bounds of a sequence, i.e. the start and end point in the containing resource.",
"@type": "owl:ObjectProperty",
"knora-api:objectType": {
"@id": "knora-api:IntervalValue"
},
"@id": "knora-api:hasSequenceBounds"
},
{
"rdfs:label": "has Standoff Link to",
"rdfs:subPropertyOf": {
Expand Down Expand Up @@ -8581,6 +8595,41 @@
},
"@id": "knora-api:isSegmentOfValue"
},
{
"rdfs:label": "is sequence of",
"rdfs:subPropertyOf": {
"@id": "knora-api:hasLinkTo"
},
"knora-api:isEditable": true,
"knora-api:isResourceProperty": true,
"@type": "owl:ObjectProperty",
"knora-api:objectType": {
"@id": "knora-api:Resource"
},
"@id": "knora-api:isSequenceOf",
"knora-api:subjectType": {
"@id": "knora-api:Resource"
},
"knora-api:isLinkProperty": true,
"rdfs:comment": "Deprecated in favour of :Segment"
},
{
"knora-api:isLinkValueProperty": true,
"rdfs:subPropertyOf": {
"@id": "knora-api:hasLinkToValue"
},
"knora-api:isEditable": true,
"knora-api:isResourceProperty": true,
"@type": "owl:ObjectProperty",
"knora-api:objectType": {
"@id": "knora-api:LinkValue"
},
"@id": "knora-api:isSequenceOfValue",
"knora-api:subjectType": {
"@id": "knora-api:Resource"
},
"rdfs:comment": "Deprecated in favour of :Segment"
},
{
"rdfs:label": "is shared",
"rdfs:comment": "Indicates whether an ontology can be shared by multiple projects",
Expand Down
39 changes: 38 additions & 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 v33" .
:ontologyVersion "knora-base v34" .


#################################################################
Expand Down Expand Up @@ -2366,3 +2366,40 @@
"Video Segment"@en ;
:canBeInstantiated true ;
rdfs:comment "A segment of a video resource"@en .

### http://www.knora.org/ontology/knora-base#isSequenceOf

:isSequenceOf
rdf:type owl:ObjectProperty ;
rdfs:label "ist Sequenz von"@de,
"is sequence of"@en,
"fait partie de"@fr,
"fa parte di"@it ;
rdfs:comment "Deprecated in favour of :Segment"@en ;
:subjectClassConstraint :Resource ;
:objectClassConstraint :Resource ;
:isEditable true ;
rdfs:subPropertyOf :hasLinkTo .


### http://www.knora.org/ontology/knora-base#isSequenceOfValue

:isSequenceOfValue
rdf:type owl:ObjectProperty ;
:objectClassConstraint :LinkValue ;
:subjectClassConstraint :Resource ;
:isEditable true ;
rdfs:comment "Deprecated in favour of :Segment"@en ;
rdfs:subPropertyOf :hasLinkToValue .

### http://www.knora.org/ontology/knora-base#hasSequenceBounds

:hasSequenceBounds
rdf:type owl:ObjectProperty ;
:objectClassConstraint :IntervalValue ;
:isEditable true ;
rdfs:subPropertyOf :hasValue ;
rdfs:label "Sequenz-Grenzen"@de,
"Sequence Bounds"@en ;
rdfs:comment "Deprecated in favour of :Segment"@en ;
rdfs:comment "Indicates the bounds of a sequence, i.e. the start and end point in the containing resource."@en .
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 @@ -11,7 +11,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: String = "knora-base v33"
val KnoraBaseVersion: String = "knora-base v34"

/**
* `IRI` is a synonym for `String`, used to improve code readability.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ object RepositoryUpdatePlan {
PluginForKnoraBaseVersion(versionNumber = 31, plugin = new UpgradePluginPR3112()),
PluginForKnoraBaseVersion(versionNumber = 32, plugin = new MigrateOnlyBuiltInGraphs()),
PluginForKnoraBaseVersion(versionNumber = 33, plugin = new MigrateOnlyBuiltInGraphs()),
PluginForKnoraBaseVersion(versionNumber = 34, plugin = new MigrateOnlyBuiltInGraphs()),
)

/**
Expand Down

0 comments on commit d22adfd

Please sign in to comment.