|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.rdf.axioms.BaseAxioms
public abstract class BaseAxioms
A collection of axioms.
Axioms are generated by AbstractTripleStore.create() based on
its configured properties. While the implementation class declares axioms in
terms of RDF Values, the BaseAxioms only retains the set of
{s:p:o} tuples for the term identifiers corresponding those those
Values. That {s:p:o} tuple array is the serialized state of this
class. When an AbstractTripleStore is reopened, the axioms are
de-serialized from a property in the global row store.
| Constructor Summary | |
|---|---|
protected |
BaseAxioms()
De-serialization constructor. |
protected |
BaseAxioms(String namespace)
Ctor variant used by AbstractTripleStore.create(). |
| Method Summary | |
|---|---|
protected void |
addAxioms(Collection<BigdataStatement> axioms)
Adds all axioms declared by this class into axioms. |
Iterator<SPO> |
axioms()
The axioms in {s:p:o} order by their term identifiers. |
String |
getNamespace()
The namespace of the owning LexiconRelation. |
protected BigdataValueFactory |
getValueFactory()
The value factory to be used when creating axioms. |
void |
init(AbstractTripleStore db)
Uses addAxioms(Collection) to collect the declared axioms and
then writes the axioms onto the database specified to the
BaseAxioms#BaseAxioms(AbstractTripleStore) ctor. |
boolean |
isAxiom(IV s,
IV p,
IV o)
Test for an axiom. |
void |
readExternal(ObjectInput in)
|
int |
size()
The #of defined axioms. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.bigdata.rdf.axioms.Axioms |
|---|
isNone, isOwlSameAs, isRdfSchema |
| Constructor Detail |
|---|
protected BaseAxioms()
protected BaseAxioms(String namespace)
AbstractTripleStore.create().
Note: When de-serializing a BaseAxioms object the zero-arg ctor
will be used.
namespace - The namespace for the AbstractTripleStore instance.| Method Detail |
|---|
public final String getNamespace()
AxiomsLexiconRelation.
getNamespace in interface Axiomsprotected final BigdataValueFactory getValueFactory()
IllegalStateException - unless the ctor variant was used that specifies the database.public final void init(AbstractTripleStore db)
addAxioms(Collection) to collect the declared axioms and
then writes the axioms onto the database specified to the
BaseAxioms#BaseAxioms(AbstractTripleStore) ctor.
IllegalStateException - if that ctor was not used.protected void addAxioms(Collection<BigdataStatement> axioms)
Note: Subclasses MUST extend this method to add their axioms into the axioms collection.
axioms - A collection into which the axioms will be inserted.
IllegalArgumentException - if the parameter is null.
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public final boolean isAxiom(IV s,
IV p,
IV o)
Axioms
isAxiom in interface Axiomss - The internal value (IV) in the subject position.p - The internal value (IV) in the predicate position.o - The internal value (IV) in the object position.public final int size()
Axioms
size in interface Axiomspublic final Iterator<SPO> axioms()
Axioms
axioms in interface Axioms
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||