rdf 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CREDITS +1 -0
  3. data/VERSION +1 -1
  4. data/lib/rdf.rb +10 -48
  5. data/lib/rdf/cli/vocab-loader.rb +78 -142
  6. data/lib/rdf/mixin/enumerable.rb +25 -0
  7. data/lib/rdf/mixin/mutable.rb +3 -0
  8. data/lib/rdf/model/graph.rb +1 -1
  9. data/lib/rdf/model/node.rb +25 -2
  10. data/lib/rdf/model/statement.rb +20 -12
  11. data/lib/rdf/model/uri.rb +11 -2
  12. data/lib/rdf/nquads.rb +8 -6
  13. data/lib/rdf/ntriples/writer.rb +14 -10
  14. data/lib/rdf/query/pattern.rb +10 -8
  15. data/lib/rdf/reader.rb +11 -2
  16. data/lib/rdf/repository.rb +1 -1
  17. data/lib/rdf/vocab.rb +396 -96
  18. data/lib/rdf/vocab/cc.rb +117 -25
  19. data/lib/rdf/vocab/cert.rb +230 -117
  20. data/lib/rdf/vocab/dc.rb +930 -233
  21. data/lib/rdf/vocab/dc11.rb +151 -37
  22. data/lib/rdf/vocab/doap.rb +326 -114
  23. data/lib/rdf/vocab/exif.rb +930 -533
  24. data/lib/rdf/vocab/foaf.rb +602 -346
  25. data/lib/rdf/vocab/geo.rb +139 -33
  26. data/lib/rdf/vocab/gr.rb +1551 -1084
  27. data/lib/rdf/vocab/ht.rb +319 -0
  28. data/lib/rdf/vocab/ical.rb +507 -349
  29. data/lib/rdf/vocab/ma.rb +504 -280
  30. data/lib/rdf/vocab/mo.rb +2425 -876
  31. data/lib/rdf/vocab/og.rb +178 -90
  32. data/lib/rdf/vocab/owl.rb +513 -219
  33. data/lib/rdf/vocab/prov.rb +1557 -479
  34. data/lib/rdf/vocab/rdfs.rb +107 -31
  35. data/lib/rdf/vocab/rdfv.rb +165 -0
  36. data/lib/rdf/vocab/rsa.rb +61 -18
  37. data/lib/rdf/vocab/rss.rb +55 -22
  38. data/lib/rdf/vocab/schema.rb +8590 -3995
  39. data/lib/rdf/vocab/sioc.rb +657 -218
  40. data/lib/rdf/vocab/skos.rb +227 -134
  41. data/lib/rdf/vocab/skosxl.rb +47 -33
  42. data/lib/rdf/vocab/vcard.rb +693 -327
  43. data/lib/rdf/vocab/void.rb +175 -132
  44. data/lib/rdf/vocab/vs.rb +27 -0
  45. data/lib/rdf/vocab/wdrs.rb +123 -119
  46. data/lib/rdf/vocab/wot.rb +155 -45
  47. data/lib/rdf/vocab/xhtml.rb +2 -1
  48. data/lib/rdf/vocab/xhv.rb +496 -231
  49. data/lib/rdf/vocab/xsd.rb +382 -53
  50. data/lib/rdf/writer.rb +8 -4
  51. metadata +5 -4
  52. data/lib/rdf/vocab/http.rb +0 -84
  53. data/lib/rdf/vocab/v.rb +0 -154
@@ -1,144 +1,237 @@
1
+ # -*- encoding: utf-8 -*-
1
2
  # This file generated automatically using vocab-fetch from http://www.w3.org/2004/02/skos/core#
2
3
  require 'rdf'
3
4
  module RDF
4
5
  class SKOS < StrictVocabulary("http://www.w3.org/2004/02/skos/core#")
5
6
 
6
7
  # Class definitions
7
- property :Collection, :label => 'Collection'
8
- property :Concept, :label => 'Concept'
9
- property :ConceptScheme, :label => 'Concept Scheme'
10
- property :OrderedCollection, :label => 'Ordered Collection'
8
+ term :Collection,
9
+ label: "Collection".freeze,
10
+ "owl:disjointWith" => %(skos:Concept).freeze,
11
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
12
+ "skos:definition" => %(A meaningful collection of concepts.).freeze,
13
+ "skos:scopeNote" => %(Labelled collections can be used where you would like a set of concepts to be displayed under a 'node label' in the hierarchy.).freeze,
14
+ type: "owl:Class".freeze
15
+ term :Concept,
16
+ label: "Concept".freeze,
17
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
18
+ "skos:definition" => %(An idea or notion; a unit of thought.).freeze,
19
+ type: "owl:Class".freeze
20
+ term :ConceptScheme,
21
+ label: "Concept Scheme".freeze,
22
+ "owl:disjointWith" => %(skos:Concept).freeze,
23
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
24
+ "skos:definition" => %(A set of concepts, optionally including statements about semantic relationships between those concepts.).freeze,
25
+ "skos:example" => %(Thesauri, classification schemes, subject heading lists, taxonomies, 'folksonomies', and other types of controlled vocabulary are all examples of concept schemes. Concept schemes are also embedded in glossaries and terminologies.).freeze,
26
+ "skos:scopeNote" => %(A concept scheme may be defined to include concepts from different sources.).freeze,
27
+ type: "owl:Class".freeze
28
+ term :OrderedCollection,
29
+ label: "Ordered Collection".freeze,
30
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
31
+ "skos:definition" => %(An ordered collection of concepts, where both the grouping and the ordering are meaningful.).freeze,
32
+ "skos:scopeNote" => %(Ordered collections can be used where you would like a set of concepts to be displayed in a specific order, and optionally under a 'node label'.).freeze,
33
+ subClassOf: "skos:Collection".freeze,
34
+ type: "owl:Class".freeze
11
35
 
12
36
  # Property definitions
13
- property :altLabel, :label => 'alternative label', :comment =>
14
- %(The range of skos:altLabel is the class of RDF plain literals.)
15
- property :altLabel, :label => 'alternative label', :comment =>
16
- %(skos:prefLabel, skos:altLabel and skos:hiddenLabel are
17
- pairwise disjoint properties.)
18
- property :changeNote, :label => 'change note'
19
- property :definition, :label => 'definition'
20
- property :editorialNote, :label => 'editorial note'
21
- property :example, :label => 'example'
22
- property :broader, :label => 'has broader', :comment =>
23
- %(Broader concepts are typically rendered as parents in a
24
- concept hierarchy \(tree\).)
25
- property :broadMatch, :label => 'has broader match'
26
- property :broaderTransitive, :label => 'has broader transitive'
27
- property :closeMatch, :label => 'has close match'
28
- property :exactMatch, :label => 'has exact match', :comment =>
29
- %(skos:exactMatch is disjoint with each of the properties
30
- skos:broadMatch and skos:relatedMatch.)
31
- property :member, :label => 'has member'
32
- property :memberList, :label => 'has member list', :comment =>
33
- %(For any resource, every item in the list given as the value of
34
- the skos:memberList property is also a value of the
35
- skos:member property.)
36
- property :narrower, :label => 'has narrower', :comment =>
37
- %(Narrower concepts are typically rendered as children in a
38
- concept hierarchy \(tree\).)
39
- property :narrowMatch, :label => 'has narrower match'
40
- property :narrowerTransitive, :label => 'has narrower transitive'
41
- property :related, :label => 'has related', :comment =>
42
- %(skos:related is disjoint with skos:broaderTransitive)
43
- property :relatedMatch, :label => 'has related match'
44
- property :hasTopConcept, :label => 'has top concept'
45
- property :hiddenLabel, :label => 'hidden label', :comment =>
46
- %(The range of skos:hiddenLabel is the class of RDF plain
47
- literals.)
48
- property :hiddenLabel, :label => 'hidden label', :comment =>
49
- %(skos:prefLabel, skos:altLabel and skos:hiddenLabel are
50
- pairwise disjoint properties.)
51
- property :historyNote, :label => 'history note'
52
- property :mappingRelation, :label => 'is in mapping relation with', :comment =>
53
- %(These concept mapping relations mirror semantic relations, and
54
- the data model defined below is similar \(with the exception
55
- of skos:exactMatch\) to the data model defined for semantic
56
- relations. A distinct vocabulary is provided for concept
57
- mapping relations, to provide a convenient way to
58
- differentiate links within a concept scheme from links between
59
- concept schemes. However, this pattern of usage is not a
60
- formal requirement of the SKOS data model, and relies on
61
- informal definitions of best practice.)
62
- property :inScheme, :label => 'is in scheme'
63
- property :semanticRelation, :label => 'is in semantic relation with'
64
- property :topConceptOf, :label => 'is top concept in scheme'
65
- property :notation, :label => 'notation'
66
- property :note, :label => 'note'
67
- property :prefLabel, :label => 'preferred label', :comment =>
68
- %(The range of skos:prefLabel is the class of RDF plain
69
- literals.)
70
- property :prefLabel, :label => 'preferred label', :comment =>
71
- %(A resource has no more than one value of skos:prefLabel per
72
- language tag, and no more than one value of skos:prefLabel
73
- without language tag.)
74
- property :prefLabel, :label => 'preferred label', :comment =>
75
- %(skos:prefLabel, skos:altLabel and skos:hiddenLabel are
76
- pairwise disjoint properties.)
77
- property :scopeNote, :label => 'scope note'
78
- property :notation, :label => 'notation'
79
- property :broader, :label => 'has broader', :comment =>
80
- %(Broader concepts are typically rendered as parents in a
81
- concept hierarchy \(tree\).)
82
- property :broadMatch, :label => 'has broader match'
83
- property :broaderTransitive, :label => 'has broader transitive'
84
- property :closeMatch, :label => 'has close match'
85
- property :exactMatch, :label => 'has exact match', :comment =>
86
- %(skos:exactMatch is disjoint with each of the properties
87
- skos:broadMatch and skos:relatedMatch.)
88
- property :member, :label => 'has member'
89
- property :memberList, :label => 'has member list', :comment =>
90
- %(For any resource, every item in the list given as the value of
91
- the skos:memberList property is also a value of the
92
- skos:member property.)
93
- property :narrower, :label => 'has narrower', :comment =>
94
- %(Narrower concepts are typically rendered as children in a
95
- concept hierarchy \(tree\).)
96
- property :narrowMatch, :label => 'has narrower match'
97
- property :narrowerTransitive, :label => 'has narrower transitive'
98
- property :related, :label => 'has related', :comment =>
99
- %(skos:related is disjoint with skos:broaderTransitive)
100
- property :relatedMatch, :label => 'has related match'
101
- property :hasTopConcept, :label => 'has top concept'
102
- property :mappingRelation, :label => 'is in mapping relation with', :comment =>
103
- %(These concept mapping relations mirror semantic relations, and
104
- the data model defined below is similar \(with the exception
105
- of skos:exactMatch\) to the data model defined for semantic
106
- relations. A distinct vocabulary is provided for concept
107
- mapping relations, to provide a convenient way to
108
- differentiate links within a concept scheme from links between
109
- concept schemes. However, this pattern of usage is not a
110
- formal requirement of the SKOS data model, and relies on
111
- informal definitions of best practice.)
112
- property :inScheme, :label => 'is in scheme'
113
- property :semanticRelation, :label => 'is in semantic relation with'
114
- property :topConceptOf, :label => 'is top concept in scheme'
115
- property :altLabel, :label => 'alternative label', :comment =>
116
- %(The range of skos:altLabel is the class of RDF plain literals.)
117
- property :altLabel, :label => 'alternative label', :comment =>
118
- %(skos:prefLabel, skos:altLabel and skos:hiddenLabel are
119
- pairwise disjoint properties.)
120
- property :changeNote, :label => 'change note'
121
- property :definition, :label => 'definition'
122
- property :editorialNote, :label => 'editorial note'
123
- property :example, :label => 'example'
124
- property :hiddenLabel, :label => 'hidden label', :comment =>
125
- %(skos:prefLabel, skos:altLabel and skos:hiddenLabel are
126
- pairwise disjoint properties.)
127
- property :hiddenLabel, :label => 'hidden label', :comment =>
128
- %(The range of skos:hiddenLabel is the class of RDF plain
129
- literals.)
130
- property :historyNote, :label => 'history note'
131
- property :note, :label => 'note'
132
- property :prefLabel, :label => 'preferred label', :comment =>
133
- %(A resource has no more than one value of skos:prefLabel per
134
- language tag, and no more than one value of skos:prefLabel
135
- without language tag.)
136
- property :prefLabel, :label => 'preferred label', :comment =>
137
- %(skos:prefLabel, skos:altLabel and skos:hiddenLabel are
138
- pairwise disjoint properties.)
139
- property :prefLabel, :label => 'preferred label', :comment =>
140
- %(The range of skos:prefLabel is the class of RDF plain
141
- literals.)
142
- property :scopeNote, :label => 'scope note'
37
+ property :altLabel,
38
+ comment: %(The range of skos:altLabel is the class of RDF plain literals.).freeze,
39
+ label: "alternative label".freeze,
40
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
41
+ "skos:definition" => %(An alternative lexical label for a resource.).freeze,
42
+ "skos:example" => %(Acronyms, abbreviations, spelling variants, and irregular plural/singular forms may be included among the alternative labels for a concept. Mis-spelled terms are normally included as hidden labels \(see skos:hiddenLabel\).).freeze,
43
+ subPropertyOf: "rdfs:label".freeze,
44
+ type: "owl:AnnotationProperty".freeze
45
+ property :broadMatch,
46
+ label: "has broader match".freeze,
47
+ "owl:inverseOf" => %(skos:narrowMatch).freeze,
48
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
49
+ "skos:definition" => %(skos:broadMatch is used to state a hierarchical mapping link between two conceptual resources in different concept schemes.).freeze,
50
+ subPropertyOf: "skos:mappingRelation".freeze,
51
+ type: "owl:ObjectProperty".freeze
52
+ property :broader,
53
+ comment: %(Broader concepts are typically rendered as parents in a concept hierarchy \(tree\).).freeze,
54
+ label: "has broader".freeze,
55
+ "owl:inverseOf" => %(skos:narrower).freeze,
56
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
57
+ "skos:definition" => %(Relates a concept to a concept that is more general in meaning.).freeze,
58
+ "skos:scopeNote" => %(By convention, skos:broader is only used to assert an immediate \(i.e. direct\) hierarchical link between two conceptual resources.).freeze,
59
+ subPropertyOf: "skos:broaderTransitive".freeze,
60
+ type: "owl:ObjectProperty".freeze
61
+ property :broaderTransitive,
62
+ label: "has broader transitive".freeze,
63
+ "owl:inverseOf" => %(skos:narrowerTransitive).freeze,
64
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
65
+ "skos:definition" => %(skos:broaderTransitive is a transitive superproperty of skos:broader.).freeze,
66
+ "skos:scopeNote" => %(By convention, skos:broaderTransitive is not used to make assertions. Rather, the properties can be used to draw inferences about the transitive closure of the hierarchical relation, which is useful e.g. when implementing a simple query expansion algorithm in a search application.).freeze,
67
+ subPropertyOf: "skos:semanticRelation".freeze,
68
+ type: "owl:ObjectProperty".freeze
69
+ property :changeNote,
70
+ label: "change note".freeze,
71
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
72
+ "skos:definition" => %(A note about a modification to a concept.).freeze,
73
+ subPropertyOf: "skos:note".freeze,
74
+ type: "owl:AnnotationProperty".freeze
75
+ property :closeMatch,
76
+ label: "has close match".freeze,
77
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
78
+ "skos:definition" => %(skos:closeMatch is used to link two concepts that are sufficiently similar that they can be used interchangeably in some information retrieval applications. In order to avoid the possibility of "compound errors" when combining mappings across more than two concept schemes, skos:closeMatch is not declared to be a transitive property.).freeze,
79
+ subPropertyOf: "skos:mappingRelation".freeze,
80
+ type: "owl:ObjectProperty".freeze
81
+ property :definition,
82
+ label: "definition".freeze,
83
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
84
+ "skos:definition" => %(A statement or formal explanation of the meaning of a concept.).freeze,
85
+ subPropertyOf: "skos:note".freeze,
86
+ type: "owl:AnnotationProperty".freeze
87
+ property :editorialNote,
88
+ label: "editorial note".freeze,
89
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
90
+ "skos:definition" => %(A note for an editor, translator or maintainer of the vocabulary.).freeze,
91
+ subPropertyOf: "skos:note".freeze,
92
+ type: "owl:AnnotationProperty".freeze
93
+ property :exactMatch,
94
+ comment: %(skos:exactMatch is disjoint with each of the properties skos:broadMatch and skos:relatedMatch.).freeze,
95
+ label: "has exact match".freeze,
96
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
97
+ "skos:definition" => %(skos:exactMatch is used to link two concepts, indicating a high degree of confidence that the concepts can be used interchangeably across a wide range of information retrieval applications. skos:exactMatch is a transitive property, and is a sub-property of skos:closeMatch.).freeze,
98
+ subPropertyOf: "skos:closeMatch".freeze,
99
+ type: "owl:ObjectProperty".freeze
100
+ property :example,
101
+ label: "example".freeze,
102
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
103
+ "skos:definition" => %(An example of the use of a concept.).freeze,
104
+ subPropertyOf: "skos:note".freeze,
105
+ type: "owl:AnnotationProperty".freeze
106
+ property :hasTopConcept,
107
+ domain: "skos:ConceptScheme".freeze,
108
+ label: "has top concept".freeze,
109
+ "owl:inverseOf" => %(skos:topConceptOf).freeze,
110
+ range: "skos:Concept".freeze,
111
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
112
+ "skos:definition" => %(Relates, by convention, a concept scheme to a concept which is topmost in the broader/narrower concept hierarchies for that scheme, providing an entry point to these hierarchies.).freeze,
113
+ type: "owl:ObjectProperty".freeze
114
+ property :hiddenLabel,
115
+ comment: %(The range of skos:hiddenLabel is the class of RDF plain literals.).freeze,
116
+ label: "hidden label".freeze,
117
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
118
+ "skos:definition" => %(A lexical label for a resource that should be hidden when generating visual displays of the resource, but should still be accessible to free text search operations.).freeze,
119
+ subPropertyOf: "rdfs:label".freeze,
120
+ type: "owl:AnnotationProperty".freeze
121
+ property :historyNote,
122
+ label: "history note".freeze,
123
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
124
+ "skos:definition" => %(A note about the past state/use/meaning of a concept.).freeze,
125
+ subPropertyOf: "skos:note".freeze,
126
+ type: "owl:AnnotationProperty".freeze
127
+ property :inScheme,
128
+ label: "is in scheme".freeze,
129
+ range: "skos:ConceptScheme".freeze,
130
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
131
+ "skos:definition" => %(Relates a resource \(for example a concept\) to a concept scheme in which it is included.).freeze,
132
+ "skos:scopeNote" => %(A concept may be a member of more than one concept scheme.).freeze,
133
+ type: "owl:ObjectProperty".freeze
134
+ property :mappingRelation,
135
+ comment: %(These concept mapping relations mirror semantic relations, and the data model defined below is similar \(with the exception of skos:exactMatch\) to the data model defined for semantic relations. A distinct vocabulary is provided for concept mapping relations, to provide a convenient way to differentiate links within a concept scheme from links between concept schemes. However, this pattern of usage is not a formal requirement of the SKOS data model, and relies on informal definitions of best practice.).freeze,
136
+ label: "is in mapping relation with".freeze,
137
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
138
+ "skos:definition" => %(Relates two concepts coming, by convention, from different schemes, and that have comparable meanings).freeze,
139
+ subPropertyOf: "skos:semanticRelation".freeze,
140
+ type: "owl:ObjectProperty".freeze
141
+ property :member,
142
+ domain: "skos:Collection".freeze,
143
+ label: "has member".freeze,
144
+ range: "_:g2188755580".freeze,
145
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
146
+ "skos:definition" => %(Relates a collection to one of its members.).freeze,
147
+ type: "owl:ObjectProperty".freeze
148
+ property :memberList,
149
+ comment: %(For any resource, every item in the list given as the value of the
150
+ skos:memberList property is also a value of the skos:member property.).freeze,
151
+ domain: "skos:OrderedCollection".freeze,
152
+ label: "has member list".freeze,
153
+ range: "rdf:List".freeze,
154
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
155
+ "skos:definition" => %(Relates an ordered collection to the RDF list containing its members.).freeze,
156
+ type: "owl:ObjectProperty".freeze
157
+ property :narrowMatch,
158
+ label: "has narrower match".freeze,
159
+ "owl:inverseOf" => %(skos:broadMatch).freeze,
160
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
161
+ "skos:definition" => %(skos:narrowMatch is used to state a hierarchical mapping link between two conceptual resources in different concept schemes.).freeze,
162
+ subPropertyOf: "skos:mappingRelation".freeze,
163
+ type: "owl:ObjectProperty".freeze
164
+ property :narrower,
165
+ comment: %(Narrower concepts are typically rendered as children in a concept hierarchy \(tree\).).freeze,
166
+ label: "has narrower".freeze,
167
+ "owl:inverseOf" => %(skos:broader).freeze,
168
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
169
+ "skos:definition" => %(Relates a concept to a concept that is more specific in meaning.).freeze,
170
+ "skos:scopeNote" => %(By convention, skos:broader is only used to assert an immediate \(i.e. direct\) hierarchical link between two conceptual resources.).freeze,
171
+ subPropertyOf: "skos:narrowerTransitive".freeze,
172
+ type: "owl:ObjectProperty".freeze
173
+ property :narrowerTransitive,
174
+ label: "has narrower transitive".freeze,
175
+ "owl:inverseOf" => %(skos:broaderTransitive).freeze,
176
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
177
+ "skos:definition" => %(skos:narrowerTransitive is a transitive superproperty of skos:narrower.).freeze,
178
+ "skos:scopeNote" => %(By convention, skos:narrowerTransitive is not used to make assertions. Rather, the properties can be used to draw inferences about the transitive closure of the hierarchical relation, which is useful e.g. when implementing a simple query expansion algorithm in a search application.).freeze,
179
+ subPropertyOf: "skos:semanticRelation".freeze,
180
+ type: "owl:ObjectProperty".freeze
181
+ property :notation,
182
+ label: "notation".freeze,
183
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
184
+ "skos:definition" => %(A notation, also known as classification code, is a string of characters such as "T58.5" or "303.4833" used to uniquely identify a concept within the scope of a given concept scheme.).freeze,
185
+ "skos:scopeNote" => %(By convention, skos:notation is used with a typed literal in the object position of the triple.).freeze,
186
+ type: "owl:DatatypeProperty".freeze
187
+ property :note,
188
+ label: "note".freeze,
189
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
190
+ "skos:definition" => %(A general note, for any purpose.).freeze,
191
+ "skos:scopeNote" => %(This property may be used directly, or as a super-property for more specific note types.).freeze,
192
+ type: "owl:AnnotationProperty".freeze
193
+ property :prefLabel,
194
+ comment: %(A resource has no more than one value of skos:prefLabel per language tag, and no more than one value of skos:prefLabel without language tag.).freeze,
195
+ label: "preferred label".freeze,
196
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
197
+ "skos:definition" => %(The preferred lexical label for a resource, in a given language.).freeze,
198
+ subPropertyOf: "rdfs:label".freeze,
199
+ type: "owl:AnnotationProperty".freeze
200
+ property :related,
201
+ comment: %(skos:related is disjoint with skos:broaderTransitive).freeze,
202
+ label: "has related".freeze,
203
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
204
+ "skos:definition" => %(Relates a concept to a concept with which there is an associative semantic relationship.).freeze,
205
+ subPropertyOf: "skos:semanticRelation".freeze,
206
+ type: "owl:ObjectProperty".freeze
207
+ property :relatedMatch,
208
+ label: "has related match".freeze,
209
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
210
+ "skos:definition" => %(skos:relatedMatch is used to state an associative mapping link between two conceptual resources in different concept schemes.).freeze,
211
+ subPropertyOf: "skos:mappingRelation".freeze,
212
+ type: "owl:ObjectProperty".freeze
213
+ property :scopeNote,
214
+ label: "scope note".freeze,
215
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
216
+ "skos:definition" => %(A note that helps to clarify the meaning and/or the use of a concept.).freeze,
217
+ subPropertyOf: "skos:note".freeze,
218
+ type: "owl:AnnotationProperty".freeze
219
+ property :semanticRelation,
220
+ domain: "skos:Concept".freeze,
221
+ label: "is in semantic relation with".freeze,
222
+ range: "skos:Concept".freeze,
223
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
224
+ "skos:definition" => %(Links a concept to a concept related by meaning.).freeze,
225
+ "skos:scopeNote" => %(This property should not be used directly, but as a super-property for all properties denoting a relationship of meaning between concepts.).freeze,
226
+ type: "owl:ObjectProperty".freeze
227
+ property :topConceptOf,
228
+ domain: "skos:Concept".freeze,
229
+ label: "is top concept in scheme".freeze,
230
+ "owl:inverseOf" => %(skos:hasTopConcept).freeze,
231
+ range: "skos:ConceptScheme".freeze,
232
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2004/02/skos/core).freeze,
233
+ "skos:definition" => %(Relates a concept to the concept scheme that it is a top level concept of.).freeze,
234
+ subPropertyOf: "skos:inScheme".freeze,
235
+ type: "owl:ObjectProperty".freeze
143
236
  end
144
237
  end
@@ -1,43 +1,57 @@
1
+ # -*- encoding: utf-8 -*-
1
2
  # This file generated automatically using vocab-fetch from http://www.w3.org/TR/skos-reference/skos-xl.rdf
2
3
  require 'rdf'
3
4
  module RDF
4
5
  class SKOSXL < StrictVocabulary("http://www.w3.org/2008/05/skos-xl#")
5
6
 
6
7
  # Class definitions
7
- property :Label, :label => 'Label'
8
+ term :Label,
9
+ label: "Label".freeze,
10
+ "owl:disjointWith" => %(skos:Concept).freeze,
11
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2008/05/skos-xl).freeze,
12
+ "skos:definition" => %(A special class of lexical entities.).freeze,
13
+ subClassOf: "_:g2206598300".freeze,
14
+ type: "owl:Class".freeze
8
15
 
9
16
  # Property definitions
10
- property :altLabel, :label => 'alternative label', :comment =>
11
- %(If C skosxl:altLabel L and L skosxl:literalForm V, then X
12
- skos:altLabel V.)
13
- property :hiddenLabel, :label => 'hidden label', :comment =>
14
- %(If C skosxl:hiddenLabel L and L skosxl:literalForm V, then C
15
- skos:hiddenLabel V.)
16
- property :labelRelation, :label => 'label relation'
17
- property :literalForm, :label => 'literal form', :comment =>
18
- %(If two instances of the class skosxl:Label have the same
19
- literal form, they are not necessarily the same resource.)
20
- property :literalForm, :label => 'literal form', :comment =>
21
- %(The range of skosxl:literalForm is the class of RDF plain
22
- literals.)
23
- property :prefLabel, :label => 'preferred label', :comment =>
24
- %(If C skosxl:prefLabel L and L skosxl:literalForm V, then X
25
- skos:prefLabel V.)
26
- property :literalForm, :label => 'literal form', :comment =>
27
- %(If two instances of the class skosxl:Label have the same
28
- literal form, they are not necessarily the same resource.)
29
- property :literalForm, :label => 'literal form', :comment =>
30
- %(The range of skosxl:literalForm is the class of RDF plain
31
- literals.)
32
- property :altLabel, :label => 'alternative label', :comment =>
33
- %(If C skosxl:altLabel L and L skosxl:literalForm V, then X
34
- skos:altLabel V.)
35
- property :hiddenLabel, :label => 'hidden label', :comment =>
36
- %(If C skosxl:hiddenLabel L and L skosxl:literalForm V, then C
37
- skos:hiddenLabel V.)
38
- property :labelRelation, :label => 'label relation'
39
- property :prefLabel, :label => 'preferred label', :comment =>
40
- %(If C skosxl:prefLabel L and L skosxl:literalForm V, then X
41
- skos:prefLabel V.)
17
+ property :altLabel,
18
+ comment: %(If C skosxl:altLabel L and L skosxl:literalForm V, then X skos:altLabel V.).freeze,
19
+ label: "alternative label".freeze,
20
+ range: "skosxl:Label".freeze,
21
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2008/05/skos-xl).freeze,
22
+ "rdfs:seeAlso" => %(skos:altLabel).freeze,
23
+ "skos:definition" => %(The property skosxl:altLabel is used to associate an skosxl:Label with a skos:Concept. The property is analogous to skos:altLabel.).freeze,
24
+ type: "owl:ObjectProperty".freeze
25
+ property :hiddenLabel,
26
+ comment: %(If C skosxl:hiddenLabel L and L skosxl:literalForm V, then C skos:hiddenLabel V.).freeze,
27
+ label: "hidden label".freeze,
28
+ range: "skosxl:Label".freeze,
29
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2008/05/skos-xl).freeze,
30
+ "rdfs:seeAlso" => %(skos:hiddenLabel).freeze,
31
+ "skos:definition" => %(The property skosxl:hiddenLabel is used to associate an skosxl:Label with a skos:Concept. The property is analogous to skos:hiddenLabel.).freeze,
32
+ type: "owl:ObjectProperty".freeze
33
+ property :labelRelation,
34
+ domain: "skosxl:Label".freeze,
35
+ label: "label relation".freeze,
36
+ range: "skosxl:Label".freeze,
37
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2008/05/skos-xl).freeze,
38
+ "skos:definition" => %(The property skosxl:labelRelation is used for representing binary \('direct'\) relations between instances of the class skosxl:Label.).freeze,
39
+ "skos:scopeNote" => %(skosxl:labelRelation is not intended to be used directly, but rather as the basis for a design pattern which can be refined for more specific labeling scenarios.).freeze,
40
+ type: "owl:ObjectProperty".freeze
41
+ property :literalForm,
42
+ comment: %(If two instances of the class skosxl:Label have the same literal form, they are not necessarily the same resource.).freeze,
43
+ domain: "skosxl:Label".freeze,
44
+ label: "literal form".freeze,
45
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2008/05/skos-xl).freeze,
46
+ "skos:definition" => %(The property skosxl:literalForm is used to give the literal form of an skosxl:Label.).freeze,
47
+ type: "owl:DatatypeProperty".freeze
48
+ property :prefLabel,
49
+ comment: %(If C skosxl:prefLabel L and L skosxl:literalForm V, then X skos:prefLabel V.).freeze,
50
+ label: "preferred label".freeze,
51
+ range: "skosxl:Label".freeze,
52
+ "rdfs:isDefinedBy" => %(http://www.w3.org/2008/05/skos-xl).freeze,
53
+ "rdfs:seeAlso" => %(skos:prefLabel).freeze,
54
+ "skos:definition" => %(The property skosxl:prefLabel is used to associate an skosxl:Label with a skos:Concept. The property is analogous to skos:prefLabel.).freeze,
55
+ type: "owl:ObjectProperty".freeze
42
56
  end
43
57
  end