Module: Tripod::Repository::ClassMethods
- Defined in:
- lib/tripod/repository.rb
Instance Method Summary collapse
-
#add_data_to_repository(graph, repo = nil) ⇒ Object
for triples in the graph passed in, add them to the passed in repository obj, and return the repository objects if no repository passed, make a new one.
Instance Method Details
#add_data_to_repository(graph, repo = nil) ⇒ Object
for triples in the graph passed in, add them to the passed in repository obj, and return the repository objects if no repository passed, make a new one.
79 80 81 82 83 84 85 86 87 88 |
# File 'lib/tripod/repository.rb', line 79 def add_data_to_repository(graph, repo=nil) repo ||= RDF::Repository.new() graph.each_statement do |statement| repo << statement end repo end |