rdf-ldp 0.0.3 → 0.0.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: f0464564fbed6e38d472a4c88c978d7cae09caa8
4
- data.tar.gz: 6136c2d0ab782a82a280e6c935afc503a14f2b69
3
+ metadata.gz: 20e8737935fd863e141fe6ed32918b3177e34e1b
4
+ data.tar.gz: ca2ba065b86a069b1772f2f72fb80f017b3d0f30
5
5
  SHA512:
6
- metadata.gz: de8c284afa28d7be78ec5aeb9b17619bb6a7691b54117828b99bc03e6ce3dc0257a0fe8fe981d69119d283dd3e3fa40aaaa0cc843e13ee2e6396fdc89a02ea2b
7
- data.tar.gz: 36d3c3272d8f54f7a1d0457395e408ab3260e5d5581d555b4629afec43bc5503566b031f33cfbb5f4d26de1f2b35e3901cbb56e491ffe3e07537f106b3de8472
6
+ metadata.gz: 8b0b1547aa3338395879aa4d629462f187036f8a33d306211ce5038cdb018abbb86a016e2a8d9081761135efc51478f27bbe95e891cbd351ce8fcf5331a8886f
7
+ data.tar.gz: e99438338befcb4eb8a20f4bd79b5ebc27fc5f0bf39bdcd43623705126b5202b628adc3143e0e844459823011f32602c7fee50a5340dd2b32e94c0d7641b30cb
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.3"
1
+ VERSION = "0.0.4"
@@ -1,53 +1,53 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # This file generated automatically using vocab-fetch from http://www.w3.org/ns/ldp
2
+ # This file generated automatically using vocab-fetch from http://www.w3.org/ns/ldp#
3
3
  require 'rdf'
4
4
  module RDF
5
- class LDP < RDF::StrictVocabulary("http://www.w3.org/ns/ldp")
5
+ class LDP < RDF::StrictVocabulary("http://www.w3.org/ns/ldp#")
6
6
 
7
7
  # Class definitions
8
- term :"#BasicContainer",
8
+ term :BasicContainer,
9
9
  comment: %(An LDPC that uses a predefined predicate to simply link to its contained resources.).freeze,
10
10
  label: "BasicContainer".freeze,
11
11
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
12
12
  subClassOf: "http://www.w3.org/ns/ldp#Container".freeze,
13
13
  type: "rdfs:Class".freeze,
14
14
  "vs:term_status" => %(unstable).freeze
15
- term :"#Container",
15
+ term :Container,
16
16
  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,
17
17
  label: "Container".freeze,
18
18
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
19
19
  subClassOf: "http://www.w3.org/ns/ldp#RDFSource".freeze,
20
20
  type: "rdfs:Class".freeze,
21
21
  "vs:term_status" => %(unstable).freeze
22
- term :"#DirectContainer",
22
+ term :DirectContainer,
23
23
  comment: %(An LDPC that has the flexibility of choosing what form the membership triples take.).freeze,
24
24
  label: "DirectContainer".freeze,
25
25
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
26
26
  subClassOf: "http://www.w3.org/ns/ldp#Container".freeze,
27
27
  type: "rdfs:Class".freeze,
28
28
  "vs:term_status" => %(unstable).freeze
29
- term :"#IndirectContainer",
29
+ term :IndirectContainer,
30
30
  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,
31
31
  label: "IndirectContainer".freeze,
32
32
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
33
33
  subClassOf: "http://www.w3.org/ns/ldp#Container".freeze,
34
34
  type: "rdfs:Class".freeze,
35
35
  "vs:term_status" => %(unstable).freeze
36
- term :"#NonRDFSource",
36
+ term :NonRDFSource,
37
37
  comment: %(A Linked Data Platform Resource \(LDPR\) whose state is NOT represented as RDF.).freeze,
38
38
  label: "NonRDFSource".freeze,
39
39
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
40
40
  subClassOf: "http://www.w3.org/ns/ldp#Resource".freeze,
41
41
  type: "rdfs:Class".freeze,
42
42
  "vs:term_status" => %(unstable).freeze
43
- term :"#RDFSource",
43
+ term :RDFSource,
44
44
  comment: %(A Linked Data Platform Resource \(LDPR\) whose state is represented as RDF.).freeze,
45
45
  label: "RDFSource".freeze,
46
46
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
47
47
  subClassOf: "http://www.w3.org/ns/ldp#Resource".freeze,
48
48
  type: "rdfs:Class".freeze,
49
49
  "vs:term_status" => %(unstable).freeze
50
- term :"#Resource",
50
+ term :Resource,
51
51
  comment: %(A HTTP-addressable resource whose lifecycle is managed by a LDP server.).freeze,
52
52
  label: "Resource".freeze,
53
53
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
@@ -55,7 +55,7 @@ module RDF
55
55
  "vs:term_status" => %(unstable).freeze
56
56
 
57
57
  # Property definitions
58
- property :"#contains",
58
+ property :contains,
59
59
  comment: %(Links a container with resources created through the container.).freeze,
60
60
  domain: "http://www.w3.org/ns/ldp#Container".freeze,
61
61
  label: "contains".freeze,
@@ -63,7 +63,7 @@ module RDF
63
63
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
64
64
  type: "rdf:Property".freeze,
65
65
  "vs:term_status" => %(unstable).freeze
66
- property :"#hasMemberRelation",
66
+ property :hasMemberRelation,
67
67
  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,
68
68
  domain: "http://www.w3.org/ns/ldp#Container".freeze,
69
69
  label: "hasMemberRelation".freeze,
@@ -71,7 +71,7 @@ module RDF
71
71
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
72
72
  type: "rdf:Property".freeze,
73
73
  "vs:term_status" => %(unstable).freeze
74
- property :"#insertedContentRelation",
74
+ property :insertedContentRelation,
75
75
  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,
76
76
  domain: "http://www.w3.org/ns/ldp#Container".freeze,
77
77
  label: "insertedContentRelation".freeze,
@@ -79,7 +79,7 @@ module RDF
79
79
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
80
80
  type: "rdf:Property".freeze,
81
81
  "vs:term_status" => %(unstable).freeze
82
- property :"#isMemberOfRelation",
82
+ property :isMemberOfRelation,
83
83
  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,
84
84
  domain: "http://www.w3.org/ns/ldp#Container".freeze,
85
85
  label: "isMemmberOfRelation".freeze,
@@ -87,7 +87,7 @@ module RDF
87
87
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
88
88
  type: "rdf:Property".freeze,
89
89
  "vs:term_status" => %(unstable).freeze
90
- property :"#member",
90
+ property :member,
91
91
  comment: %(LDP servers should use this predicate as the membership predicate if there is no obvious predicate from an application vocabulary to use.).freeze,
92
92
  domain: "http://www.w3.org/ns/ldp#Resource".freeze,
93
93
  label: "member".freeze,
@@ -95,7 +95,7 @@ module RDF
95
95
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
96
96
  type: "rdf:Property".freeze,
97
97
  "vs:term_status" => %(unstable).freeze
98
- property :"#membershipResource",
98
+ property :membershipResource,
99
99
  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,
100
100
  domain: "http://www.w3.org/ns/ldp#Container".freeze,
101
101
  label: "membershipResource".freeze,
@@ -105,32 +105,32 @@ module RDF
105
105
  "vs:term_status" => %(unstable).freeze
106
106
 
107
107
  # Extra definitions
108
- term :"#",
108
+ term :"",
109
109
  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,
110
110
  "dc:description" => %(All vocabulary URIs defined in the Linked Data Platform \(LDP\) namespace.).freeze,
111
111
  "dc:title" => %(The W3C Linked Data Platform \(LDP\) Vocabulary).freeze,
112
112
  label: "W3C Linked Data Platform (LDP)".freeze,
113
113
  "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],
114
114
  type: "owl:Ontology".freeze
115
- term :"#MemberSubject",
115
+ term :MemberSubject,
116
116
  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,
117
117
  label: "MemberSubject".freeze,
118
118
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
119
119
  type: "rdf:Description".freeze,
120
120
  "vs:term_status" => %(unstable).freeze
121
- term :"#PreferContainment",
121
+ term :PreferContainment,
122
122
  comment: %(URI identifying a LDPC's containment triples, for example to allow clients to express interest in receiving them.).freeze,
123
123
  label: "PreferContainment".freeze,
124
124
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
125
125
  type: "rdf:Description".freeze,
126
126
  "vs:term_status" => %(unstable).freeze
127
- term :"#PreferEmptyContainer",
127
+ term :PreferEmptyContainer,
128
128
  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,
129
129
  label: "PreferEmptyContainer".freeze,
130
130
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
131
131
  type: "rdf:Description".freeze,
132
132
  "vs:term_status" => %(unstable).freeze
133
- term :"#PreferMembership",
133
+ term :PreferMembership,
134
134
  comment: %(URI identifying a LDPC's membership triples, for example to allow clients to express interest in receiving them.).freeze,
135
135
  label: "PreferMembership".freeze,
136
136
  "rdfs:isDefinedBy" => %(http://www.w3.org/ns/ldp#).freeze,
@@ -16,7 +16,7 @@ describe RDF::LDP do
16
16
  expect(result.size).to eql 2
17
17
 
18
18
  stripped_graph = RDF::LDP.remove_ldp_triples graph
19
- expect(graph.count).to eql 39
19
+ expect(stripped_graph.count).to eql 29
20
20
  result = stripped_graph.query [nil, RDF.type, RDF::URI.new("http://www.w3.org/ns/ldp#Container")]
21
21
  expect(result.size).to eql 0
22
22
  result = stripped_graph.query [nil, RDF::URI.new("http://www.w3.org/ns/ldp#contains"), nil]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-ldp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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