|
Franz Inc, AllegroGraph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openrdf.model.impl.ValueFactoryBase
org.openrdf.model.impl.ValueFactoryImpl
com.franz.agraph.repository.AGValueFactory
public class AGValueFactory
Implements the Sesame ValueFactory interface for AllegroGraph.
Field Summary | |
---|---|
String |
PREFIX_FOR_EXTERNAL_BNODES
|
Constructor Summary | |
---|---|
AGValueFactory(AGRepository repository)
|
|
AGValueFactory(AGRepository repository,
AGRepositoryConnection conn)
|
Method Summary | |
---|---|
Resource |
asResource(Node node)
|
URI |
asURI(Node node)
|
Value |
asValue(Node node)
Creates an OpenRDF Value from a concrete Jena Node. |
BNode |
createBNode()
Returns a new blank node. |
BNode |
createBNode(String nodeID)
Returns a new blank node with the given id. |
URI |
generateURI(String registeredEncodableNamespace)
Returns a unique URI within the specified encodable namespace. |
URI[] |
generateURIs(String namespace,
int amount)
Returns unique URIs within the specified encodable namespace. |
com.franz.agraph.http.AGHTTPClient |
getHTTPClient()
|
AGRepository |
getRepository()
|
boolean |
isAGBlankNodeId(String id)
Return true iff id looks like an AG blank node id. |
boolean |
isURIForExternalBlankNode(Value v)
|
Methods inherited from class org.openrdf.model.impl.ValueFactoryImpl |
---|
createLiteral, createLiteral, createLiteral, createStatement, createStatement, createURI, createURI, getInstance |
Methods inherited from class org.openrdf.model.impl.ValueFactoryBase |
---|
createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String PREFIX_FOR_EXTERNAL_BNODES
Constructor Detail |
---|
public AGValueFactory(AGRepository repository)
public AGValueFactory(AGRepository repository, AGRepositoryConnection conn)
Method Detail |
---|
public AGRepository getRepository()
public com.franz.agraph.http.AGHTTPClient getHTTPClient()
public BNode createBNode(String nodeID)
createBNode
in interface ValueFactory
createBNode
in class ValueFactoryImpl
AGHttpRepoClient.setAllowExternalBlankNodeIds(boolean)
,
AGRepositoryConnection.getHttpRepoClient()
public BNode createBNode()
createBNode
in interface ValueFactory
createBNode
in class ValueFactoryBase
AGHttpRepoClient.setAllowExternalBlankNodeIds(boolean)
,
AGRepositoryConnection.getHttpRepoClient()
public Value asValue(Node node)
node
- a concrete Jena node.
public boolean isAGBlankNodeId(String id)
id
- the string to be tested
public boolean isURIForExternalBlankNode(Value v)
public Resource asResource(Node node)
public URI asURI(Node node)
public URI[] generateURIs(String namespace, int amount) throws RepositoryException
The generated URIs will conform to the format that was specified when the encodable namespace was registered, and are guaranteed to be unique for this namespace generator. Note that this does not prevent other parties from independently using URIs that involve this namespace, however.
If amount cannot be generated, up to amount URIs will be returned, or an exception will be thrown if none are available.
RepositoryException
AGRepositoryConnection.registerEncodableNamespace(String, String)
,
generateURI(String)
public URI generateURI(String registeredEncodableNamespace) throws RepositoryException
The generated URI will conform to the format that was specified when the encodable namespace was registered, and is guaranteed to be unique for this namespace generator. Note that this does not prevent other parties from independently using URIs that involve this namespace, however.
RepositoryException
AGRepositoryConnection.registerEncodableNamespace(String, String)
,
generateURIs(String, int)
|
Copyright © 2008-2011 Franz Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |