rdf-ldp 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,17 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-ldp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - Naomi Dushay
7
+ - Tom Johnson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-28 00:00:00.000000000 Z
11
+ date: 2015-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rack
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rdf
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rdf-vocab
15
43
  requirement: !ruby/object:Gem::Requirement
16
44
  requirements:
17
45
  - - ">="
@@ -25,7 +53,7 @@ dependencies:
25
53
  - !ruby/object:Gem::Version
26
54
  version: '0'
27
55
  - !ruby/object:Gem::Dependency
28
- name: deprecation
56
+ name: rack-linkeddata
29
57
  requirement: !ruby/object:Gem::Requirement
30
58
  requirements:
31
59
  - - ">="
@@ -39,33 +67,137 @@ dependencies:
39
67
  - !ruby/object:Gem::Version
40
68
  version: '0'
41
69
  - !ruby/object:Gem::Dependency
42
- name: bundler
70
+ name: rdf-turtle
43
71
  requirement: !ruby/object:Gem::Requirement
44
72
  requirements:
45
73
  - - "~>"
46
74
  - !ruby/object:Gem::Version
47
- version: '1.6'
75
+ version: '1.1'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: json-ld
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: sinatra
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: link_header
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rdf-spec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '1.1'
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: 1.1.13
48
135
  type: :development
49
136
  prerelease: false
50
137
  version_requirements: !ruby/object:Gem::Requirement
51
138
  requirements:
52
139
  - - "~>"
53
140
  - !ruby/object:Gem::Version
54
- version: '1.6'
141
+ version: '1.1'
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: 1.1.13
55
145
  - !ruby/object:Gem::Dependency
56
- name: rake
146
+ name: rdf-rdfxml
57
147
  requirement: !ruby/object:Gem::Requirement
58
148
  requirements:
59
149
  - - "~>"
60
150
  - !ruby/object:Gem::Version
61
- version: '10.0'
151
+ version: '1.1'
62
152
  type: :development
63
153
  prerelease: false
64
154
  version_requirements: !ruby/object:Gem::Requirement
65
155
  requirements:
66
156
  - - "~>"
67
157
  - !ruby/object:Gem::Version
68
- version: '10.0'
158
+ version: '1.1'
159
+ - !ruby/object:Gem::Dependency
160
+ name: rdf-rdfa
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: '1.1'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "~>"
171
+ - !ruby/object:Gem::Version
172
+ version: '1.1'
173
+ - !ruby/object:Gem::Dependency
174
+ name: rdf-xsd
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - "~>"
178
+ - !ruby/object:Gem::Version
179
+ version: '1.1'
180
+ type: :development
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - "~>"
185
+ - !ruby/object:Gem::Version
186
+ version: '1.1'
187
+ - !ruby/object:Gem::Dependency
188
+ name: rest-client
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - "~>"
192
+ - !ruby/object:Gem::Version
193
+ version: '1.7'
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - "~>"
199
+ - !ruby/object:Gem::Version
200
+ version: '1.7'
69
201
  - !ruby/object:Gem::Dependency
70
202
  name: rspec
71
203
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +213,7 @@ dependencies:
81
213
  - !ruby/object:Gem::Version
82
214
  version: '3.0'
83
215
  - !ruby/object:Gem::Dependency
84
- name: rdf-turtle
216
+ name: rack-test
85
217
  requirement: !ruby/object:Gem::Requirement
86
218
  requirements:
87
219
  - - ">="
@@ -94,40 +226,83 @@ dependencies:
94
226
  - - ">="
95
227
  - !ruby/object:Gem::Version
96
228
  version: '0'
97
- description:
98
- email:
99
- - ndushay@stanford.edu
229
+ - !ruby/object:Gem::Dependency
230
+ name: rspec-its
231
+ requirement: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - "~>"
234
+ - !ruby/object:Gem::Version
235
+ version: '1.0'
236
+ type: :development
237
+ prerelease: false
238
+ version_requirements: !ruby/object:Gem::Requirement
239
+ requirements:
240
+ - - "~>"
241
+ - !ruby/object:Gem::Version
242
+ version: '1.0'
243
+ - !ruby/object:Gem::Dependency
244
+ name: webmock
245
+ requirement: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - "~>"
248
+ - !ruby/object:Gem::Version
249
+ version: '1.17'
250
+ type: :development
251
+ prerelease: false
252
+ version_requirements: !ruby/object:Gem::Requirement
253
+ requirements:
254
+ - - "~>"
255
+ - !ruby/object:Gem::Version
256
+ version: '1.17'
257
+ - !ruby/object:Gem::Dependency
258
+ name: yard
259
+ requirement: !ruby/object:Gem::Requirement
260
+ requirements:
261
+ - - "~>"
262
+ - !ruby/object:Gem::Version
263
+ version: '0.8'
264
+ type: :development
265
+ prerelease: false
266
+ version_requirements: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - "~>"
269
+ - !ruby/object:Gem::Version
270
+ version: '0.8'
271
+ description: Implements a Linked Data Platform domain model, Rack middleware for server
272
+ implementers, and a simple Sinatra-based server for RDF.rb
273
+ email: public-rdf-ruby@w3.org
100
274
  executables: []
101
275
  extensions: []
102
276
  extra_rdoc_files: []
103
277
  files:
104
- - ".gitignore"
105
- - ".travis.yml"
106
- - Gemfile
107
- - LICENSE
278
+ - AUTHORS
279
+ - CREDITS
108
280
  - README.md
109
- - Rakefile
281
+ - UNLICENSE
282
+ - VERSION
283
+ - lib/rack/ldp.rb
110
284
  - lib/rdf/ldp.rb
111
- - lib/rdf/ldp/helper.rb
285
+ - lib/rdf/ldp/container.rb
286
+ - lib/rdf/ldp/direct_container.rb
287
+ - lib/rdf/ldp/indirect_container.rb
288
+ - lib/rdf/ldp/non_rdf_source.rb
289
+ - lib/rdf/ldp/rdf_source.rb
290
+ - lib/rdf/ldp/resource.rb
112
291
  - lib/rdf/ldp/version.rb
113
- - lib/rdf/ldp/vocab.rb
114
- - rdf-ldp.gemspec
115
- - spec/fixtures/open_anno_ldp_container.ttl
116
- - spec/helper_spec.rb
117
- - spec/spec_helper.rb
118
- homepage: https://github.com/sul-dlss/rdf-ldp
292
+ homepage: http://ruby-rdf.github.com/
119
293
  licenses:
120
- - Apache 2
294
+ - Public Domain
121
295
  metadata: {}
122
296
  post_install_message:
123
297
  rdoc_options: []
124
298
  require_paths:
125
299
  - lib
300
+ - app
126
301
  required_ruby_version: !ruby/object:Gem::Requirement
127
302
  requirements:
128
303
  - - ">="
129
304
  - !ruby/object:Gem::Version
130
- version: '0'
305
+ version: 1.9.2
131
306
  required_rubygems_version: !ruby/object:Gem::Requirement
132
307
  requirements:
133
308
  - - ">="
@@ -135,11 +310,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
310
  version: '0'
136
311
  requirements: []
137
312
  rubyforge_project:
138
- rubygems_version: 2.4.3
313
+ rubygems_version: 2.2.1
139
314
  signing_key:
140
315
  specification_version: 4
141
- summary: This gem deprecated in favor of rdf-vocab; helper method is in triannon gem
142
- test_files:
143
- - spec/fixtures/open_anno_ldp_container.ttl
144
- - spec/helper_spec.rb
145
- - spec/spec_helper.rb
316
+ summary: A suite of LDP software and middleware for RDF.rb.
317
+ test_files: []
318
+ has_rdoc: false
data/.gitignore DELETED
@@ -1,15 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /.ruby-version
4
- /Gemfile.lock
5
- /_yardoc/
6
- /coverage/
7
- /doc/
8
- /pkg/
9
- /spec/reports/
10
- /tmp/
11
- *.bundle
12
- *.so
13
- *.o
14
- *.a
15
- mkmf.log
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- language: ruby
2
- script: rake spec
3
- rvm:
4
- - 2.1.1
5
- # - ruby-head
6
- #env:
7
- # global:
8
- # - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
9
- notifications:
10
- email:
11
- - ndushay@stanford.edu
12
- - cabeer@stanford.edu
13
- - wmene@stanford.edu
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in open_annotation.gemspec
4
- gemspec
data/LICENSE DELETED
@@ -1,13 +0,0 @@
1
- Copyright 2014 The Board of Trustees of the Leland Stanford Junior University.
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
data/Rakefile DELETED
@@ -1,15 +0,0 @@
1
- begin
2
- require 'bundler/setup'
3
- rescue LoadError
4
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
- end
6
-
7
- require 'rspec/core/rake_task'
8
-
9
- RSpec::Core::RakeTask.new(:spec)
10
-
11
- task :rspec => :spec
12
- task :default => :spec
13
-
14
- Bundler::GemHelper.install_tasks
15
-
@@ -1,27 +0,0 @@
1
- require 'deprecation'
2
-
3
- # mixin methods
4
- module RDF
5
- class LDPDeprecated < RDF::StrictVocabulary("http://www.w3.org/ns/ldp")
6
- extend Deprecation
7
-
8
- # @deprecated
9
- # returns graph without any LDP-specific triples
10
- def self.remove_ldp_triples graph
11
- Deprecation.warn RDF::LDP, "RDF::LDP.remove_ldp_triples is deprecated. See oa_graph_helper in triannon gem."
12
- if graph && graph.is_a?(RDF::Graph) && graph.count > 0
13
- no_ldp_graph = RDF::Graph.new
14
- ldp_props = RDF::LDP.properties.map {|p| p.to_s}
15
- graph.each { |stmt|
16
- no_ldp_graph << stmt unless ldp_props.include?(stmt.predicate.to_s) ||
17
- ldp_props.include?(stmt.object.to_s) ||
18
- ldp_props.include?(stmt.subject.to_s)
19
- }
20
- no_ldp_graph
21
- else
22
- graph
23
- end
24
- end
25
-
26
- end
27
- end
data/lib/rdf/ldp/vocab.rb DELETED
@@ -1,149 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- # This file generated automatically using vocab-fetch from http://www.w3.org/ns/ldp#
3
- require 'rdf'
4
- module RDF
5
- # deprecate LDP
6
- def self.const_missing(const_name)
7
- super unless const_name == :LDP
8
- warn "DEPRECATION WARNING: the class RDF::LDP is deprecated. Use RDF::Vocab::LDP from https://github.com/ruby-rdf/rdf-vocab instead."
9
- LDPDeprecated
10
- end
11
-
12
- # @deprecated: this class is deprecated in favor of RDF::Vocab::LDP
13
- # from rdf-vocab gem
14
- class LDPDeprecated < RDF::StrictVocabulary("http://www.w3.org/ns/ldp#")
15
-
16
- # Class definitions
17
- term :BasicContainer,
18
- comment: %(An LDPC that uses a predefined predicate to simply link to its contained resources.).freeze,
19
- label: "BasicContainer".freeze,
20
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
21
- subClassOf: "http://www.w3.org/ns/ldp#Container".freeze,
22
- type: "rdfs:Class".freeze,
23
- "vs:term_status" => %(unstable).freeze
24
- term :Container,
25
- comment: %(A Linked Data Platform RDF Source \(LDP-RS\) that also conforms to additional patterns and conventions for managing membership. Readers should refer to the specification defining this ontology for the list of behaviors associated with it.).freeze,
26
- label: "Container".freeze,
27
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
28
- subClassOf: "http://www.w3.org/ns/ldp#RDFSource".freeze,
29
- type: "rdfs:Class".freeze,
30
- "vs:term_status" => %(unstable).freeze
31
- term :DirectContainer,
32
- comment: %(An LDPC that has the flexibility of choosing what form the membership triples take.).freeze,
33
- label: "DirectContainer".freeze,
34
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
35
- subClassOf: "http://www.w3.org/ns/ldp#Container".freeze,
36
- type: "rdfs:Class".freeze,
37
- "vs:term_status" => %(unstable).freeze
38
- term :IndirectContainer,
39
- comment: %(An LDPC that is similar to a LDP-DC but it allows an indirection with the ability to list as member a resource, such as a URI representing a real-world object, that is different from the resource that is created).freeze,
40
- label: "IndirectContainer".freeze,
41
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
42
- subClassOf: "http://www.w3.org/ns/ldp#Container".freeze,
43
- type: "rdfs:Class".freeze,
44
- "vs:term_status" => %(unstable).freeze
45
- term :NonRDFSource,
46
- comment: %(A Linked Data Platform Resource \(LDPR\) whose state is NOT represented as RDF.).freeze,
47
- label: "NonRDFSource".freeze,
48
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
49
- subClassOf: "http://www.w3.org/ns/ldp#Resource".freeze,
50
- type: "rdfs:Class".freeze,
51
- "vs:term_status" => %(unstable).freeze
52
- term :RDFSource,
53
- comment: %(A Linked Data Platform Resource \(LDPR\) whose state is represented as RDF.).freeze,
54
- label: "RDFSource".freeze,
55
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
56
- subClassOf: "http://www.w3.org/ns/ldp#Resource".freeze,
57
- type: "rdfs:Class".freeze,
58
- "vs:term_status" => %(unstable).freeze
59
- term :Resource,
60
- comment: %(A HTTP-addressable resource whose lifecycle is managed by a LDP server.).freeze,
61
- label: "Resource".freeze,
62
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
63
- type: "rdfs:Class".freeze,
64
- "vs:term_status" => %(unstable).freeze
65
-
66
- # Property definitions
67
- property :contains,
68
- comment: %(Links a container with resources created through the container.).freeze,
69
- domain: "http://www.w3.org/ns/ldp#Container".freeze,
70
- label: "contains".freeze,
71
- range: "rdfs:Resource".freeze,
72
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
73
- type: "rdf:Property".freeze,
74
- "vs:term_status" => %(unstable).freeze
75
- property :hasMemberRelation,
76
- comment: %(Indicates which predicate is used in membership triples, and that the membership triple pattern is < membership-constant-URI , object-of-hasMemberRelation, member-URI >.).freeze,
77
- domain: "http://www.w3.org/ns/ldp#Container".freeze,
78
- label: "hasMemberRelation".freeze,
79
- range: "rdf:Property".freeze,
80
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
81
- type: "rdf:Property".freeze,
82
- "vs:term_status" => %(unstable).freeze
83
- property :insertedContentRelation,
84
- comment: %(Indicates which triple in a creation request should be used as the member-URI value in the membership triple added when the creation request is successful.).freeze,
85
- domain: "http://www.w3.org/ns/ldp#Container".freeze,
86
- label: "insertedContentRelation".freeze,
87
- range: "rdf:Property".freeze,
88
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
89
- type: "rdf:Property".freeze,
90
- "vs:term_status" => %(unstable).freeze
91
- property :isMemberOfRelation,
92
- comment: %(Indicates which predicate is used in membership triples, and that the membership triple pattern is < member-URI , object-of-isMemberOfRelation, membership-constant-URI >.).freeze,
93
- domain: "http://www.w3.org/ns/ldp#Container".freeze,
94
- label: "isMemmberOfRelation".freeze,
95
- range: "rdf:Property".freeze,
96
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
97
- type: "rdf:Property".freeze,
98
- "vs:term_status" => %(unstable).freeze
99
- property :member,
100
- comment: %(LDP servers should use this predicate as the membership predicate if there is no obvious predicate from an application vocabulary to use.).freeze,
101
- domain: "http://www.w3.org/ns/ldp#Resource".freeze,
102
- label: "member".freeze,
103
- range: "rdfs:Resource".freeze,
104
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
105
- type: "rdf:Property".freeze,
106
- "vs:term_status" => %(unstable).freeze
107
- property :membershipResource,
108
- comment: %(Indicates the membership-constant-URI in a membership triple. Depending upon the membership triple pattern a container uses, as indicated by the presence of ldp:hasMemberRelation or ldp:isMemberOfRelation, the membership-constant-URI might occupy either the subject or object position in membership triples.).freeze,
109
- domain: "http://www.w3.org/ns/ldp#Container".freeze,
110
- label: "membershipResource".freeze,
111
- range: "rdf:Property".freeze,
112
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
113
- type: "rdf:Property".freeze,
114
- "vs:term_status" => %(unstable).freeze
115
-
116
- # Extra definitions
117
- term :"",
118
- comment: %(This ontology provides an informal representation of the concepts and terms as defined in the LDP specification. Consult the LDP specification for normative reference.).freeze,
119
- "dc:description" => %(All vocabulary URIs defined in the Linked Data Platform \(LDP\) namespace.).freeze,
120
- "dc:title" => %(The W3C Linked Data Platform \(LDP\) Vocabulary).freeze,
121
- label: "W3C Linked Data Platform (LDP)".freeze,
122
- "rdfs:seeAlso" => [%(http://www.w3.org/2012/ldp).freeze, %(http://www.w3.org/TR/ldp-ucr/).freeze, %(http://www.w3.org/TR/ldp/).freeze, %(http://www.w3.org/2011/09/LinkedData/).freeze],
123
- type: "owl:Ontology".freeze
124
- term :MemberSubject,
125
- comment: %(Used to indicate default and typical behavior for ldp:insertedContentRelation, where the member-URI value in the membership triple added when a creation request is successful is the URI assigned to the newly created resource.).freeze,
126
- label: "MemberSubject".freeze,
127
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
128
- type: "rdf:Description".freeze,
129
- "vs:term_status" => %(unstable).freeze
130
- term :PreferContainment,
131
- comment: %(URI identifying a LDPC's containment triples, for example to allow clients to express interest in receiving them.).freeze,
132
- label: "PreferContainment".freeze,
133
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
134
- type: "rdf:Description".freeze,
135
- "vs:term_status" => %(unstable).freeze
136
- term :PreferEmptyContainer,
137
- comment: %(URI identifying the subset of a LDPC's triples present in an empty LDPC, for example to allow clients to express interest in receiving them. Currently this excludes containment and membership triples, but in the future other exclusions might be added. This definition is written to automatically exclude those new classes of triples.).freeze,
138
- label: "PreferEmptyContainer".freeze,
139
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
140
- type: "rdf:Description".freeze,
141
- "vs:term_status" => %(unstable).freeze
142
- term :PreferMembership,
143
- comment: %(URI identifying a LDPC's membership triples, for example to allow clients to express interest in receiving them.).freeze,
144
- label: "PreferMembership".freeze,
145
- "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
146
- type: "rdf:Description".freeze,
147
- "vs:term_status" => %(unstable).freeze
148
- end
149
- end
data/rdf-ldp.gemspec DELETED
@@ -1,27 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'rdf/ldp/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "rdf-ldp"
8
- spec.version = VERSION
9
- spec.authors = ["Naomi Dushay"]
10
- spec.email = ["ndushay@stanford.edu"]
11
- spec.summary = %q{This gem deprecated in favor of rdf-vocab; helper method is in triannon gem}
12
- spec.homepage = "https://github.com/sul-dlss/rdf-ldp"
13
- spec.license = "Apache 2"
14
-
15
- spec.files = `git ls-files -z`.split("\x0")
16
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
- spec.require_paths = ["lib"]
19
-
20
- spec.add_dependency 'rdf'
21
- spec.add_dependency 'deprecation'
22
-
23
- spec.add_development_dependency "bundler", "~> 1.6"
24
- spec.add_development_dependency "rake", "~> 10.0"
25
- spec.add_development_dependency "rspec", "~> 3.0"
26
- spec.add_development_dependency "rdf-turtle" # used to load testing fixtures
27
- end
@@ -1,29 +0,0 @@
1
-
2
- <http://localhost:8080/rest/anno/deb27887-1241-4ccc-a09c-439293d73fbb/fcr:export?format=jcr/xml> <http://purl.org/dc/elements/1.1/format> <http://fedora.info/definitions/v4/repository#jcr/xml> .
3
-
4
- <http://fedora.info/definitions/v4/repository#jcr/xml> <http://www.w3.org/2000/01/rdf-schema#label> "jcr/xml"^^<http://www.w3.org/2001/XMLSchema#string> .
5
-
6
- <http://localhost:8080/rest/anno/deb27887-1241-4ccc-a09c-439293d73fbb> <http://fedora.info/definitions/v4/rest-api#exportsAs> <http://localhost:8080/rest/anno/deb27887-1241-4ccc-a09c-439293d73fbb/fcr:export?format=jcr/xml> ;
7
- <http://www.w3.org/ns/ldp#membershipResource> <http://localhost:8080/rest/anno/deb27887-1241-4ccc-a09c-439293d73fbb> ;
8
- <http://www.w3.org/ns/ldp#hasMemberRelation> <http://www.w3.org/ns/ldp#member> ;
9
- a <http://www.w3.org/ns/ldp#Container> , <http://www.w3.org/ns/ldp#DirectContainer> ;
10
- <http://www.w3.org/ns/ldp#member> <http://localhost:8080/rest/anno/deb27887-1241-4ccc-a09c-439293d73fbb/b> , <http://localhost:8080/rest/anno/deb27887-1241-4ccc-a09c-439293d73fbb/t> ;
11
- <http://www.w3.org/ns/oa#hasBody> <http://localhost:8080/rest/anno/deb27887-1241-4ccc-a09c-439293d73fbb/b/e14b93b7-3a88-4eb5-9688-7dea7f482d23> ;
12
- <http://www.w3.org/ns/oa#hasTarget> <http://localhost:8080/rest/anno/deb27887-1241-4ccc-a09c-439293d73fbb/t/ee774031-74d9-4f5a-9b03-cdd21267e4e1> ;
13
- <http://www.w3.org/ns/ldp#contains> <http://localhost:8080/rest/anno/deb27887-1241-4ccc-a09c-439293d73fbb/b> , <http://localhost:8080/rest/anno/deb27887-1241-4ccc-a09c-439293d73fbb/t> ;
14
- <http://fedora.info/definitions/v4/repository#hasParent> <http://localhost:8080/rest/anno> .
15
-
16
- <http://localhost:8080/rest/anno/deb27887-1241-4ccc-a09c-439293d73fbb/b> <http://www.w3.org/ns/ldp#membershipResource> <http://localhost:8080/rest/anno/deb27887-1241-4ccc-a09c-439293d73fbb> .
17
-
18
- <http://localhost:8080/rest/anno/deb27887-1241-4ccc-a09c-439293d73fbb/t> <http://www.w3.org/ns/ldp#membershipResource> <http://localhost:8080/rest/anno/deb27887-1241-4ccc-a09c-439293d73fbb> .
19
-
20
- <http://localhost:8080/rest/anno/deb27887-1241-4ccc-a09c-439293d73fbb> a <http://www.jcp.org/jcr/nt/1.0folder> , <http://www.jcp.org/jcr/nt/1.0hierarchyNode> , <http://www.jcp.org/jcr/nt/1.0base> , <http://www.jcp.org/jcr/mix/1.0created> , <http://fedora.info/definitions/v4/rest-api#resource> , <http://fedora.info/definitions/v4/rest-api#object> , <http://www.w3.org/ns/oa#Annotation> , <http://fedora.info/definitions/v4/rest-api#relations> , <http://www.jcp.org/jcr/mix/1.0created> , <http://www.jcp.org/jcr/mix/1.0lastModified> , <http://www.jcp.org/jcr/mix/1.0lockable> , <http://www.jcp.org/jcr/mix/1.0referenceable> , <http://purl.org/dc/elements/1.1/describable> , <http://fedora.info/definitions/v4/rest-api#resource> , <http://www.w3.org/ns/ldp#Container> ;
21
- <http://fedora.info/definitions/v4/rest-api#writable> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ;
22
- <http://fedora.info/definitions/v4/repository#primaryType> "nt:folder"^^<http://www.w3.org/2001/XMLSchema#string> ;
23
- <http://www.w3.org/ns/oa#motivatedBy> <http://www.w3.org/ns/oa#commenting> ;
24
- <http://fedora.info/definitions/v4/repository#created> "2014-10-13T18:33:39.191Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
25
- <http://fedora.info/definitions/v4/repository#lastModified> "2014-10-13T18:33:39.265Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
26
- <http://fedora.info/definitions/v4/repository#mixinTypes> "fedora:resource"^^<http://www.w3.org/2001/XMLSchema#string> , "fedora:object"^^<http://www.w3.org/2001/XMLSchema#string> , "oa:Annotation"^^<http://www.w3.org/2001/XMLSchema#string> ;
27
- <http://fedora.info/definitions/v4/repository#lastModifiedBy> "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
28
- <http://fedora.info/definitions/v4/repository#uuid> "88694f22-640b-4006-97cd-5135690987cc"^^<http://www.w3.org/2001/XMLSchema#string> ;
29
- <http://fedora.info/definitions/v4/repository#createdBy> "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> .
data/spec/helper_spec.rb DELETED
@@ -1,27 +0,0 @@
1
- require 'spec_helper'
2
- require 'rdf/turtle'
3
-
4
- describe RDF::LDPDeprecated do
5
-
6
- let(:anno_ttl) { File.read(fixture_path + '/open_anno_ldp_container.ttl') }
7
-
8
- describe '#remove_ldp_triples' do
9
- it 'graph returned has no ldp triples' do
10
- graph = RDF::Graph.new
11
- graph.from_ttl anno_ttl
12
- expect(graph.count).to eql 39
13
- result = graph.query [nil, RDF.type, RDF::URI.new("http://www.w3.org/ns/ldp#Container")]
14
- expect(result.size).to eql 1
15
- result = graph.query [nil, RDF::URI.new("http://www.w3.org/ns/ldp#contains"), nil]
16
- expect(result.size).to eql 2
17
-
18
- stripped_graph = RDF::LDP.remove_ldp_triples graph
19
- expect(stripped_graph.count).to eql 29
20
- result = stripped_graph.query [nil, RDF.type, RDF::URI.new("http://www.w3.org/ns/ldp#Container")]
21
- expect(result.size).to eql 0
22
- result = stripped_graph.query [nil, RDF::URI.new("http://www.w3.org/ns/ldp#contains"), nil]
23
- expect(result.size).to eql 0
24
- end
25
- end
26
-
27
- end