-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversioning.ttl
151 lines (136 loc) · 5.63 KB
/
versioning.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# imports: https://w3id.org/semanticarts/ontology/operators1.0.0
@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/versioning>
a owl:Ontology ;
owl:imports <https://w3id.org/semanticarts/ontology/operators1.1.0> ;
owl:versionIRI <https://w3id.org/semanticarts/ontology/versioningX.x.x> ;
skos:definition "Generic concepts for semantic versioning of a suite of artifacts for semantic systems in production."^^xsd:string ;
skos:editorialNote "Although this was originally intended for semantic version numbers, the ontology could be tweaked in a very small way to use different version numbers, so long as they are ordered."^^xsd:string ;
skos:example "The semantic version number for the disease taxonomy is 6.3.0. This version depends on the version of the imported disease ontology being at least 3.1.0 and less than 4.0.0. It also depends on the version of gist core being at least 12.1.0 and less than 13.0.0."^^xsd:string ;
skos:prefLabel "Semantic Versioning Ontology"^^xsd:string ;
ver:hasVersionNumber [
a ver:SemanticVersionNumber ;
ver:uniqueText "X.x.x"^^xsd:string ;
] ;
.
skos:definition
a owl:AnnotationProperty ;
.
skos:example
a owl:AnnotationProperty ;
.
skos:prefLabel
a owl:AnnotationProperty ;
.
skos:scopeNote
a owl:AnnotationProperty ;
.
ver:SemanticVersionNumber
a owl:Class ;
rdfs:seeAlso "Based on semantic versioning as described here: https://semver.org/"^^xsd:string ;
rdfs:subclassOf [
a owl:Restriction ;
owl:onProperty ver:uniqueText ;
owl:someValuesFrom xsd:string ;
] ;
skos:definition "A number used to identify a version, using the semantic versioning format N.N.N."^^xsd:string ;
skos:prefLabel "Semantic Version Number"^^xsd:string ;
.
ver:VersionRangeSpec
a owl:Class ;
owl:equivalentClass [
a owl:Class ;
owl:intersectionOf (
[
a owl:Restriction ;
owl:onProperty ver:isVersionRangeOf ;
owl:someValuesFrom ver:VersionedItem ;
]
[
a owl:Restriction ;
owl:onProperty ops:hasSpecifiedValue ;
owl:someValuesFrom ver:SemanticVersionNumber ;
]
) ;
] ;
skos:definition "A specification of a range of versions that a given versioned item must be within."^^xsd:string ;
skos:example "The version of gistCore is required to be greater than or equal to 9.3.0 and less than 10.0.0"^^xsd:string ;
skos:prefLabel "Version Range Spec"^^xsd:string ;
.
ver:VersionedItem
a owl:Class ;
owl:equivalentClass [
a owl:Restriction ;
owl:onProperty ver:hasVersionNumber ;
owl:someValuesFrom ver:SemanticVersionNumber ;
] ;
skos:definition "Anything with a semantic version number."^^xsd:string ;
skos:prefLabel "Versioned Item"^^xsd:string ;
skos:scopeNote "Every versioned item will generally either depend on something, or something will depend on it. That kind of check is best for SHACL. It might not be an error, just a warning."^^xsd:string ;
.
ver:VersionedItemCollection
a owl:Class ;
owl:equivalentClass [
a owl:Class ;
owl:intersectionOf (
[
a owl:Restriction ;
owl:onProperty ver:hasMember ;
owl:someValuesFrom ver:VersionedItem ;
]
[
a owl:Restriction ;
owl:onProperty ver:hasVersionNumber ;
owl:someValuesFrom ver:SemanticVersionNumber ;
]
[
a owl:Restriction ;
owl:onProperty ver:hasMember ;
owl:allValuesFrom ver:VersionedItem ;
]
) ;
] ;
skos:definition "A collection of versioned items that are versioned in synch, as if they were a single item. Version dependencies need only be specified for the collection."^^xsd:string ;
skos:prefLabel "Versioned Item Collection"^^xsd:string ;
skos:scopeNote "Although it cannot be expressed in OWL, the idea is that members inherit the version number of their collection. This can be handled with code or a SPARQL query if required."^^xsd:string ;
.
ver:dependsOn
a owl:ObjectProperty ;
skos:definition "Relates something to what it depends on."^^xsd:string ;
skos:example "Version 6.3.0 of a disease taxonomy depends on the version number of an imported disease ontology being at least 3.1.0 and less than 4.0.0."^^xsd:string ;
skos:prefLabel "depends on"^^xsd:string ;
.
ver:hasMember
a owl:ObjectProperty ;
skos:definition "Relates a collection to its member individuals."^^xsd:string ;
skos:prefLabel "has member"^^xsd:string ;
.
ver:hasVersionNumber
a owl:ObjectProperty ;
skos:definition "Relates a versioned artifact to a text representation of its version number."^^xsd:string ;
skos:prefLabel "has version number"^^xsd:string ;
.
ver:isVersionRangeOf
a owl:ObjectProperty ;
rdfs:domain ver:VersionRangeSpec ;
skos:definition "A relationship between a version range spec and the versioned item whose acceptable range is being specified."^^xsd:string ;
skos:prefLabel "is version range of"^^xsd:string ;
.
ver:uniqueText
a
owl:DatatypeProperty ,
owl:FunctionalProperty
;
rdfs:range xsd:string ;
skos:definition "The unique string value of some content object; i.e., there is no possibility of having more than one value."^^xsd:string ;
skos:example "The unique string for a semantic version number is '11.1.2'."^^xsd:string ;
skos:prefLabel "unique text"^^xsd:string ;
skos:scopeNote "This is identical in meaning to gist:uniqueText in the gist ontology: https://w3id.org/semanticarts/ontology/gistCore "^^xsd:string ;
.