rdf-fcrepo4 0.0.4 → 0.0.5

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: 26c8c49ea9fb6761888aef550fb3859798f77676
4
- data.tar.gz: 0593e3186abc3df47a92e9b32741e0fe100e47ba
3
+ metadata.gz: 01f1ac5e55dd002815461a334bda6bb452f64d70
4
+ data.tar.gz: 0c26121fcab3e71d9bb7d52791a133f83ac40ab9
5
5
  SHA512:
6
- metadata.gz: 577bd57779f8ff87b0220971454a27ac0c25c412d3d3ad407f42cf2ebaec57a50d82908d1c5115ee0ec0e0dee5cf751f94a26b6c3bc516ace8631de20d8583d3
7
- data.tar.gz: 835fa8c454ee3438422b0dbeb0d45f74e35699c2aae0b8371dc63e5707f4bb19e273adc63f03ed6fcec70f5b20d7e9e5f0e2cebdc93e528cc39f5fe251360e25
6
+ metadata.gz: 44c7e070005dcefb88ac875fa0459c8ebaa776f562259f3c3eabf8c243a87b390ed957aef04fb3902345f4f4c3cf3ea789de03df7932247db3c7a9e7bcb4ffcb
7
+ data.tar.gz: e738029d988f54a20d4bb81368109a8289fc34fddf9dea999d8c4490bd086cac84cae21824a87e8c963f1fb207d1c30a2e73ea9b9fc02496c6447f4830db65e3
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
+ /.ruby-version
3
4
  /Gemfile.lock
4
5
  /_yardoc/
5
6
  /coverage/
@@ -1 +1 @@
1
- VERSION = "0.0.4"
1
+ VERSION = "0.0.5"
@@ -1,288 +1,288 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # This file generated automatically using vocab-fetch from http://fedora.info/definitions/v4/repository
2
+ # This file generated automatically using vocab-fetch from http://fedora.info/definitions/v4/repository#
3
3
  require 'rdf'
4
4
  module RDF
5
- class FCRepo4 < RDF::StrictVocabulary("http://fedora.info/definitions/v4/repository")
5
+ class FCRepo4 < RDF::StrictVocabulary("http://fedora.info/definitions/v4/repository#")
6
6
 
7
7
  # Class definitions
8
- term :"#AnnotatedResource",
8
+ term :AnnotatedResource,
9
9
  comment: %(A Resource that maintains properties in its own right.).freeze,
10
10
  label: "annotated resource".freeze,
11
11
  subClassOf: "http://fedora.info/definitions/v4/repository#Resource".freeze,
12
12
  type: "owl:Class".freeze
13
- term :"#Content",
13
+ term :Content,
14
14
  comment: %(A bitstream, with no further data properties.).freeze,
15
15
  label: "Content".freeze,
16
16
  "owl:disjointWith" => [%(http://fedora.info/definitions/v4/repository#Datastream).freeze, %(http://fedora.info/definitions/v4/repository#Object).freeze],
17
17
  subClassOf: "http://fedora.info/definitions/v4/repository#Resource".freeze,
18
18
  type: "owl:Class".freeze
19
- term :"#Datastream",
19
+ term :Datastream,
20
20
  comment: %(A container for a bitstream and associated properties.).freeze,
21
21
  label: "Fedora datastream".freeze,
22
22
  "owl:disjointWith" => %(http://fedora.info/definitions/v4/repository#Object).freeze,
23
23
  subClassOf: "http://fedora.info/definitions/v4/repository#AnnotatedResource".freeze,
24
24
  type: "owl:Class".freeze
25
- term :"#Fixity",
25
+ term :Fixity,
26
26
  comment: %(A calculated or recorded result of a fixity measurement on a bitstream.).freeze,
27
27
  label: "fixity".freeze,
28
28
  "owl:disjointWith" => %(http://fedora.info/definitions/v4/repository#Resource).freeze,
29
29
  subClassOf: "http://fedora.info/definitions/v4/repository#Thing".freeze,
30
30
  type: "owl:Class".freeze
31
- term :"#InboundReferences",
31
+ term :InboundReferences,
32
32
  comment: %(The set of triples representing other repository resources which link to a given resource.).freeze,
33
33
  label: "inbound references".freeze,
34
34
  subClassOf: "http://fedora.info/definitions/v4/repository#Thing".freeze,
35
35
  type: "owl:Class".freeze
36
- term :"#Lock",
36
+ term :Lock,
37
37
  comment: %(A marker of exclusive ability to modify a resource by a single user.).freeze,
38
38
  label: "lock".freeze,
39
39
  "owl:disjointWith" => %(http://fedora.info/definitions/v4/repository#Resource).freeze,
40
40
  subClassOf: "http://fedora.info/definitions/v4/repository#Thing".freeze,
41
41
  type: "owl:Class".freeze
42
- term :"#Object",
42
+ term :Object,
43
43
  comment: %(A Fedora object: the fundamental quantum of durable content in a Fedora repository.).freeze,
44
44
  label: "Fedora object".freeze,
45
45
  subClassOf: "http://fedora.info/definitions/v4/repository#AnnotatedResource".freeze,
46
46
  type: "owl:Class".freeze
47
- term :"#Resource",
47
+ term :Resource,
48
48
  comment: %(An entity that has been committed to the repository for safekeeping. For example, Fedora objects and datastreams are Resources. A Fixity is not, because the provenance of the instance is entirely internal to the repository.).freeze,
49
49
  label: "Fedora resource".freeze,
50
50
  subClassOf: "http://fedora.info/definitions/v4/repository#Thing".freeze,
51
51
  type: "owl:Class".freeze
52
- term :"#Thing",
52
+ term :Thing,
53
53
  comment: %(Something that is contemplated in the Fedora repository model.).freeze,
54
54
  label: "Fedora thing".freeze,
55
55
  type: "owl:Class".freeze
56
- term :"#Version",
56
+ term :Version,
57
57
  label: "A snapshot of a Fedora object at a given point in time.".freeze,
58
58
  subClassOf: "http://fedora.info/definitions/v4/repository#Object".freeze,
59
59
  type: "owl:Class".freeze
60
60
 
61
61
  # Property definitions
62
- property :"#baseVersion",
62
+ property :baseVersion,
63
63
  domain: "http://fedora.info/definitions/v4/repository#Object".freeze,
64
64
  label: "base version".freeze,
65
65
  range: "http://fedora.info/definitions/v4/repository#Version".freeze,
66
66
  type: ["owl:ObjectProperty".freeze, "owl:FunctionalProperty".freeze]
67
- property :"#clusterCacheMode",
68
- label: "#clusterCacheMode".freeze,
67
+ property :clusterCacheMode,
68
+ label: "clusterCacheMode".freeze,
69
69
  subPropertyOf: "owl:topDataProperty".freeze,
70
70
  type: "owl:DatatypeProperty".freeze
71
- property :"#clusterMembers",
72
- label: "#clusterMembers".freeze,
71
+ property :clusterMembers,
72
+ label: "clusterMembers".freeze,
73
73
  subPropertyOf: "owl:topDataProperty".freeze,
74
74
  type: "owl:DatatypeProperty".freeze
75
- property :"#clusterName",
76
- label: "#clusterName".freeze,
75
+ property :clusterName,
76
+ label: "clusterName".freeze,
77
77
  range: "xsd:string".freeze,
78
78
  subPropertyOf: "owl:topDataProperty".freeze,
79
79
  type: "owl:DatatypeProperty".freeze
80
- property :"#clusterNodeAddress",
81
- label: "#clusterNodeAddress".freeze,
80
+ property :clusterNodeAddress,
81
+ label: "clusterNodeAddress".freeze,
82
82
  subPropertyOf: "owl:topDataProperty".freeze,
83
83
  type: "owl:DatatypeProperty".freeze
84
- property :"#clusterNodeView",
85
- label: "#clusterNodeView".freeze,
84
+ property :clusterNodeView,
85
+ label: "clusterNodeView".freeze,
86
86
  subPropertyOf: "owl:topDataProperty".freeze,
87
87
  type: "owl:DatatypeProperty".freeze
88
- property :"#clusterPhysicalAddress",
89
- label: "#clusterPhysicalAddress".freeze,
88
+ property :clusterPhysicalAddress,
89
+ label: "clusterPhysicalAddress".freeze,
90
90
  subPropertyOf: "owl:topDataProperty".freeze,
91
91
  type: "owl:DatatypeProperty".freeze
92
- property :"#clusterSize",
93
- label: "#clusterSize".freeze,
92
+ property :clusterSize,
93
+ label: "clusterSize".freeze,
94
94
  range: "xsd:nonNegativeInteger".freeze,
95
95
  subPropertyOf: "owl:topDataProperty".freeze,
96
96
  type: "owl:DatatypeProperty".freeze
97
- property :"#computedChecksum",
98
- label: "#computedChecksum".freeze,
97
+ property :computedChecksum,
98
+ label: "computedChecksum".freeze,
99
99
  subPropertyOf: "owl:topDataProperty".freeze,
100
100
  type: "owl:DatatypeProperty".freeze
101
- property :"#computedSize",
102
- label: "#computedSize".freeze,
101
+ property :computedSize,
102
+ label: "computedSize".freeze,
103
103
  subPropertyOf: "owl:topDataProperty".freeze,
104
104
  type: "owl:DatatypeProperty".freeze
105
- property :"#couldNotStoreProperty",
106
- label: "#couldNotStoreProperty".freeze,
105
+ property :couldNotStoreProperty,
106
+ label: "couldNotStoreProperty".freeze,
107
107
  subPropertyOf: "owl:topDataProperty".freeze,
108
108
  type: "owl:DatatypeProperty".freeze
109
- property :"#created",
110
- label: "#created".freeze,
109
+ property :created,
110
+ label: "created".freeze,
111
111
  range: "xsd:dateTime".freeze,
112
112
  subPropertyOf: "owl:topDataProperty".freeze,
113
113
  type: "owl:DatatypeProperty".freeze
114
- property :"#createdBy",
115
- label: "#createdBy".freeze,
114
+ property :createdBy,
115
+ label: "createdBy".freeze,
116
116
  subPropertyOf: "owl:topDataProperty".freeze,
117
117
  type: "owl:DatatypeProperty".freeze
118
- property :"#frozenMixinTypes",
119
- label: "#frozenMixinTypes".freeze,
118
+ property :frozenMixinTypes,
119
+ label: "frozenMixinTypes".freeze,
120
120
  subPropertyOf: "http://fedora.info/definitions/v4/repository#mixinTypes".freeze,
121
121
  type: "owl:DatatypeProperty".freeze
122
- property :"#frozenPrimaryType",
123
- label: "#frozenPrimaryType".freeze,
122
+ property :frozenPrimaryType,
123
+ label: "frozenPrimaryType".freeze,
124
124
  subPropertyOf: "http://fedora.info/definitions/v4/repository#primaryType".freeze,
125
125
  type: "owl:DatatypeProperty".freeze
126
- property :"#frozenUuid",
127
- label: "#frozenUuid".freeze,
126
+ property :frozenUuid,
127
+ label: "frozenUuid".freeze,
128
128
  subPropertyOf: "http://fedora.info/definitions/v4/repository#uuid".freeze,
129
129
  type: "owl:DatatypeProperty".freeze
130
- property :"#hasChild",
130
+ property :hasChild,
131
131
  domain: "http://fedora.info/definitions/v4/repository#Object".freeze,
132
132
  label: "has child".freeze,
133
133
  type: ["owl:ObjectProperty".freeze, "owl:InverseFunctionalProperty".freeze]
134
- property :"#hasContent",
134
+ property :hasContent,
135
135
  comment: %(Indicates a Content in which content is stored for this Datastream.).freeze,
136
136
  domain: "http://fedora.info/definitions/v4/repository#Datastream".freeze,
137
137
  label: "has content".freeze,
138
138
  range: "http://fedora.info/definitions/v4/repository#Content".freeze,
139
139
  type: "owl:ObjectProperty".freeze
140
- property :"#hasDefaultWorkspace",
140
+ property :hasDefaultWorkspace,
141
141
  comment: %(Indicates the default workspace of the repository.).freeze,
142
142
  label: "has default workspace".freeze,
143
143
  type: "owl:ObjectProperty".freeze
144
- property :"#hasFixity",
144
+ property :hasFixity,
145
145
  domain: "http://fedora.info/definitions/v4/repository#Content".freeze,
146
146
  label: "has fixity".freeze,
147
147
  range: "http://fedora.info/definitions/v4/repository#Fixity".freeze,
148
148
  type: "owl:ObjectProperty".freeze
149
- property :"#hasLocation",
150
- label: "#hasLocation".freeze,
149
+ property :hasLocation,
150
+ label: "hasLocation".freeze,
151
151
  range: "xsd:anyURI".freeze,
152
152
  subPropertyOf: "owl:topDataProperty".freeze,
153
153
  type: "owl:DatatypeProperty".freeze
154
- property :"#hasLock",
154
+ property :hasLock,
155
155
  label: "has lock".freeze,
156
156
  range: "http://fedora.info/definitions/v4/repository#Lock".freeze,
157
157
  type: "owl:ObjectProperty".freeze
158
- property :"#hasLockToken",
159
- label: "#hasLockToken".freeze,
158
+ property :hasLockToken,
159
+ label: "hasLockToken".freeze,
160
160
  subPropertyOf: "owl:topDataProperty".freeze,
161
161
  type: "owl:DatatypeProperty".freeze
162
- property :"#hasMember",
162
+ property :hasMember,
163
163
  comment: %(Links to a newly-minted identifier which can be used to create a repository resource.).freeze,
164
164
  label: "has member".freeze,
165
165
  range: "xsd:anyURI".freeze,
166
166
  type: "owl:ObjectProperty".freeze
167
- property :"#hasNodeType",
168
- label: "#hasNodeType".freeze,
167
+ property :hasNodeType,
168
+ label: "hasNodeType".freeze,
169
169
  subPropertyOf: "owl:topDataProperty".freeze,
170
170
  type: "owl:DatatypeProperty".freeze
171
- property :"#hasParent",
171
+ property :hasParent,
172
172
  domain: "http://fedora.info/definitions/v4/repository#Resource".freeze,
173
173
  label: "has parent".freeze,
174
174
  range: "http://fedora.info/definitions/v4/repository#Object".freeze,
175
175
  type: ["owl:ObjectProperty".freeze, "owl:FunctionalProperty".freeze]
176
- property :"#hasResultsMember",
176
+ property :hasResultsMember,
177
177
  label: "has results member".freeze,
178
178
  range: "http://fedora.info/definitions/v4/repository#Resource".freeze,
179
179
  type: "owl:ObjectProperty".freeze
180
- property :"#hasVersion",
180
+ property :hasVersion,
181
181
  domain: "http://fedora.info/definitions/v4/repository#Object".freeze,
182
182
  label: "has version".freeze,
183
183
  range: "http://fedora.info/definitions/v4/repository#Version".freeze,
184
184
  type: "owl:ObjectProperty".freeze
185
- property :"#hasVersionLabel",
186
- label: "#hasVersionLabel".freeze,
185
+ property :hasVersionLabel,
186
+ label: "hasVersionLabel".freeze,
187
187
  range: "xsd:string".freeze,
188
188
  subPropertyOf: "owl:topDataProperty".freeze,
189
189
  type: "owl:DatatypeProperty".freeze
190
- property :"#hasWorkspace",
190
+ property :hasWorkspace,
191
191
  comment: %(Links to a workspace of the repository.).freeze,
192
192
  label: "has workspace".freeze,
193
193
  type: "owl:ObjectProperty".freeze
194
- property :"#isCheckedOut",
195
- label: "#isCheckedOut".freeze,
194
+ property :isCheckedOut,
195
+ label: "isCheckedOut".freeze,
196
196
  range: "xsd:boolean".freeze,
197
197
  subPropertyOf: "owl:topDataProperty".freeze,
198
198
  type: "owl:DatatypeProperty".freeze
199
- property :"#isContentOf",
199
+ property :isContentOf,
200
200
  comment: %(Indicates a Datastream for which this resource contains the content. ).freeze,
201
201
  domain: "http://fedora.info/definitions/v4/repository#Content".freeze,
202
202
  label: "is content of".freeze,
203
203
  range: "http://fedora.info/definitions/v4/repository#Datastream".freeze,
204
204
  type: ["owl:ObjectProperty".freeze, "owl:InverseFunctionalProperty".freeze]
205
- property :"#isDeep",
205
+ property :isDeep,
206
206
  domain: "http://fedora.info/definitions/v4/repository#Lock".freeze,
207
- label: "#isDeep".freeze,
207
+ label: "isDeep".freeze,
208
208
  range: "xsd:boolean".freeze,
209
209
  subPropertyOf: "owl:topDataProperty".freeze,
210
210
  type: "owl:DatatypeProperty".freeze
211
- property :"#isFixityOf",
211
+ property :isFixityOf,
212
212
  domain: "http://fedora.info/definitions/v4/repository#Fixity".freeze,
213
213
  label: "is fixity of".freeze,
214
214
  range: "http://fedora.info/definitions/v4/repository#Content".freeze,
215
215
  type: ["owl:ObjectProperty".freeze, "owl:InverseFunctionalProperty".freeze]
216
- property :"#lastModified",
217
- label: "#lastModified".freeze,
216
+ property :lastModified,
217
+ label: "lastModified".freeze,
218
218
  range: "xsd:dateTime".freeze,
219
219
  subPropertyOf: "owl:topDataProperty".freeze,
220
220
  type: "owl:DatatypeProperty".freeze
221
- property :"#lastModifiedBy",
222
- label: "#lastModifiedBy".freeze,
221
+ property :lastModifiedBy,
222
+ label: "lastModifiedBy".freeze,
223
223
  subPropertyOf: "owl:topDataProperty".freeze,
224
224
  type: "owl:DatatypeProperty".freeze
225
- property :"#locks",
225
+ property :locks,
226
226
  domain: "http://fedora.info/definitions/v4/repository#Lock".freeze,
227
227
  label: "locks".freeze,
228
228
  type: "owl:ObjectProperty".freeze
229
- property :"#mimeType",
230
- label: "#mimeType".freeze,
229
+ property :mimeType,
230
+ label: "mimeType".freeze,
231
231
  range: "xsd:string".freeze,
232
232
  subPropertyOf: "owl:topDataProperty".freeze,
233
233
  type: "owl:DatatypeProperty".freeze
234
- property :"#mixinTypes",
235
- label: "#mixinTypes".freeze,
234
+ property :mixinTypes,
235
+ label: "mixinTypes".freeze,
236
236
  subPropertyOf: "owl:topDataProperty".freeze,
237
237
  type: "owl:DatatypeProperty".freeze
238
- property :"#numFixityChecks",
239
- label: "#numFixityChecks".freeze,
238
+ property :numFixityChecks,
239
+ label: "numFixityChecks".freeze,
240
240
  range: "xsd:nonNegativeInteger".freeze,
241
241
  subPropertyOf: "owl:topDataProperty".freeze,
242
242
  type: "owl:DatatypeProperty".freeze
243
- property :"#numFixityErrors",
244
- label: "#numFixityErrors".freeze,
243
+ property :numFixityErrors,
244
+ label: "numFixityErrors".freeze,
245
245
  range: "xsd:nonNegativeInteger".freeze,
246
246
  subPropertyOf: "owl:topDataProperty".freeze,
247
247
  type: "owl:DatatypeProperty".freeze
248
- property :"#numFixityRepaired",
249
- label: "#numFixityRepaired".freeze,
248
+ property :numFixityRepaired,
249
+ label: "numFixityRepaired".freeze,
250
250
  range: "xsd:nonNegativeInteger".freeze,
251
251
  subPropertyOf: "owl:topDataProperty".freeze,
252
252
  type: "owl:DatatypeProperty".freeze
253
- property :"#numberOfChildren",
254
- label: "#numberOfChildren".freeze,
253
+ property :numberOfChildren,
254
+ label: "numberOfChildren".freeze,
255
255
  range: "xsd:nonNegativeInteger".freeze,
256
256
  subPropertyOf: "owl:topDataProperty".freeze,
257
257
  type: "owl:DatatypeProperty".freeze
258
- property :"#objectCount",
259
- label: "#objectCount".freeze,
258
+ property :objectCount,
259
+ label: "objectCount".freeze,
260
260
  subPropertyOf: "owl:topDataProperty".freeze,
261
261
  type: "owl:DatatypeProperty".freeze
262
- property :"#objectSize",
263
- label: "#objectSize".freeze,
262
+ property :objectSize,
263
+ label: "objectSize".freeze,
264
264
  subPropertyOf: "owl:topDataProperty".freeze,
265
265
  type: "owl:DatatypeProperty".freeze
266
- property :"#predecessors",
266
+ property :predecessors,
267
267
  domain: "http://fedora.info/definitions/v4/repository#Version".freeze,
268
268
  label: "predecessors".freeze,
269
269
  range: "http://fedora.info/definitions/v4/repository#Version".freeze,
270
270
  type: "owl:ObjectProperty".freeze
271
- property :"#primaryType",
272
- label: "#primaryType".freeze,
271
+ property :primaryType,
272
+ label: "primaryType".freeze,
273
273
  subPropertyOf: "owl:topDataProperty".freeze,
274
274
  type: "owl:DatatypeProperty".freeze
275
- property :"#status",
276
- label: "#status".freeze,
275
+ property :status,
276
+ label: "status".freeze,
277
277
  subPropertyOf: "owl:topDataProperty".freeze,
278
278
  type: "owl:DatatypeProperty".freeze
279
- property :"#uuid",
280
- label: "#uuid".freeze,
279
+ property :uuid,
280
+ label: "uuid".freeze,
281
281
  subPropertyOf: "owl:topDataProperty".freeze,
282
282
  type: "owl:DatatypeProperty".freeze
283
283
 
284
284
  # Extra definitions
285
- term :"#",
285
+ term :"",
286
286
  comment: %(A first attempt to formalize an ontology for the Fedora data model, intended primarily to make it possible to expose Fedora-curated RDF predicates via de-reference-able URIs.).freeze,
287
287
  label: "Fedora Commons Repository Ontology".freeze,
288
288
  type: "owl:Ontology".freeze
data/spec/helper_spec.rb CHANGED
@@ -24,7 +24,7 @@ describe RDF::FCRepo4 do
24
24
  expect(result.size).to eql 1
25
25
 
26
26
  stripped_graph = RDF::FCRepo4.remove_fedora_triples graph
27
- expect(graph.size).to eql 39
27
+ expect(stripped_graph.size).to eql 15
28
28
  result = stripped_graph.query [nil, RDF.type, RDF::URI.new("http://fedora.info/definitions/v4/rest-api#resource")]
29
29
  expect(result.size).to eql 0
30
30
  result = stripped_graph.query [nil, RDF.type, RDF::URI.new("http://www.jcp.org/jcr/nt/1.0base")]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-fcrepo4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naomi Dushay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-14 00:00:00.000000000 Z
11
+ date: 2014-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdf