Class | Redland::Model |
In: |
lib/rdf/redland/model.rb
|
Parent: | Object |
model | [R] |
Constructor - takes an optional argument store, which should be one of the storage classes (all derived from TripleStore)
Add the triples (s,p,o) to the model with the optional context
yield the contexts defined in the model. If the store wasn‘t set up for contexts raises a RedlandError. If no block_given returns an array of the contexts
create a resource for this model. The str can be a String, or a Redland::Uri
find the statements matching the given triple. The triples can be nil
Find all triples with FOAF[‘firstName’] of Dominic
model.find(nil,FOAF['firstName'],'Dominic Sisneros'){|s,p,o ...}
get a resource given by str. If arg is a string it will create a Resource from it.
parser the file with the given parser and uri and smushes the file with the model on the statements with the given predlist
Effectively removes a Predicate from the Model by replacing all occurrences with a blank node (?? confirm)
Yield the triples subject, predicate, and object if a block is given. Otherwise return an array of the statements
Yield the triples as well as the context