jekyll-rdf 2.1.3.pre.develop.269 → 2.1.3.pre.develop.270
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/drops/rdf_resource.rb +6 -0
- data/lib/jekyll/drops/rdf_statement.rb +5 -0
- data/lib/jekyll/drops/rdf_term.rb +4 -0
- 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: 9d5e8580ed0ff19261291f9d9a340ef9a1b60ffd
|
4
|
+
data.tar.gz: 9c4711e248b672f99fc146322da77c49bc45e99e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d28f8aec37668d3714f4ed3c98178d98350723bbdb18e00b9c30deb85f9a6561d7c2b5e396b40f06870085d4708e76d423c811db713d8a09a14a80302f483f4
|
7
|
+
data.tar.gz: 013af97df26c6b8ace44d3e97346655a7830f7e6629b30c2860dd45a99df2db22bbb94131977816851fd811e9a89893e2a0671b3abd85b4c07f0f3709de0d3db
|
@@ -57,6 +57,7 @@ module Jekyll #:nodoc:
|
|
57
57
|
if(page.is_a?(Jekyll::Page))
|
58
58
|
@page = page
|
59
59
|
end
|
60
|
+
@subResources = {}
|
60
61
|
end
|
61
62
|
|
62
63
|
def add_necessities(site, page)
|
@@ -181,6 +182,11 @@ module Jekyll #:nodoc:
|
|
181
182
|
end
|
182
183
|
end
|
183
184
|
|
185
|
+
def inspect
|
186
|
+
obj_id = ('%x' % (self.object_id << 1)).to_s
|
187
|
+
return "#<RdfResource:0x#{"0"*(14 - obj_id.length)}#{obj_id} @iri=#{iri} @subResources=[#{subResources.map { |x| x.inspect}.join(", ")}]>"
|
188
|
+
end
|
189
|
+
|
184
190
|
#checks if a query solution contains a language or type tag and returns those in a hash
|
185
191
|
private
|
186
192
|
def check_solution(solution)
|
@@ -57,6 +57,11 @@ module Jekyll
|
|
57
57
|
@predicate ||= Jekyll::Drops::RdfTerm.build_term_drop(statement.predicate, sparql, site)
|
58
58
|
@object ||= Jekyll::Drops::RdfTerm.build_term_drop(statement.object, sparql, site)
|
59
59
|
end
|
60
|
+
|
61
|
+
def inspect
|
62
|
+
obj_id = ('%x' % (self.object_id << 1)).to_s
|
63
|
+
return "#<RdfStatement:0x#{"0"*(14 - obj_id.length)}#{obj_id} @subject=#{subject.inspect} @predicate=#{predicate.inspect} @object=#{object.inspect}>"
|
64
|
+
end
|
60
65
|
end
|
61
66
|
end
|
62
67
|
end
|