rdf 3.1.10 → 3.1.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,6 @@ module RDF
7
7
  # # Vocabulary for <http://www.w3.org/2000/01/rdf-schema#>
8
8
  # #
9
9
  # # The RDF Schema vocabulary (RDFS)
10
- # # @see http://www.w3.org/2000/01/rdf-schema-more
11
10
  # class RDFS < RDF::StrictVocabulary
12
11
  # # The class of classes.
13
12
  # # @return [RDF::Vocabulary::Term]
@@ -74,112 +73,111 @@ module RDF
74
73
 
75
74
  # Ontology definition
76
75
  ontology :"http://www.w3.org/2000/01/rdf-schema#",
77
- "dc11:title": "The RDF Schema vocabulary (RDFS)".freeze,
78
- "rdfs:seeAlso": "http://www.w3.org/2000/01/rdf-schema-more".freeze,
79
- type: "owl:Ontology".freeze
76
+ "http://purl.org/dc/elements/1.1/title": "The RDF Schema vocabulary (RDFS)".freeze,
77
+ "http://www.w3.org/2000/01/rdf-schema#seeAlso": "http://www.w3.org/2000/01/rdf-schema-more".freeze,
78
+ type: "http://www.w3.org/2002/07/owl#Ontology".freeze
80
79
 
81
80
  # Class definitions
82
81
  term :Class,
83
- comment: %(The class of classes.).freeze,
84
- isDefinedBy: "rdfs:".freeze,
82
+ comment: "The class of classes.".freeze,
83
+ isDefinedBy: "http://www.w3.org/2000/01/rdf-schema#".freeze,
85
84
  label: "Class".freeze,
86
- subClassOf: "rdfs:Resource".freeze,
87
- type: "rdfs:Class".freeze
85
+ subClassOf: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
86
+ type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
88
87
  term :Container,
89
- comment: %(The class of RDF containers.).freeze,
90
- isDefinedBy: "rdfs:".freeze,
88
+ comment: "The class of RDF containers.".freeze,
89
+ isDefinedBy: "http://www.w3.org/2000/01/rdf-schema#".freeze,
91
90
  label: "Container".freeze,
92
- subClassOf: "rdfs:Resource".freeze,
93
- type: "rdfs:Class".freeze
91
+ subClassOf: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
92
+ type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
94
93
  term :ContainerMembershipProperty,
95
- comment: %(The class of container membership properties, rdf:_1, rdf:_2, ...,
96
- all of which are sub-properties of 'member'.).freeze,
97
- isDefinedBy: "rdfs:".freeze,
94
+ comment: "The class of container membership properties, rdf:_1, rdf:_2, ...,\n all of which are sub-properties of 'member'.".freeze,
95
+ isDefinedBy: "http://www.w3.org/2000/01/rdf-schema#".freeze,
98
96
  label: "ContainerMembershipProperty".freeze,
99
- subClassOf: "rdf:Property".freeze,
100
- type: "rdfs:Class".freeze
97
+ subClassOf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze,
98
+ type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
101
99
  term :Datatype,
102
- comment: %(The class of RDF datatypes.).freeze,
103
- isDefinedBy: "rdfs:".freeze,
100
+ comment: "The class of RDF datatypes.".freeze,
101
+ isDefinedBy: "http://www.w3.org/2000/01/rdf-schema#".freeze,
104
102
  label: "Datatype".freeze,
105
- subClassOf: "rdfs:Class".freeze,
106
- type: "rdfs:Class".freeze
103
+ subClassOf: "http://www.w3.org/2000/01/rdf-schema#Class".freeze,
104
+ type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
107
105
  term :Literal,
108
- comment: %(The class of literal values, eg. textual strings and integers.).freeze,
109
- isDefinedBy: "rdfs:".freeze,
106
+ comment: "The class of literal values, eg. textual strings and integers.".freeze,
107
+ isDefinedBy: "http://www.w3.org/2000/01/rdf-schema#".freeze,
110
108
  label: "Literal".freeze,
111
- subClassOf: "rdfs:Resource".freeze,
112
- type: "rdfs:Class".freeze
109
+ subClassOf: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
110
+ type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
113
111
  term :Resource,
114
- comment: %(The class resource, everything.).freeze,
115
- isDefinedBy: "rdfs:".freeze,
112
+ comment: "The class resource, everything.".freeze,
113
+ isDefinedBy: "http://www.w3.org/2000/01/rdf-schema#".freeze,
116
114
  label: "Resource".freeze,
117
- type: "rdfs:Class".freeze
115
+ type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
118
116
 
119
117
  # Property definitions
120
118
  property :comment,
121
- comment: %(A description of the subject resource.).freeze,
122
- domain: "rdfs:Resource".freeze,
123
- isDefinedBy: "rdfs:".freeze,
119
+ comment: "A description of the subject resource.".freeze,
120
+ domain: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
121
+ isDefinedBy: "http://www.w3.org/2000/01/rdf-schema#".freeze,
124
122
  label: "comment".freeze,
125
- range: "rdfs:Literal".freeze,
126
- type: "rdf:Property".freeze
123
+ range: "http://www.w3.org/2000/01/rdf-schema#Literal".freeze,
124
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
127
125
  property :domain,
128
- comment: %(A domain of the subject property.).freeze,
129
- domain: "rdf:Property".freeze,
130
- isDefinedBy: "rdfs:".freeze,
126
+ comment: "A domain of the subject property.".freeze,
127
+ domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze,
128
+ isDefinedBy: "http://www.w3.org/2000/01/rdf-schema#".freeze,
131
129
  label: "domain".freeze,
132
- range: "rdfs:Class".freeze,
133
- type: "rdf:Property".freeze
130
+ range: "http://www.w3.org/2000/01/rdf-schema#Class".freeze,
131
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
134
132
  property :isDefinedBy,
135
- comment: %(The defininition of the subject resource.).freeze,
136
- domain: "rdfs:Resource".freeze,
137
- isDefinedBy: "rdfs:".freeze,
133
+ comment: "The defininition of the subject resource.".freeze,
134
+ domain: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
135
+ isDefinedBy: "http://www.w3.org/2000/01/rdf-schema#".freeze,
138
136
  label: "isDefinedBy".freeze,
139
- range: "rdfs:Resource".freeze,
140
- subPropertyOf: "rdfs:seeAlso".freeze,
141
- type: "rdf:Property".freeze
137
+ range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
138
+ subPropertyOf: "http://www.w3.org/2000/01/rdf-schema#seeAlso".freeze,
139
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
142
140
  property :label,
143
- comment: %(A human-readable name for the subject.).freeze,
144
- domain: "rdfs:Resource".freeze,
145
- isDefinedBy: "rdfs:".freeze,
141
+ comment: "A human-readable name for the subject.".freeze,
142
+ domain: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
143
+ isDefinedBy: "http://www.w3.org/2000/01/rdf-schema#".freeze,
146
144
  label: "label".freeze,
147
- range: "rdfs:Literal".freeze,
148
- type: "rdf:Property".freeze
145
+ range: "http://www.w3.org/2000/01/rdf-schema#Literal".freeze,
146
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
149
147
  property :member,
150
- comment: %(A member of the subject resource.).freeze,
151
- domain: "rdfs:Resource".freeze,
152
- isDefinedBy: "rdfs:".freeze,
148
+ comment: "A member of the subject resource.".freeze,
149
+ domain: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
150
+ isDefinedBy: "http://www.w3.org/2000/01/rdf-schema#".freeze,
153
151
  label: "member".freeze,
154
- range: "rdfs:Resource".freeze,
155
- type: "rdf:Property".freeze
152
+ range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
153
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
156
154
  property :range,
157
- comment: %(A range of the subject property.).freeze,
158
- domain: "rdf:Property".freeze,
159
- isDefinedBy: "rdfs:".freeze,
155
+ comment: "A range of the subject property.".freeze,
156
+ domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze,
157
+ isDefinedBy: "http://www.w3.org/2000/01/rdf-schema#".freeze,
160
158
  label: "range".freeze,
161
- range: "rdfs:Class".freeze,
162
- type: "rdf:Property".freeze
159
+ range: "http://www.w3.org/2000/01/rdf-schema#Class".freeze,
160
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
163
161
  property :seeAlso,
164
- comment: %(Further information about the subject resource.).freeze,
165
- domain: "rdfs:Resource".freeze,
166
- isDefinedBy: "rdfs:".freeze,
162
+ comment: "Further information about the subject resource.".freeze,
163
+ domain: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
164
+ isDefinedBy: "http://www.w3.org/2000/01/rdf-schema#".freeze,
167
165
  label: "seeAlso".freeze,
168
- range: "rdfs:Resource".freeze,
169
- type: "rdf:Property".freeze
166
+ range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
167
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
170
168
  property :subClassOf,
171
- comment: %(The subject is a subclass of a class.).freeze,
172
- domain: "rdfs:Class".freeze,
173
- isDefinedBy: "rdfs:".freeze,
169
+ comment: "The subject is a subclass of a class.".freeze,
170
+ domain: "http://www.w3.org/2000/01/rdf-schema#Class".freeze,
171
+ isDefinedBy: "http://www.w3.org/2000/01/rdf-schema#".freeze,
174
172
  label: "subClassOf".freeze,
175
- range: "rdfs:Class".freeze,
176
- type: "rdf:Property".freeze
173
+ range: "http://www.w3.org/2000/01/rdf-schema#Class".freeze,
174
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
177
175
  property :subPropertyOf,
178
- comment: %(The subject is a subproperty of a property.).freeze,
179
- domain: "rdf:Property".freeze,
180
- isDefinedBy: "rdfs:".freeze,
176
+ comment: "The subject is a subproperty of a property.".freeze,
177
+ domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze,
178
+ isDefinedBy: "http://www.w3.org/2000/01/rdf-schema#".freeze,
181
179
  label: "subPropertyOf".freeze,
182
- range: "rdf:Property".freeze,
183
- type: "rdf:Property".freeze
180
+ range: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze,
181
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
184
182
  end
185
183
  end
@@ -137,152 +137,152 @@ module RDF
137
137
 
138
138
  # Ontology definition
139
139
  ontology :"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
140
- "dc11:description": %(This is the RDF Schema for the RDF vocabulary terms in the RDF Namespace, defined in RDF 1.1 Concepts.).freeze,
141
- "dc11:title": %(The RDF Concepts Vocabulary \(RDF\)).freeze,
140
+ "http://purl.org/dc/elements/1.1/description": %(This is the RDF Schema for the RDF vocabulary terms in the RDF Namespace, defined in RDF 1.1 Concepts.).freeze,
141
+ "http://purl.org/dc/elements/1.1/title": %(The RDF Concepts Vocabulary \(RDF\)).freeze,
142
142
  type: "owl:Ontology".freeze
143
143
 
144
144
  # Class definitions
145
145
  term :Alt,
146
146
  comment: %(The class of containers of alternatives.).freeze,
147
147
  label: "Alt".freeze,
148
- isDefinedBy: %(rdf:).freeze,
149
- subClassOf: "rdfs:Container".freeze,
150
- type: "rdfs:Class".freeze
148
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
149
+ subClassOf: "http://www.w3.org/2000/01/rdf-schema#Container".freeze,
150
+ type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
151
151
  term :Bag,
152
152
  comment: %(The class of unordered containers.).freeze,
153
153
  label: "Bag".freeze,
154
- isDefinedBy: %(rdf:).freeze,
155
- subClassOf: "rdfs:Container".freeze,
156
- type: "rdfs:Class".freeze
154
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
155
+ subClassOf: "http://www.w3.org/2000/01/rdf-schema#Container".freeze,
156
+ type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
157
157
  term :CompoundLiteral,
158
158
  comment: %(A class representing a compound literal.).freeze,
159
159
  label: "CompoundLiteral".freeze,
160
160
  isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
161
- subClassOf: "rdfs:Class".freeze,
162
- type: "rdfs:Class".freeze
161
+ subClassOf: "http://www.w3.org/2000/01/rdf-schema#Class".freeze,
162
+ type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
163
163
  term :List,
164
164
  comment: %(The class of RDF Lists.).freeze,
165
165
  label: "List".freeze,
166
- isDefinedBy: %(rdf:).freeze,
167
- subClassOf: "rdfs:Resource".freeze,
168
- type: "rdfs:Class".freeze
166
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
167
+ subClassOf: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
168
+ type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
169
169
  term :Property,
170
170
  comment: %(The class of RDF properties.).freeze,
171
171
  label: "Property".freeze,
172
- isDefinedBy: %(rdf:).freeze,
173
- subClassOf: "rdfs:Resource".freeze,
174
- type: "rdfs:Class".freeze
172
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
173
+ subClassOf: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
174
+ type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
175
175
  term :Seq,
176
176
  comment: %(The class of ordered containers.).freeze,
177
177
  label: "Seq".freeze,
178
- isDefinedBy: %(rdf:).freeze,
179
- subClassOf: "rdfs:Container".freeze,
180
- type: "rdfs:Class".freeze
178
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
179
+ subClassOf: "http://www.w3.org/2000/01/rdf-schema#Container".freeze,
180
+ type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
181
181
  term :Statement,
182
182
  comment: %(The class of RDF statements.).freeze,
183
183
  label: "Statement".freeze,
184
- isDefinedBy: %(rdf:).freeze,
185
- subClassOf: "rdfs:Resource".freeze,
186
- type: "rdfs:Class".freeze
184
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
185
+ subClassOf: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
186
+ type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
187
187
 
188
188
  # Property definitions
189
189
  property :direction,
190
190
  comment: %(The direction component of a CompoundLiteral.).freeze,
191
- domain: "rdf:CompoundLiteral".freeze,
191
+ domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#CompoundLiteral".freeze,
192
192
  label: "direction".freeze,
193
- range: "rdfs:Resource".freeze,
193
+ range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
194
194
  isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
195
- type: "rdf:Property".freeze
195
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
196
196
  property :first,
197
197
  comment: %(The first item in the subject RDF list.).freeze,
198
- domain: "rdf:List".freeze,
198
+ domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#List".freeze,
199
199
  label: "first".freeze,
200
- range: "rdfs:Resource".freeze,
201
- isDefinedBy: %(rdf:).freeze,
202
- type: "rdf:Property".freeze
200
+ range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
201
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
202
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
203
203
  property :object,
204
204
  comment: %(The object of the subject RDF statement.).freeze,
205
- domain: "rdf:Statement".freeze,
205
+ domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement".freeze,
206
206
  label: "object".freeze,
207
- range: "rdfs:Resource".freeze,
208
- isDefinedBy: %(rdf:).freeze,
209
- type: "rdf:Property".freeze
207
+ range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
208
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
209
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
210
210
  property :language,
211
211
  comment: %(The language component of a CompoundLiteral.).freeze,
212
- domain: "rdf:CompoundLiteral".freeze,
212
+ domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#CompoundLiteral".freeze,
213
213
  label: "language".freeze,
214
- range: "rdfs:Resource".freeze,
214
+ range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
215
215
  isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
216
- type: "rdf:Property".freeze
216
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
217
217
  property :predicate,
218
218
  comment: %(The predicate of the subject RDF statement.).freeze,
219
- domain: "rdf:Statement".freeze,
219
+ domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement".freeze,
220
220
  label: "predicate".freeze,
221
- range: "rdfs:Resource".freeze,
222
- isDefinedBy: %(rdf:).freeze,
223
- type: "rdf:Property".freeze
221
+ range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
222
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
223
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
224
224
  property :rest,
225
225
  comment: %(The rest of the subject RDF list after the first item.).freeze,
226
- domain: "rdf:List".freeze,
226
+ domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#List".freeze,
227
227
  label: "rest".freeze,
228
- range: "rdf:List".freeze,
229
- isDefinedBy: %(rdf:).freeze,
230
- type: "rdf:Property".freeze
228
+ range: "http://www.w3.org/1999/02/22-rdf-syntax-ns#List".freeze,
229
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
230
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
231
231
  property :subject,
232
232
  comment: %(The subject of the subject RDF statement.).freeze,
233
- domain: "rdf:Statement".freeze,
233
+ domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement".freeze,
234
234
  label: "subject".freeze,
235
- range: "rdfs:Resource".freeze,
236
- isDefinedBy: %(rdf:).freeze,
237
- type: "rdf:Property".freeze
235
+ range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
236
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
237
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
238
238
  property :type,
239
239
  comment: %(The subject is an instance of a class.).freeze,
240
- domain: "rdfs:Resource".freeze,
240
+ domain: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
241
241
  label: "type".freeze,
242
- range: "rdfs:Class".freeze,
243
- isDefinedBy: %(rdf:).freeze,
244
- type: "rdf:Property".freeze
242
+ range: "http://www.w3.org/2000/01/rdf-schema#Class".freeze,
243
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
244
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
245
245
  property :value,
246
246
  comment: %(Idiomatic property used for structured values.).freeze,
247
- domain: "rdfs:Resource".freeze,
247
+ domain: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
248
248
  label: "value".freeze,
249
- range: "rdfs:Resource".freeze,
250
- isDefinedBy: %(rdf:).freeze,
251
- type: "rdf:Property".freeze
249
+ range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
250
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
251
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
252
252
 
253
253
  # Datatype definitions
254
254
  term :HTML,
255
255
  comment: %(The datatype of RDF literals storing fragments of HTML content).freeze,
256
256
  label: "HTML".freeze,
257
- isDefinedBy: %(rdf:).freeze,
258
- "rdfs:seeAlso": %(http://www.w3.org/TR/rdf11-concepts/#section-html).freeze,
259
- subClassOf: "rdfs:Literal".freeze,
260
- type: "rdfs:Datatype".freeze
257
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
258
+ "http://www.w3.org/2000/01/rdf-schema#seeAlso": %(http://www.w3.org/TR/rdf11-concepts/#section-html).freeze,
259
+ subClassOf: "http://www.w3.org/2000/01/rdf-schema#Literal".freeze,
260
+ type: "http://www.w3.org/2000/01/rdf-schema#Datatype".freeze
261
261
  property :JSON,
262
262
  comment: %(The datatype of RDF literals storing JSON content.).freeze,
263
263
  label: "JSON".freeze,
264
264
  isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
265
- type: "rdfs:Datatype".freeze
265
+ type: "http://www.w3.org/2000/01/rdf-schema#Datatype".freeze
266
266
  term :PlainLiteral,
267
267
  comment: %(The class of plain \(i.e. untyped\) literal values, as used in RIF and OWL 2).freeze,
268
268
  label: "PlainLiteral".freeze,
269
- isDefinedBy: %(rdf:).freeze,
270
- "rdfs:seeAlso": %(http://www.w3.org/TR/rdf-plain-literal/).freeze,
271
- subClassOf: "rdfs:Literal".freeze,
272
- type: "rdfs:Datatype".freeze
269
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
270
+ "http://www.w3.org/2000/01/rdf-schema#seeAlso": %(http://www.w3.org/TR/rdf-plain-literal/).freeze,
271
+ subClassOf: "http://www.w3.org/2000/01/rdf-schema#Literal".freeze,
272
+ type: "http://www.w3.org/2000/01/rdf-schema#Datatype".freeze
273
273
  term :XMLLiteral,
274
274
  comment: %(The datatype of XML literal values.).freeze,
275
275
  label: "XMLLiteral".freeze,
276
- isDefinedBy: %(rdf:).freeze,
277
- subClassOf: "rdfs:Literal".freeze,
278
- type: "rdfs:Datatype".freeze
276
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
277
+ subClassOf: "http://www.w3.org/2000/01/rdf-schema#Literal".freeze,
278
+ type: "http://www.w3.org/2000/01/rdf-schema#Datatype".freeze
279
279
  term :langString,
280
280
  comment: %(The datatype of language-tagged string values).freeze,
281
281
  label: "langString".freeze,
282
- isDefinedBy: %(rdf:).freeze,
283
- "rdfs:seeAlso": %(http://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal).freeze,
284
- subClassOf: "rdfs:Literal".freeze,
285
- type: "rdfs:Datatype".freeze
282
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
283
+ "http://www.w3.org/2000/01/rdf-schema#seeAlso": %(http://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal).freeze,
284
+ subClassOf: "http://www.w3.org/2000/01/rdf-schema#Literal".freeze,
285
+ type: "http://www.w3.org/2000/01/rdf-schema#Datatype".freeze
286
286
 
287
287
  # Extra definitions
288
288
  term :Description,
@@ -303,8 +303,8 @@ module RDF
303
303
  term :nil,
304
304
  comment: %(The empty list, with no items in it. If the rest of a list is nil then the list has no more items in it.).freeze,
305
305
  label: "nil".freeze,
306
- isDefinedBy: %(rdf:).freeze,
307
- type: "rdf:List".freeze
306
+ isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
307
+ type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#List".freeze
308
308
  term :nodeID,
309
309
  comment: %(RDF/XML Blank Node identifier).freeze,
310
310
  label: "nodeID".freeze
@@ -65,12 +65,30 @@ module RDF
65
65
  on: ["--class-name NAME"],
66
66
  use: :required,
67
67
  description: "Name of created Ruby class (vocabulary format)."),
68
+ RDF::CLI::Option.new(
69
+ symbol: :extra,
70
+ datatype: String,
71
+ control: :none,
72
+ on: ["--extra URIEncodedJSON"],
73
+ description: "URI Encoded JSON representation of extra data"
74
+ ) do |arg|
75
+ ::JSON.parse(::CGI.unescape(arg)).inject({}) do |m1, (term, defs)|
76
+ d1 = defs.inject({}) {|m, (k,v)| m.merge(k.to_sym => v)}
77
+ m1.merge(term.to_sym => d1)
78
+ end
79
+ end,
68
80
  RDF::CLI::Option.new(
69
81
  symbol: :module_name,
70
82
  datatype: String,
71
83
  control: :text,
72
84
  on: ["--module-name NAME"],
73
85
  description: "Name of Ruby module containing class-name (vocabulary format)."),
86
+ RDF::CLI::Option.new(
87
+ symbol: :noDoc,
88
+ datatype: TrueClass,
89
+ control: :checkbox,
90
+ on: ["--noDoc"],
91
+ description: "Do not output Yard documentation."),
74
92
  RDF::CLI::Option.new(
75
93
  symbol: :strict,
76
94
  datatype: TrueClass,
@@ -78,18 +96,6 @@ module RDF
78
96
  on: ["--strict"],
79
97
  description: "Make strict vocabulary"
80
98
  ) {true},
81
- RDF::CLI::Option.new(
82
- symbol: :extra,
83
- datatype: String,
84
- control: :none,
85
- on: ["--extra URIEncodedJSON"],
86
- description: "URI Encoded JSON representation of extra data"
87
- ) do |arg|
88
- ::JSON.parse(::CGI.unescape(arg)).inject({}) do |m1, (term, defs)|
89
- d1 = defs.inject({}) {|m, (k,v)| m.merge(k.to_sym => v)}
90
- m1.merge(term.to_sym => d1)
91
- end
92
- end,
93
99
  ]
94
100
  end
95
101
 
@@ -144,30 +150,40 @@ module RDF
144
150
  # This file generated automatically using rdf vocabulary format from #{source}
145
151
  require 'rdf'
146
152
  module #{module_name}
147
- # @!parse
153
+ ).gsub(/^ /, '')
154
+
155
+ @output.print %( # @!parse
148
156
  # # Vocabulary for <#{base_uri}>
149
157
  # #
150
- ).gsub(/^ /, '')
158
+ ).gsub(/^ /, '') unless @options[:noDoc]
151
159
 
152
- if vocab.ontology
160
+ if vocab.ontology && !@options[:noDoc]
153
161
  ont_doc = []
154
- [:"dc:title", :"dc11:title", :label, :comment, :"dc:description", :"dc11:description"].each do |attr|
162
+ %i(
163
+ http://purl.org/dc/terms/title
164
+ http://purl.org/dc/elements/1.1/title
165
+ label
166
+ comment
167
+ http://purl.org/dc/terms/description
168
+ http://purl.org/dc/elements/1.1/description
169
+ ).each do |attr|
155
170
  next unless vocab.ontology.attributes[attr]
156
171
  Array(vocab.ontology.attributes[attr]).each do |v|
157
- ont_doc << " # # " + v.to_s.gsub(/\n/, ' ')
172
+ ont_doc << " # # " + v.to_s.gsub(/\s+/, ' ')
158
173
  end
159
174
  end
160
175
  @output.puts ont_doc.join("\n # #\n") unless ont_doc.empty?
161
176
  # Version Info
162
- Array(vocab.ontology.attributes[:"owl:versionInfo"]).each do |vers|
177
+ # See Also
178
+ Array(vocab.ontology.attributes[:'http://www.w3.org/2002/07/owl#versionInfo']).each do |vers|
163
179
  @output.puts " # # @version #{vers}"
164
180
  end
165
181
  # See Also
166
- Array(vocab.ontology.attributes[:"rdfs:seeAlso"]).each do |see|
182
+ Array(vocab.ontology.attributes[:'http://www.w3.org/2000/01/rdf-schema#seeAlso']).each do |see|
167
183
  @output.puts " # # @see #{see}"
168
184
  end
169
185
  end
170
- @output.puts %( # class #{class_name} < RDF::#{"Strict" if strict}Vocabulary)
186
+ @output.puts %( # class #{class_name} < RDF::#{"Strict" if strict}Vocabulary) unless @options[:noDoc]
171
187
 
172
188
  # Split nodes into Class/Property/Datatype/Other
173
189
  term_nodes = {
@@ -207,16 +223,16 @@ module RDF
207
223
  # Only document terms that can be accessed like a Ruby attribute
208
224
  next unless name.to_s.match?(/^[_[:alpha:]](?:\w*)[!?=]?$/)
209
225
  @output.puts(Array(attributes[:comment]).map do |comment|
210
- " # # #{comment.to_s.gsub(/\n/, ' ')}"
226
+ " # # #{comment.to_s.gsub(/\s+/, ' ')}"
211
227
  end.join("\n # #\n")) if attributes[:comment]
212
228
  @output.puts " # # @return [RDF::Vocabulary::Term]"
213
229
  @output.puts " # attr_reader :#{name}"
214
230
  @output.puts " #"
215
231
  end
216
- end
232
+ end unless @options[:noDoc]
217
233
 
218
234
  # End of yard preamble
219
- @output.puts " # end"
235
+ @output.puts " # end" unless @options[:noDoc]
220
236
  @output.puts %( #{class_name} = Class.new(RDF::#{"Strict" if strict}Vocabulary("#{base_uri}")) do)
221
237
 
222
238
  # Output term definitions
@@ -265,7 +281,7 @@ module RDF
265
281
  if value.is_a?(Literal) && %w(: comment definition notation note editorialNote).include?(key.to_s)
266
282
  "#{value.to_s.inspect}.freeze"
267
283
  elsif value.is_a?(RDF::URI)
268
- "#{value.pname.inspect}.freeze"
284
+ "#{value.to_s.inspect}.freeze"
269
285
  elsif value.is_a?(RDF::Vocabulary::Term)
270
286
  value.to_ruby(indent: indent + " ")
271
287
  elsif value.is_a?(RDF::Term)
@@ -273,7 +289,7 @@ module RDF
273
289
  elsif value.is_a?(RDF::List)
274
290
  list_elements = value.map do |u|
275
291
  if u.uri?
276
- "#{u.pname.inspect}.freeze"
292
+ "#{u.to_s.inspect}.freeze"
277
293
  elsif u.respond_to?(:to_ruby)
278
294
  u.to_ruby(indent: indent + " ")
279
295
  else