public class IDGenerator extends Object implements IIDGenerator
Constructor and Description |
---|
IDGenerator(String endpoint,
UUID uuid,
org.openrdf.model.ValueFactory valueFactory) |
public IDGenerator(String endpoint, UUID uuid, org.openrdf.model.ValueFactory valueFactory)
endpoint
- The SPARQL endpoint.uuid
- The UUID
for the IObjectManager
. This is used
to avoid collisions between different IObjectManager
s.valueFactory
- The ValueFactory
that will be used when new
URI
s are generated.public org.openrdf.model.URI genId()
IIDGenerator
genId
in interface IIDGenerator
public org.openrdf.model.URI genId(String scope)
IIDGenerator
genId
in interface IIDGenerator
scope
- The scope will be incorporated into the URI. This is not
necessary to make the URI globally unique, but it can make it
easier to embed some non-opaque semantics into a globally
unique URI.public void rollback()
IIDGenerator
rollback
in interface IIDGenerator
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.