# File lib/rdf/redland/model.rb, line 194 def triples(context=nil) stream = self.as_stream(context) return nil if not stream if block_given? while not stream.end? yield stream.current.subject ,stream.current.predicate,stream.current.object stream.next end else return get_statement_array(stream) end end