cul_scv_hydra 0.19.3 → 0.19.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2cd56b62d5f6c7390a56993cb09744b640b612a
4
- data.tar.gz: 37b4066a7c3f64a1258b4b5621d5fc8cdadb8caa
3
+ metadata.gz: 2791069684df390626b0db26d95406f71739ff49
4
+ data.tar.gz: 65dac8049f8e3f826d15e618e00e0d51bb5dc0e7
5
5
  SHA512:
6
- metadata.gz: d642ddb0bd78e209ad2f16b252af0bafd0ee531233f2cfa8fa4535535f6bb32412a7e88c892051e9d570fc40571d071aa1b55946bfa0a55071daa9abce84f7ae
7
- data.tar.gz: 8eec4fc5fb8d0ddde3a6e9543b86324e54a7f9ecd64627339754d024c0f44393694ca03e9f73c6b2c4937fe63f3f1f5cd23fee0145896d87193a38f5fe04b3a7
6
+ metadata.gz: 1d6e19b60e5fd650775a2ed799107d60aca4e0963f951136218b47325d1354257a3f57ac652d7e8f4b3ff3a2b552a076b5ca49e16aa1fdea7540f3ffd1ad8019
7
+ data.tar.gz: 7ed737989529e73cfa330d1eb2d1243d602efb6c03d47fd20f8ffa313a2699ce3d8523f80c74925d2f120548f6701a005ea8a1e8f23610a46cab8463f6e3191a
@@ -6,8 +6,9 @@ module Cul
6
6
  module Scv
7
7
  module Hydra
8
8
  module Models
9
- AGGREGATOR_TYPE = (URI.parse("http://purl.oclc.org/NET/CUL/Aggregator"))
10
- RESOURCE_TYPE = (URI.parse("http://purl.oclc.org/NET/CUL/Resource"))
9
+ AGGREGATOR_TYPE = RDF::CUL.Aggregator
10
+ RESOURCE_TYPE = RDF::CUL.Resource
11
+ MEMBER_OF = RDF::CUL.memberOf
11
12
  MEMBER_SPARQL = <<-SPARQL
12
13
  SELECT ?pid WHERE { ?pid <http://purl.oclc.org/NET/CUL/memberOf> <info:fedora/%PID%> }
13
14
  SPARQL
@@ -0,0 +1,74 @@
1
+ module RDF
2
+ class CUL < RDF::StrictVocabulary("http://purl.oclc.org/NET/CUL/")
3
+ term :Aggregator,
4
+ comment: %(An collection of Aggregators or Resources).freeze,
5
+ label: "Aggregator".freeze,
6
+ type: "rdfs:Class".freeze
7
+ term :Resource,
8
+ comment: %(A file-like Resource).freeze,
9
+ label: "Resource".freeze,
10
+ type: "rdfs:Class".freeze
11
+ property :hasMember,
12
+ comment: %(The object is a member of the subject Aggregator.).freeze,
13
+ domain: "http://purl.oclc.org/NET/CUL/Aggregator".freeze,
14
+ label: "hasMember".freeze,
15
+ range: ["http://purl.oclc.org/NET/CUL/Aggregator".freeze,"http://purl.oclc.org/NET/CUL/Resource".freeze],
16
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#hasMember".freeze,
17
+ type: "rdf:Property".freeze
18
+ property :memberOf,
19
+ comment: %(The subject is a member of the object Aggregator.).freeze,
20
+ domain: ["http://purl.oclc.org/NET/CUL/Aggregator".freeze,"http://purl.oclc.org/NET/CUL/Resource".freeze],
21
+ label: "memberOf".freeze,
22
+ range: "http://purl.oclc.org/NET/CUL/Aggregator".freeze,
23
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#isMemberOf".freeze,
24
+ type: "rdf:Property".freeze
25
+ property :obsoleteFrom,
26
+ comment: %(The subject is an obsolete member of the object Aggregator.).freeze,
27
+ domain: ["http://purl.oclc.org/NET/CUL/Aggregator".freeze,"http://purl.oclc.org/NET/CUL/Resource".freeze],
28
+ label: "obsoleteFrom".freeze,
29
+ range: "http://purl.oclc.org/NET/CUL/Aggregator".freeze,
30
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#isMemberOf".freeze,
31
+ type: "rdf:Property".freeze
32
+ property :metadataFor,
33
+ comment: %(The subject is an obsolete description of the object.).freeze,
34
+ domain: ["http://purl.oclc.org/NET/CUL/Aggregator".freeze,"http://purl.oclc.org/NET/CUL/Resource".freeze],
35
+ label: "metadataFor".freeze,
36
+ range: "http://purl.oclc.org/NET/CUL/Aggregator".freeze,
37
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#isMetadataFor".freeze,
38
+ type: "rdf:Property".freeze
39
+ module RESOURCE
40
+ module STILLIMAGE
41
+ class BASIC < RDF::StrictVocabulary("http://purl.oclc.org/NET/CUL/RESOURCE/STILLIMAGE/BASIC/")
42
+ property :imageWidth,
43
+ label: "imageWidth",
44
+ type: "rdf:Property".freeze
45
+ property :imageLength,
46
+ label: "imageLength",
47
+ type: "rdf:Property".freeze
48
+ end
49
+ class ASSESSMENT < RDF::StrictVocabulary("http://purl.oclc.org/NET/CUL/RESOURCE/STILLIMAGE/ASSESSMENT/")
50
+ property :xSamplingFrequency,
51
+ label: "xSamplingFrequency",
52
+ type: "rdf:Property".freeze
53
+ property :ySamplingFrequency,
54
+ label: "ySamplingFrequency",
55
+ type: "rdf:Property".freeze
56
+ property :samplingFrequencyUnit,
57
+ label: "samplingFrequencyUnit",
58
+ type: "rdf:Property".freeze
59
+ end
60
+ end
61
+ end
62
+ # An addition to FOAF used locally at CUL
63
+ class FOAF < RDF::StrictVocabulary("http://xmlns.com/foaf/0.1/")
64
+ property :zoomingImage,
65
+ comment: %(A derived zoomable image.).freeze,
66
+ domain: "foaf:Image".freeze,
67
+ label: "zoomingImage".freeze,
68
+ range: "foaf:Image".freeze,
69
+ "rdfs:isDefinedBy" => %(foaf:).freeze,
70
+ type: ["rdf:Property".freeze, "owl:ObjectProperty".freeze],
71
+ "vs:term_status" => %(testing).freeze
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,304 @@
1
+ # -*- encoding: utf-8 -*-
2
+ # This file generated automatically using vocab-fetch from github.com:fcrepo3/fcrepo/master/fcrepo-server/src/main/resources/rdfs/fedora_relsext_ontology.rdfs
3
+ # and edited for clarity and additional terms published in different serializations of the voabularies
4
+ require 'rdf'
5
+ module RDF
6
+ module FCREPO3
7
+ class SYSTEM < RDF::StrictVocabulary("info:fedora/fedora-system:")
8
+ term :"FedoraObject-3.0",
9
+ comment: %(Base Fedora 3 Object cModel).freeze,
10
+ label: "Fedora 3 Object".freeze,
11
+ subClassOf: "rdfs:Resource".freeze,
12
+ type: "rdfs:Class".freeze
13
+ term :"ServiceDefinition-3.0",
14
+ comment: %(Fedora 3 Service Definition/BDef cModel).freeze,
15
+ label: "Fedora 3 Service Definition".freeze,
16
+ subClassOf: "rdfs:Resource".freeze,
17
+ type: "rdfs:Class".freeze
18
+ term :"ServiceDeployment-3.0",
19
+ comment: %(Fedora 3 Service Deployment/BMech cModel).freeze,
20
+ label: "Fedora 3 Service Deployment".freeze,
21
+ subClassOf: "rdfs:Resource".freeze,
22
+ type: "rdfs:Class".freeze
23
+ end
24
+ class MODEL < RDF::StrictVocabulary("info:fedora/fedora-system:def/model#")
25
+ # Class definitions
26
+ term :FedoraObject,
27
+ comment: %().freeze,
28
+ label: "".freeze,
29
+ subClassOf: "rdfs:Resource".freeze,
30
+ type: "rdfs:Class".freeze
31
+ term :State,
32
+ comment: %().freeze,
33
+ label: "".freeze,
34
+ subClassOf: "rdfs:Resource".freeze,
35
+ type: "rdfs:Class".freeze
36
+ term :Active,
37
+ comment: %().freeze,
38
+ label: "".freeze,
39
+ subClassOf: "rdfs:Resource".freeze,
40
+ type: "info:fedora/fedora-system:def/model#State".freeze
41
+ term :Deleted,
42
+ comment: %().freeze,
43
+ label: "".freeze,
44
+ subClassOf: "rdfs:Resource".freeze,
45
+ type: "info:fedora/fedora-system:def/model#State".freeze
46
+ term :Inactive,
47
+ comment: %().freeze,
48
+ label: "".freeze,
49
+ subClassOf: "rdfs:Resource".freeze,
50
+ type: "info:fedora/fedora-system:def/model#State".freeze
51
+ # Property definitions
52
+ property :altIds,
53
+ comment: %(The alternate IDs for a datastream).freeze,
54
+ label: "Alternate IDs".freeze,
55
+ type: "rdf:Property".freeze
56
+ property :controlGroup,
57
+ comment: %().freeze,
58
+ label: "".freeze,
59
+ type: "rdf:Property".freeze
60
+ property :createdDate,
61
+ comment: %().freeze,
62
+ label: "".freeze,
63
+ type: "rdf:Property".freeze
64
+ property :definesMethod,
65
+ comment: %().freeze,
66
+ label: "".freeze,
67
+ type: "rdf:Property".freeze
68
+ property :digest,
69
+ comment: %().freeze,
70
+ label: "".freeze,
71
+ type: "rdf:Property".freeze
72
+ property :digestType,
73
+ comment: %().freeze,
74
+ label: "".freeze,
75
+ type: "rdf:Property".freeze
76
+ property :downloadFilename,
77
+ comment: %().freeze,
78
+ label: "".freeze,
79
+ type: "rdf:Property".freeze
80
+ property :extProperty,
81
+ comment: %().freeze,
82
+ label: "".freeze,
83
+ type: "rdf:Property".freeze
84
+ property :formatURI,
85
+ comment: %().freeze,
86
+ label: "".freeze,
87
+ type: "rdf:Property".freeze
88
+ property :hasModel,
89
+ comment: %().freeze,
90
+ label: "".freeze,
91
+ type: "rdf:Property".freeze
92
+ property :hasService,
93
+ comment: %().freeze,
94
+ label: "".freeze,
95
+ type: "rdf:Property".freeze
96
+ property :isContractorOf,
97
+ comment: %().freeze,
98
+ label: "".freeze,
99
+ type: "rdf:Property".freeze
100
+ property :isDeploymentOf,
101
+ comment: %().freeze,
102
+ label: "".freeze,
103
+ type: "rdf:Property".freeze
104
+ property :label,
105
+ comment: %().freeze,
106
+ label: "".freeze,
107
+ type: "rdf:Property".freeze
108
+ property :length,
109
+ comment: %().freeze,
110
+ label: "".freeze,
111
+ type: "rdf:Property".freeze
112
+ property :ownerId,
113
+ comment: %().freeze,
114
+ label: "".freeze,
115
+ type: "rdf:Property".freeze
116
+ property :state,
117
+ comment: %().freeze,
118
+ label: "".freeze,
119
+ type: "rdf:Property".freeze
120
+ property :versionable,
121
+ comment: %().freeze,
122
+ label: "".freeze,
123
+ type: "rdf:Property".freeze
124
+ end
125
+ class RELSEXT < RDF::StrictVocabulary("info:fedora/fedora-system:def/relations-external#")
126
+
127
+ # Property definitions
128
+ property :fedoraRelationship,
129
+ comment: %(The primitive property for all object-to-object relationships in the fedora ontology).freeze,
130
+ label: "Fedora Relationship".freeze,
131
+ type: "rdf:Property".freeze
132
+ property :hasAnnotation,
133
+ comment: %(A refinement of the generic descriptive relationship indicating a commentary relationship between fedora objects. The subject is a fedora object that is being commented on and the predicate is a fedora object that represents an annotation or comment about the subject. ).freeze,
134
+ label: "Has Annotation".freeze,
135
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#hasDescription".freeze,
136
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isAnnotationOf).freeze,
137
+ type: "rdf:Property".freeze
138
+ property :hasCollectionMember,
139
+ label: "Has Collection Member".freeze,
140
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#hasMember".freeze,
141
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isMemberOfCollection).freeze,
142
+ type: "rdf:Property".freeze
143
+ property :hasConstituent,
144
+ label: "Has Constituent".freeze,
145
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#hasPart".freeze,
146
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isConstituentOf).freeze,
147
+ type: "rdf:Property".freeze
148
+ property :hasDependent,
149
+ label: "Has Dependent".freeze,
150
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
151
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isDependentOf).freeze,
152
+ type: "rdf:Property".freeze
153
+ property :hasDerivation,
154
+ label: "Has Derivation".freeze,
155
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
156
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isDerivationOf).freeze,
157
+ type: "rdf:Property".freeze
158
+ property :hasDescription,
159
+ comment: %(A generic descriptive relationship between fedora objects. The subject is a fedora object that is being described in some manner and the predicate is a fedora object that represents a descriptive entity that is about the subject. ).freeze,
160
+ label: "Has Description".freeze,
161
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
162
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isDescriptionOf).freeze,
163
+ type: "rdf:Property".freeze
164
+ property :hasEquivalent,
165
+ label: "Has Equivalent".freeze,
166
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
167
+ type: "rdf:Property".freeze
168
+ property :hasMember,
169
+ label: "Has Member".freeze,
170
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#hasPart/".freeze,
171
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isMemberOf).freeze,
172
+ type: "rdf:Property".freeze
173
+ property :hasMetadata,
174
+ comment: %(A refinement of the generic descriptive relationship indicating a metadata relationship between fedora objects. The subject is a fedora object and the predicate is a fedora object that represents metadata about the subject. ).freeze,
175
+ label: "Has Metadata".freeze,
176
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#hasDescription".freeze,
177
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isMetadataFor).freeze,
178
+ type: "rdf:Property".freeze
179
+ property :hasPart,
180
+ label: "Has Part".freeze,
181
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
182
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isPartOf).freeze,
183
+ type: "rdf:Property".freeze
184
+ property :hasSubset,
185
+ label: "Has Subset".freeze,
186
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#hasMember".freeze,
187
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#isSubsetOf).freeze,
188
+ type: "rdf:Property".freeze
189
+ property :isAnnotationOf,
190
+ comment: %(A refinement of the generic descriptive relationship indicating a commentary relationship between fedora objects. The subject is a fedora object that represents an annotation or comment and the predicate is a fedora object that is being commented upon by the subject.).freeze,
191
+ label: "Is Annotation Of".freeze,
192
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#isDescriptionOf".freeze,
193
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasAnnotation).freeze,
194
+ type: "rdf:Property".freeze
195
+ property :isConstituentOf,
196
+ label: "Is Constituent Of".freeze,
197
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#isPartOf".freeze,
198
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasConstituent).freeze,
199
+ type: "rdf:Property".freeze
200
+ property :isDependentOf,
201
+ label: "Is Dependent Of".freeze,
202
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
203
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasDependent).freeze,
204
+ type: "rdf:Property".freeze
205
+ property :isDerivationOf,
206
+ label: "Is Derivation Of".freeze,
207
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
208
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasDerivation).freeze,
209
+ type: "rdf:Property".freeze
210
+ property :isDescriptionOf,
211
+ comment: %(A generic descriptive relationship between fedora objects. The subject is a fedora object that represents a descriptive entity and the predicate is a fedora object that is being described in some manner by the subject.).freeze,
212
+ label: "Is Description Of".freeze,
213
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
214
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasDescription).freeze,
215
+ type: "rdf:Property".freeze
216
+ property :isMemberOf,
217
+ label: "Is Member Of".freeze,
218
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#isPartOf".freeze,
219
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasMember).freeze,
220
+ type: "rdf:Property".freeze
221
+ property :isMemberOfCollection,
222
+ label: "Is Member Of Collection".freeze,
223
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#isMemberOf".freeze,
224
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasCollectionMember).freeze,
225
+ type: "rdf:Property".freeze
226
+ property :isMetadataFor,
227
+ comment: %(A refinement of the generic descriptive relationship indicating a metadata relationship between fedora objects. The subject is a fedora object that represents metadata and the predicate is a fedora object for which the subject serves as metadata.).freeze,
228
+ label: "Is Metadata For".freeze,
229
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#isDescriptionOf".freeze,
230
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasMetadata).freeze,
231
+ type: "rdf:Property".freeze
232
+ property :isPartOf,
233
+ label: "Is Part Of".freeze,
234
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#fedoraRelationship".freeze,
235
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasPart).freeze,
236
+ type: "rdf:Property".freeze
237
+ property :isSubsetOf,
238
+ label: "Is Subset Of".freeze,
239
+ subPropertyOf: "info:fedora/fedora-system:def/relations-external#isMemberOf".freeze,
240
+ "owl:inverseOf" => %(info:fedora/fedora-system:def/relations-external#hasSubset).freeze,
241
+ type: "rdf:Property".freeze
242
+ end
243
+ class VIEW < RDF::StrictVocabulary("info:fedora/fedora-system:def/view#")
244
+ property :disseminates,
245
+ comment: %().freeze,
246
+ label: "".freeze,
247
+ type: "rdf:Property".freeze
248
+ property :disseminationType,
249
+ comment: %().freeze,
250
+ label: "".freeze,
251
+ type: "rdf:Property".freeze
252
+ property :isVolatile,
253
+ comment: %().freeze,
254
+ label: "".freeze,
255
+ type: "rdf:Property".freeze
256
+ property :lastModifiedDate,
257
+ comment: %().freeze,
258
+ label: "".freeze,
259
+ type: "rdf:Property".freeze
260
+ property :mimeType,
261
+ comment: %().freeze,
262
+ label: "".freeze,
263
+ type: "rdf:Property".freeze
264
+ property :version,
265
+ comment: %().freeze,
266
+ label: "".freeze,
267
+ type: "rdf:Property".freeze
268
+ end
269
+ end
270
+ class MULGARA < RDF::StrictVocabulary("http://mulgara.org/mulgara#")
271
+ property :after,
272
+ comment: %().freeze,
273
+ label: "".freeze,
274
+ type: "rdf:Property".freeze
275
+ property :before,
276
+ comment: %().freeze,
277
+ label: "".freeze,
278
+ type: "rdf:Property".freeze
279
+ property :gt,
280
+ comment: %().freeze,
281
+ label: "".freeze,
282
+ type: "rdf:Property".freeze
283
+ property :lt,
284
+ comment: %().freeze,
285
+ label: "".freeze,
286
+ type: "rdf:Property".freeze
287
+ property :is,
288
+ comment: %().freeze,
289
+ label: "".freeze,
290
+ type: "rdf:Property".freeze
291
+ property :notOccurs,
292
+ comment: %().freeze,
293
+ label: "".freeze,
294
+ type: "rdf:Property".freeze
295
+ property :occursLessThan,
296
+ comment: %().freeze,
297
+ label: "".freeze,
298
+ type: "rdf:Property".freeze
299
+ property :occursMoreThan,
300
+ comment: %().freeze,
301
+ label: "".freeze,
302
+ type: "rdf:Property".freeze
303
+ end
304
+ end