lib/rdf/rdfxml/reader.rb
# add a statement, object can be literal or URI or bnode
#
# @param [Nokogiri::XML::Node, any] node XML Node or string for showing context
# @param [URI, BNode] subject the subject of the statement
# @param [URI] predicate the predicate of the statement
# @param [URI, BNode, Literal] object the object of the statement
# @return [Statement] Added statement
# @raise [RDF::ReaderError] Checks parameter types and raises if they are incorrect if validating.
add a statement, object can be literal or URI or bnode
add a statement object can be literal or URI or bnode
def add_triple(node, subject, predicate, object)
      statement = RDF::Statement(subject, predicate, object)
      add_debug(node) {"statement: #{statement}"}
      @callback.call(statement)
    end
def add_triple ( node , subject , predicate , object ) statement = RDF :: Statement ( subject , predicate , object ) add_debug ( node ) { "statement: #{statement}" } @callback . call ( statement ) end
add a statement, object can be literal or URI or bnode
add a statement object can be literal or URI or bnode
None
Statement
[RDF::ReaderError] Checks parameter types and raises if they are incorrect if validating.
[ RDF :: ReaderError ] Checks parameter types and raises if they are incorrect if validating .
node
<not_specific>
subject
<not_specific>
predicate
<not_specific>
object
<not_specific>
<not_specific>
object the object of the statement
object the object of the statement