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

- NAME
- DESCRIPTION

- Interface

- LICENSE
- AUTHOR
- SEE ALSO

# NAME

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

# DESCRIPTION

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

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

# AUTHOR

Ginger Alliance, rdf@gingerall.cz

# SEE ALSO

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