Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement versioning ontology per issue 979 #982

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/release_notes/issue979-versioning
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Patch Updates

* Implement [versioning ontology](https://github.com/semanticarts/versioning-ontology/). Issue [#979](https://github.com/semanticarts/gist/issues/979). Changes:

* Add gist version declaration.
* State that gist depends on the versioning ontology being in a certain range.
* Add versioned `owl:import` statements.
25 changes: 25 additions & 0 deletions gistCore.ttl
Original file line number Diff line number Diff line change
@@ -1,20 +1,45 @@
# imports: https://w3id.org/semanticarts/ontology/operators1.0.0
# imports: https://w3id.org/semanticarts/ontology/versioning1.0.0

@prefix : <https://w3id.org/semanticarts/ontology/gistCore#> .
@prefix gist: <https://w3id.org/semanticarts/ns/ontology/gist/> .
@prefix ops: <https://w3id.org/semanticarts/ns/ontology/operators/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix ver: <https://w3id.org/semanticarts/ns/ontology/versioning/> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://w3id.org/semanticarts/ontology/gistCore>
a owl:Ontology ;
owl:imports
<https://w3id.org/semanticarts/ontology/operators1.0.0> ,
<https://w3id.org/semanticarts/ontology/versioning1.0.0>
;
owl:versionIRI <https://w3id.org/semanticarts/ontology/gistCoreX.x.x> ;
skos:definition "gist is a minimalist upper ontology created by Semantic Arts."^^xsd:string ;
skos:prefLabel "gist"^^xsd:string ;
sh:declare gist:_PrefixDeclaration_gist ;
gist:license "https://creativecommons.org/licenses/by-sa/3.0/"^^xsd:string ;
ver:dependsOn [
a ver:VersionRangeSpec ;
ops:hasValueGreaterOrEqualTo [
a ver:SemanticVersionNumber ;
ver:uniqueText "1.0.0"^^xsd:string ;
] ;
ops:hasValueLessThan [
a ver:SemanticVersionNumber ;
ver:uniqueText "2.0.0"^^xsd:string ;
] ;
ver:isVersionRangeOf <https://w3id.org/semanticarts/ontology/versioning> ;
] ;
ver:hasVersionNumber [
a ver:SemanticVersionNumber ;
ver:uniqueText "X.x.x"^^xsd:string ;
] ;
.

gist:Account
Expand Down
40 changes: 39 additions & 1 deletion gistMediaTypes.ttl
Original file line number Diff line number Diff line change
@@ -1,22 +1,60 @@
# imports: https://w3id.org/semanticarts/ontology/gistCoreX.x.x
# imports: https://w3id.org/semanticarts/ontology/operators1.0.0
# imports: https://w3id.org/semanticarts/ontology/versioning1.0.0

@prefix gist: <https://w3id.org/semanticarts/ns/ontology/gist/> .
@prefix media-app: <https://www.iana.org/assignments/media-types/application/> .
@prefix media-txt: <https://www.iana.org/assignments/media-types/text/> .
@prefix ops: <https://w3id.org/semanticarts/ns/ontology/operators/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix ver: <https://w3id.org/semanticarts/ns/ontology/versioning/> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://w3id.org/semanticarts/ontology/gistMediaTypes>
a owl:Ontology ;
owl:imports <https://w3id.org/semanticarts/ontology/gistCoreX.x.x> ;
owl:imports
<https://w3id.org/semanticarts/ontology/gistCoreX.x.x> ,
<https://w3id.org/semanticarts/ontology/operators1.0.0> ,
<https://w3id.org/semanticarts/ontology/versioning1.0.0>
;
owl:versionIRI <https://w3id.org/semanticarts/ontology/gistMediaTypesX.x.x> ;
skos:definition "Definitions of IANA Media Types."^^xsd:string ;
skos:prefLabel "gist Media Types"^^xsd:string ;
gist:license "https://creativecommons.org/licenses/by-sa/3.0/"^^xsd:string ;
ver:dependsOn
[
a ver:VersionRangeSpec ;
ops:hasValueGreaterOrEqualTo [
a ver:SemanticVersionNumber ;
ver:uniqueText "1.0.0"^^xsd:string ;
] ;
ops:hasValueLessThan [
a ver:SemanticVersionNumber ;
ver:uniqueText "2.0.0"^^xsd:string ;
] ;
ver:isVersionRangeOf <https://w3id.org/semanticarts/ontology/versioning> ;
] ,
[
a ver:VersionRangeSpec ;
ops:hasValueGreaterOrEqualTo [
a ver:SemanticVersionNumber ;
ver:uniqueText "12.0.0"^^xsd:string ;
] ;
ops:hasValueLessThan [
a ver:SemanticVersionNumber ;
ver:uniqueText "13.0.0"^^xsd:string ;
] ;
ver:isVersionRangeOf <https://w3id.org/semanticarts/ontology/gist> ;
]
;
ver:hasVersionNumber [
a ver:SemanticVersionNumber ;
ver:uniqueText "X.x.x"^^xsd:string ;
] ;
.

media-app:json
Expand Down
52 changes: 51 additions & 1 deletion gistPrefixDeclarations.ttl
Original file line number Diff line number Diff line change
@@ -1,20 +1,64 @@
# imports: https://w3id.org/semanticarts/ontology/gistCoreX.x.x
# imports: https://w3id.org/semanticarts/ontology/operators1.0.0
# imports: https://w3id.org/semanticarts/ontology/versioning1.0.0

@prefix gist: <https://w3id.org/semanticarts/ns/ontology/gist/> .
@prefix ops: <https://w3id.org/semanticarts/ns/ontology/operators/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix ver: <https://w3id.org/semanticarts/ns/ontology/versioning/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://w3id.org/semanticarts/ontology/gistPrefixDeclarations>
a owl:Ontology ;
owl:imports <https://w3id.org/semanticarts/ontology/gistCoreX.x.x> ;
owl:imports
<https://w3id.org/semanticarts/ontology/gistCoreX.x.x> ,
<https://w3id.org/semanticarts/ontology/operators1.0.0> ,
<https://w3id.org/semanticarts/ontology/versioning1.0.0>
;
owl:versionIRI <https://w3id.org/semanticarts/ontology/gistPrefixDeclarationsX.x.x> ;
skos:definition "Prefix declarations, which pair a prefix with a namespace, used in the gist ontology. Provided to support applications such as visualizers."^^xsd:string ;
skos:prefLabel "gist Prefix Declarations"^^xsd:string ;
gist:license "https://creativecommons.org/licenses/by-sa/3.0/"^^xsd:string ;
ver:dependsOn
[
a ver:VersionRangeSpec ;
ops:hasValueGreaterOrEqualTo [
a ver:SemanticVersionNumber ;
ver:uniqueText "1.0.0"^^xsd:string ;
] ;
ops:hasValueLessThan [
a ver:SemanticVersionNumber ;
ver:uniqueText "2.0.0"^^xsd:string ;
] ;
ver:isVersionRangeOf <https://w3id.org/semanticarts/ontology/versioning> ;
] ,
[
a ver:VersionRangeSpec ;
ops:hasValueGreaterOrEqualTo [
a ver:SemanticVersionNumber ;
ver:uniqueText "12.0.0"^^xsd:string ;
] ;
ops:hasValueLessThan [
a ver:SemanticVersionNumber ;
ver:uniqueText "13.0.0"^^xsd:string ;
] ;
ver:isVersionRangeOf <https://w3id.org/semanticarts/ontology/gist> ;
]
;
ver:hasVersionNumber [
a ver:SemanticVersionNumber ;
ver:uniqueText "X.x.x"^^xsd:string ;
] ;
.

gist:_PrefixDeclaration_ops
a sh:PrefixDeclaration ;
sh:namespace "http://www.w3.org/2001/XMLSchema#"^^xsd:anyURI ;
sh:prefix "ops"^^xsd:string ;
.

gist:_PrefixDeclaration_owl
Expand Down Expand Up @@ -47,6 +91,12 @@ gist:_PrefixDeclaration_skos
sh:prefix "skos"^^xsd:string ;
.

gist:_PrefixDeclaration_ver
a sh:PrefixDeclaration ;
sh:namespace "http://www.w3.org/2001/XMLSchema#"^^xsd:anyURI ;
sh:prefix "ver"^^xsd:string ;
.

gist:_PrefixDeclaration_xsd
a sh:PrefixDeclaration ;
sh:namespace "http://www.w3.org/2001/XMLSchema#"^^xsd:anyURI ;
Expand Down
40 changes: 39 additions & 1 deletion gistValidationAnnotations.ttl
Original file line number Diff line number Diff line change
@@ -1,20 +1,58 @@
# imports: https://w3id.org/semanticarts/ontology/gistCoreX.x.x
# imports: https://w3id.org/semanticarts/ontology/operators1.0.0
# imports: https://w3id.org/semanticarts/ontology/versioning1.0.0

@prefix gist: <https://w3id.org/semanticarts/ns/ontology/gist/> .
@prefix ops: <https://w3id.org/semanticarts/ns/ontology/operators/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix ver: <https://w3id.org/semanticarts/ns/ontology/versioning/> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://w3id.org/semanticarts/ontology/gistValidationAnnotations>
a owl:Ontology ;
owl:imports <https://w3id.org/semanticarts/ontology/gistCoreX.x.x> ;
owl:imports
<https://w3id.org/semanticarts/ontology/gistCoreX.x.x> ,
<https://w3id.org/semanticarts/ontology/operators1.0.0> ,
<https://w3id.org/semanticarts/ontology/versioning1.0.0>
;
owl:versionIRI <https://w3id.org/semanticarts/ontology/gistValidationAnnotationsX.x.x> ;
skos:definition "Annotations to assist gist ontology validation."^^xsd:string ;
skos:prefLabel "gist Validation Annotations"^^xsd:string ;
gist:license "https://creativecommons.org/licenses/by-sa/3.0/"^^xsd:string ;
ver:dependsOn
[
a ver:VersionRangeSpec ;
ops:hasValueGreaterOrEqualTo [
a ver:SemanticVersionNumber ;
ver:uniqueText "1.0.0"^^xsd:string ;
] ;
ops:hasValueLessThan [
a ver:SemanticVersionNumber ;
ver:uniqueText "2.0.0"^^xsd:string ;
] ;
ver:isVersionRangeOf <https://w3id.org/semanticarts/ontology/versioning> ;
] ,
[
a ver:VersionRangeSpec ;
ops:hasValueGreaterOrEqualTo [
a ver:SemanticVersionNumber ;
ver:uniqueText "12.0.0"^^xsd:string ;
] ;
ops:hasValueLessThan [
a ver:SemanticVersionNumber ;
ver:uniqueText "13.0.0"^^xsd:string ;
] ;
ver:isVersionRangeOf <https://w3id.org/semanticarts/ontology/gist> ;
]
;
ver:hasVersionNumber [
a ver:SemanticVersionNumber ;
ver:uniqueText "X.x.x"^^xsd:string ;
] ;
.

gist:nonConformingLabel
Expand Down
Loading