rdf-ldp 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/VERSION +1 -1
- data/lib/rdf/ldp/direct_container.rb +2 -2
- data/lib/rdf/ldp/indirect_container.rb +3 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1fb8fbd183ec6b222e4a1d8f70c95a530111e09
|
4
|
+
data.tar.gz: fe49505fd5a0b6442af69f691ffc4450e7a301a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35cefba9e0d2cd219d63cca897bf423950f5baa9de5eed003c47d6e4166688beb328e00f07e56541c6e871f2dcad1bdc5cf1af31e8d9af0cfe3c6c8aa16c53a8
|
7
|
+
data.tar.gz: 9dfb9d04d821a4058b087ea1ebc5559ec03d26186e8356ec698cf5576b8afe06ef478fcc17f1b48f27b1988e0e92b9ccecdae83cea642df14a184c5fb19d487d
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
@@ -133,8 +133,8 @@ module RDF::LDP
|
|
133
133
|
end
|
134
134
|
|
135
135
|
def member_relation_statements
|
136
|
-
graph.
|
137
|
-
|
136
|
+
graph.query([subject_uri, nil, nil]).select do |st|
|
137
|
+
RELATION_TERMS.include?(st.predicate)
|
138
138
|
end
|
139
139
|
end
|
140
140
|
|
@@ -45,7 +45,7 @@ module RDF::LDP
|
|
45
45
|
case statements.count
|
46
46
|
when 0
|
47
47
|
graph << RDF::Statement(subject_uri,
|
48
|
-
RDF::Vocab::LDP.
|
48
|
+
RDF::Vocab::LDP.insertedContentRelation,
|
49
49
|
RDF::Vocab::LDP.MemberSubject)
|
50
50
|
RDF::Vocab::LDP.MemberSubject
|
51
51
|
when 1
|
@@ -60,10 +60,8 @@ module RDF::LDP
|
|
60
60
|
private
|
61
61
|
|
62
62
|
def inserted_content_statements
|
63
|
-
graph.
|
64
|
-
|
65
|
-
st.predicate == RDF::Vocab::LDP.indirectContentRelation
|
66
|
-
end
|
63
|
+
graph.query([subject_uri, RDF::Vocab::LDP.insertedContentRelation, nil])
|
64
|
+
.statements
|
67
65
|
end
|
68
66
|
|
69
67
|
def process_membership_resource(resource, &block)
|