RDF::Core::Storage - An abstract ancestor of storage implementations
Storage is the place where statements reside. It can add, remove, count and get statements and ask about their existence.
new(\%options)
Options depend on implementation of descendant. (Such as RDF::Core::Storage::Memory, RDF::Core::Storage::DB_File, RDF::Core::Storage::Postgres.)
addStmt($statement)
Add RDF::Core::Statement instance to the storage, unless it already exists there.
removeStmt($statement)
Remove statement from the storage, if it's there.
existsStmt($subject,$predicate,$object)
Check if statement exists, that matches given mask. Parameters can be undefined, every value matches undefined parameter.
countStmts($subject,$predicate,$object)
Count matching statements.
getStmts($subject,$predicate,$object)
Retrieve matching statements. Returns RDF::Core::Enumerator object. (One of it's descendants.)
This package is subject to the MPL (or the GPL alternatively).
Ginger Alliance, rdf@gingerall.cz
RDF::Core::Storage::Memory, RDF::Core::Storage::DB_File, RDF::Core::Storage::Postgres
To install RDF::Core, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::Core
CPAN shell
perl -MCPAN -e shell install RDF::Core
For more information on module installation, please visit the detailed CPAN module installation guide.