|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BigdataValueFactory
Interface strengthens the return types and adds some custom extensions.
BigdataValueFactoryImpl.getInstance(String)| Method Detail |
|---|
String getNamespace()
void remove()
BigdataValueFactory newBNodeContext()
BigdataValues are
actually created by this factory, it is only the semantics of
blank node ID generation that are overridden.
BNodeContextFactoryBigdataBNode createBNode()
createBNode in interface ValueFactoryBigdataBNode createBNode(String id)
createBNode in interface ValueFactoryBigdataLiteral createLiteral(String label)
createLiteral in interface ValueFactoryBigdataLiteral createLiteral(boolean arg0)
createLiteral in interface ValueFactoryBigdataLiteral createLiteral(byte arg0)
createLiteral in interface ValueFactoryBigdataLiteral createLiteral(short arg0)
createLiteral in interface ValueFactoryBigdataLiteral createLiteral(int arg0)
createLiteral in interface ValueFactoryBigdataLiteral createLiteral(long arg0)
createLiteral in interface ValueFactory
BigdataLiteral createLiteral(byte arg0,
boolean unsigned)
BigdataLiteral createLiteral(short arg0,
boolean unsigned)
BigdataLiteral createLiteral(int arg0,
boolean unsigned)
BigdataLiteral createLiteral(long arg0,
boolean unsigned)
BigdataLiteral createLiteral(float arg0)
createLiteral in interface ValueFactoryBigdataLiteral createLiteral(double arg0)
createLiteral in interface ValueFactoryBigdataLiteral createLiteral(XMLGregorianCalendar arg0)
createLiteral in interface ValueFactory
BigdataLiteral createLiteral(String label,
String language)
createLiteral in interface ValueFactory
BigdataLiteral createLiteral(String label,
URI datatype)
createLiteral in interface ValueFactoryBigdataURI createURI(String uriString)
createURI in interface ValueFactory
BigdataURI createURI(String namespace,
String localName)
createURI in interface ValueFactory
BigdataStatement createStatement(Resource s,
URI p,
Value o)
StatementEnum is NOT specified.
createStatement in interface ValueFactory
BigdataStatement createStatement(Resource s,
URI p,
Value o,
Resource c)
StatementEnum is NOT specified.
createStatement in interface ValueFactory
BigdataStatement createStatement(Resource s,
URI p,
Value o,
Resource c,
StatementEnum type)
BigdataValueFactory using
asValue(Value).
s - The subject.p - The predicate.o - The object.c - The context (optional). Note: When non-null
and statement identifiers are enabled, then this will be a
blank node whose term identifier is the statement identifier.type - The statement type (optional).
BigdataStatement createStatement(Resource s,
URI p,
Value o,
Resource c,
StatementEnum type,
boolean userFlag)
BigdataValueFactory using
asValue(Value).
s - The subject.p - The predicate.o - The object.c - The context (optional). Note: When non-null
and statement identifiers are enabled, then this will be a
blank node whose term identifier is the statement identifier.type - The statement type (optional).userFlag - The user flagBigdataValue asValue(Value v)
Value into a BigdataValue. If the value is
already a BigdataValue and it was allocated by this
BigdataValueFactoryImpl then it is returned unchanged. Otherwise a
new BigdataValue will be creating using the same data as the
given value and the term identifier on the new BigdataValue will
be initialized to IRawTripleStore#NULL.
All BigdataValues created by a BigdataValueFactoryImpl
internally store a transient reference to the BigdataValueFactoryImpl.
This reference is used to decide if a BigdataValue MIGHT have
been created by a different lexicon (term identifiers generated by
different lexicons CAN NOT be used interchangeably). This has the effect
of protecting against incorrect use of the term identifier with a
database backed by a different lexicon while allowing reuse of the
BigdataValues when possible.
v - The value.
BigdataValue with the same data. If the value is
null then null is returned.BigdataResource asValue(Resource v)
Resources.
BigdataURI asValue(URI v)
URIs.
BigdataLiteral asValue(Literal v)
Literals.
BigdataBNode asValue(BNode v)
BNodes.
BigdataValueSerializer<BigdataValue> getValueSerializer()
Values using this
ValueFactory. When the values are de-serialized they will have a
reference to this BigdataValueFactoryImpl. That reference can be
used to identify when two BigdataValues MIGHT be from different
lexicons.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||