Skip to content

Commit

Permalink
feat: Extend the model of Segment with additional properties (DEV-3505
Browse files Browse the repository at this point in the history
) (#3193)
  • Loading branch information
BalduinLandolt committed Apr 17, 2024
1 parent 682f5b6 commit 54a439c
Show file tree
Hide file tree
Showing 5 changed files with 549 additions and 8 deletions.
Expand Up @@ -191,13 +191,27 @@
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:hasDescription"
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:hasIncomingLink"
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:hasKeyword"
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
Expand All @@ -212,13 +226,27 @@
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:hasTitle"
},
"owl:maxCardinality": 1
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:isAudioSegmentOf"
},
"owl:cardinality": 1
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:relatesTo"
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
Expand Down Expand Up @@ -764,6 +792,9 @@
{
"@id": "knora-api:Resource"
},
{
"@id": "http://schema.org/Clip"
},
{
"@id": "http://www.w3.org/ns/ma-ont#Track"
},
Expand All @@ -781,13 +812,27 @@
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:hasDescription"
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:hasIncomingLink"
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:hasKeyword"
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
Expand All @@ -802,13 +847,27 @@
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:hasTitle"
},
"owl:maxCardinality": 1
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:isSegmentOf"
},
"owl:cardinality": 1
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:relatesTo"
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
Expand Down Expand Up @@ -962,13 +1021,27 @@
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:hasDescription"
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:hasIncomingLink"
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:hasKeyword"
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
Expand All @@ -983,13 +1056,27 @@
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:hasTitle"
},
"owl:maxCardinality": 1
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:isVideoSegmentOf"
},
"owl:cardinality": 1
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
"@id": "knora-api:relatesTo"
},
"owl:minCardinality": 0
},
{
"@type": "owl:Restriction",
"owl:onProperty": {
Expand Down Expand Up @@ -1165,6 +1252,32 @@
},
"@id": "knora-api:hasDDDFile"
},
{
"rdfs:label": "has description",
"rdfs:subPropertyOf": [
{
"@id": "knora-api:hasValue"
},
{
"@id": "http://purl.org/dc/terms/description"
},
{
"@id": "http://schema.org/abstract"
},
{
"@id": "http://www.w3.org/ns/ma-ont#description"
}
],
"rdfs:comment": "Indicates the description of a resource",
"@type": "owl:DatatypeProperty",
"knora-api:subjectType": {
"@id": "knora-api:Resource"
},
"knora-api:objectType": {
"@id": "xsd:string"
},
"@id": "knora-api:hasDescription"
},
{
"rdfs:label": "has document",
"rdfs:subPropertyOf": {
Expand Down Expand Up @@ -1225,6 +1338,32 @@
},
"@id": "knora-api:hasIncomingLink"
},
{
"rdfs:label": "has keyword",
"rdfs:subPropertyOf": [
{
"@id": "knora-api:hasValue"
},
{
"@id": "http://purl.org/dc/terms/subject"
},
{
"@id": "http://schema.org/keywords"
},
{
"@id": "http://www.w3.org/ns/ma-ont#hasKeyword"
}
],
"rdfs:comment": "Indicates a keyword of a resource",
"@type": "owl:DatatypeProperty",
"knora-api:subjectType": {
"@id": "knora-api:Resource"
},
"knora-api:objectType": {
"@id": "xsd:string"
},
"@id": "knora-api:hasKeyword"
},
{
"rdfs:label": "has Link to",
"rdfs:subPropertyOf": {
Expand Down Expand Up @@ -1342,6 +1481,32 @@
},
"@id": "knora-api:hasTextFile"
},
{
"rdfs:label": "has title",
"rdfs:subPropertyOf": [
{
"@id": "knora-api:hasValue"
},
{
"@id": "http://purl.org/dc/terms/title"
},
{
"@id": "http://schema.org/headline"
},
{
"@id": "http://www.w3.org/ns/ma-ont#title"
}
],
"rdfs:comment": "Indicates the title of a resource",
"@type": "owl:DatatypeProperty",
"knora-api:subjectType": {
"@id": "knora-api:Resource"
},
"knora-api:objectType": {
"@id": "xsd:string"
},
"@id": "knora-api:hasTitle"
},
{
"rdfs:label": "has value",
"rdfs:subPropertyOf": {
Expand Down Expand Up @@ -1430,6 +1595,9 @@
{
"@id": "knora-api:hasLinkTo"
},
{
"@id": "http://schema.org/isPartOf"
},
{
"@id": "http://www.w3.org/ns/ma-ont#isFragmentOf"
}
Expand Down Expand Up @@ -1489,6 +1657,29 @@
"rdfs:label": "Object type",
"rdfs:comment": "Specifies the required type of the objects of a property"
},
{
"rdfs:label": "relates to",
"rdfs:subPropertyOf": [
{
"@id": "knora-api:hasLinkTo"
},
{
"@id": "http://purl.org/dc/terms/relation"
},
{
"@id": "http://www.w3.org/ns/ma-ont#hasRelatedResource"
}
],
"rdfs:comment": "Indicates that this resource relates to another resource",
"@type": "owl:ObjectProperty",
"knora-api:subjectType": {
"@id": "knora-api:Resource"
},
"knora-api:objectType": {
"@id": "knora-api:Resource"
},
"@id": "knora-api:relatesTo"
},
{
"@id": "knora-api:resourceIcon",
"@type": "owl:DatatypeProperty",
Expand Down

0 comments on commit 54a439c

Please sign in to comment.