RDF::Core::Storage - An abstract ancestor of storage implementations


RDF-Core documentation  | view source Contained in the RDF-Core distribution.

Index


NAME

Top

RDF::Core::Storage - An abstract ancestor of storage implementations

DESCRIPTION

Top

Storage is the place where statements reside. It can add, remove, count and get statements and ask about their existence.

Interface

* 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.)

LICENSE

Top

This package is subject to the MPL (or the GPL alternatively).

AUTHOR

Top

Ginger Alliance, rdf@gingerall.cz

SEE ALSO

Top

RDF::Core::Storage::Memory, RDF::Core::Storage::DB_File, RDF::Core::Storage::Postgres


RDF-Core documentation  | view source Contained in the RDF-Core distribution.