public interface BigdataValueFactory
extends org.openrdf.model.ValueFactory
BigdataValueFactoryImpl.getInstance(String)
Modifier and Type | Method and Description |
---|---|
BigdataBNode |
asValue(org.openrdf.model.BNode v)
Strongly typed for
BNode s. |
BigdataLiteral |
asValue(org.openrdf.model.Literal v)
Strongly typed for
Literal s. |
BigdataResource |
asValue(org.openrdf.model.Resource v)
Strongly typed for
Resource s. |
BigdataURI |
asValue(org.openrdf.model.URI v)
Strongly typed for
URI s. |
BigdataValue |
asValue(org.openrdf.model.Value v)
Converts a
Value into a BigdataValue . |
BigdataBNode |
createBNode() |
BigdataBNode |
createBNode(BigdataStatement stmt) |
BigdataBNode |
createBNode(String id) |
BigdataLiteral |
createLiteral(boolean arg0) |
BigdataLiteral |
createLiteral(byte arg0) |
BigdataLiteral |
createLiteral(byte arg0,
boolean unsigned) |
BigdataLiteral |
createLiteral(Date arg0) |
BigdataLiteral |
createLiteral(double arg0) |
BigdataLiteral |
createLiteral(float arg0) |
BigdataLiteral |
createLiteral(int arg0) |
BigdataLiteral |
createLiteral(int arg0,
boolean unsigned) |
BigdataLiteral |
createLiteral(long arg0) |
BigdataLiteral |
createLiteral(long arg0,
boolean unsigned) |
BigdataLiteral |
createLiteral(short arg0) |
BigdataLiteral |
createLiteral(short arg0,
boolean unsigned) |
BigdataLiteral |
createLiteral(String label) |
BigdataLiteral |
createLiteral(String label,
String language) |
BigdataLiteral |
createLiteral(String label,
org.openrdf.model.URI datatype) |
BigdataLiteral |
createLiteral(String label,
org.openrdf.model.URI datatype,
String language) |
BigdataLiteral |
createLiteral(XMLGregorianCalendar arg0) |
BigdataStatement |
createStatement(org.openrdf.model.Resource s,
org.openrdf.model.URI p,
org.openrdf.model.Value o)
Create a statement whose
StatementEnum is NOT specified. |
BigdataStatement |
createStatement(org.openrdf.model.Resource s,
org.openrdf.model.URI p,
org.openrdf.model.Value o,
org.openrdf.model.Resource c)
Create a statement whose
StatementEnum is NOT specified. |
BigdataStatement |
createStatement(org.openrdf.model.Resource s,
org.openrdf.model.URI p,
org.openrdf.model.Value o,
org.openrdf.model.Resource c,
StatementEnum type)
Create a statement (core impl).
|
BigdataStatement |
createStatement(org.openrdf.model.Resource s,
org.openrdf.model.URI p,
org.openrdf.model.Value o,
org.openrdf.model.Resource c,
StatementEnum type,
boolean userFlag)
Create a statement (core impl).
|
BigdataURI |
createURI(String uriString) |
BigdataURI |
createURI(String namespace,
String localName) |
BigdataLiteral |
createXSDDateTime(long timestamp) |
String |
getNamespace()
The namespace of the KB instance associated with the value factory.
|
BigdataValueSerializer<BigdataValue> |
getValueSerializer()
An object that can efficiently (de-)serialize
Value s using this
ValueFactory . |
BigdataValueFactory |
newBNodeContext()
Returns a factory that will assign its blank node IDs within a globally
unique namespace.
|
void |
remove()
Remove instance of valueFactory from static cache
|
String getNamespace()
void remove()
BigdataValueFactory newBNodeContext()
BigdataValue
s are
actually created by this factory, it is only the semantics of
blank node ID generation that are overridden.BNodeContextFactory
BigdataBNode createBNode()
createBNode
in interface org.openrdf.model.ValueFactory
BigdataBNode createBNode(String id)
createBNode
in interface org.openrdf.model.ValueFactory
BigdataBNode createBNode(BigdataStatement stmt)
BigdataLiteral createLiteral(String label)
createLiteral
in interface org.openrdf.model.ValueFactory
BigdataLiteral createLiteral(boolean arg0)
createLiteral
in interface org.openrdf.model.ValueFactory
BigdataLiteral createLiteral(byte arg0)
createLiteral
in interface org.openrdf.model.ValueFactory
BigdataLiteral createLiteral(short arg0)
createLiteral
in interface org.openrdf.model.ValueFactory
BigdataLiteral createLiteral(int arg0)
createLiteral
in interface org.openrdf.model.ValueFactory
BigdataLiteral createLiteral(long arg0)
createLiteral
in interface org.openrdf.model.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 org.openrdf.model.ValueFactory
BigdataLiteral createLiteral(double arg0)
createLiteral
in interface org.openrdf.model.ValueFactory
BigdataLiteral createLiteral(XMLGregorianCalendar arg0)
createLiteral
in interface org.openrdf.model.ValueFactory
BigdataLiteral createLiteral(Date arg0)
createLiteral
in interface org.openrdf.model.ValueFactory
BigdataLiteral createXSDDateTime(long timestamp)
BigdataLiteral createLiteral(String label, String language)
createLiteral
in interface org.openrdf.model.ValueFactory
BigdataLiteral createLiteral(String label, org.openrdf.model.URI datatype)
createLiteral
in interface org.openrdf.model.ValueFactory
BigdataLiteral createLiteral(String label, org.openrdf.model.URI datatype, String language)
BigdataURI createURI(String uriString)
createURI
in interface org.openrdf.model.ValueFactory
BigdataURI createURI(String namespace, String localName)
createURI
in interface org.openrdf.model.ValueFactory
BigdataStatement createStatement(org.openrdf.model.Resource s, org.openrdf.model.URI p, org.openrdf.model.Value o)
StatementEnum
is NOT specified.createStatement
in interface org.openrdf.model.ValueFactory
BigdataStatement createStatement(org.openrdf.model.Resource s, org.openrdf.model.URI p, org.openrdf.model.Value o, org.openrdf.model.Resource c)
StatementEnum
is NOT specified.createStatement
in interface org.openrdf.model.ValueFactory
BigdataStatement createStatement(org.openrdf.model.Resource s, org.openrdf.model.URI p, org.openrdf.model.Value o, org.openrdf.model.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(org.openrdf.model.Resource s, org.openrdf.model.URI p, org.openrdf.model.Value o, org.openrdf.model.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(org.openrdf.model.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 BigdataValue
s 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
BigdataValue
s when possible.
v
- The value.BigdataValue
with the same data. If the value is
null
then null
is returned.BigdataResource asValue(org.openrdf.model.Resource v)
Resource
s.BigdataURI asValue(org.openrdf.model.URI v)
URI
s.BigdataLiteral asValue(org.openrdf.model.Literal v)
Literal
s.BigdataBNode asValue(org.openrdf.model.BNode v)
BNode
s.BigdataValueSerializer<BigdataValue> getValueSerializer()
Value
s 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 BigdataValue
s MIGHT be from different
lexicons.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.