class Jekyll::JekyllRdf::Drops::RdfGraph
Attributes
graph[R]
Public Class Methods
new(graph)
click to toggle source
# File lib/jekyll/drops/rdf_graph.rb, line 32 def initialize(graph) @graph = graph end
Public Instance Methods
to_nquads()
click to toggle source
# File lib/jekyll/drops/rdf_graph.rb, line 40 def to_nquads result = @graph.statements.map{|state| state.to_nquads }.join("") return result end
to_ntriples()
click to toggle source
# File lib/jekyll/drops/rdf_graph.rb, line 47 def to_ntriples result = @graph.statements.map{|state| state.to_ntriples }.join("") return result end
to_s()
click to toggle source
# File lib/jekyll/drops/rdf_graph.rb, line 36 def to_s to_nquads end