public interface URIGenerator
RDFUtil.generateIdentifier(Context, DSpaceObject) to
get URIs for RDF data.
Please note that URIs can be generated for DSpaceObjects of the
type SITE, COMMUNITY, COLLECTION or ITEM only. Currently dspace-rdf
doesn't support Bundles or Bitstreams as independent entity.
RDFizer.RDFizer() uses a URIGenerator to generate URIs to
Identify DSpaceObjects in RDF. You can configure which URIGenerator should be
used. See DSpace documentation on how to configure RDFizer.RDFizer.RDFizer(),
RDFUtil.RDFUtil()| Modifier and Type | Method and Description |
|---|---|
String |
generateIdentifier(Context context,
DSpaceObject dso)
Shortcut for
generateIdentifier(context, dso.getType(), dso.getID(), dso.getHandle()). |
String |
generateIdentifier(Context context,
int type,
UUID id,
String handle,
List<String> identifiers)
Generate a URI that can be used to identify the specified DSpaceObject in
RDF data.
|
String generateIdentifier(Context context, int type, UUID id, String handle, List<String> identifiers) throws SQLException
context - DSpace Context.type - Type of the DSpaceObject you want to generate a URI for (e.g.
Constants.ITEM.id - UUID of the DSpaceObject you want to generate a URI for.handle - Handle of the DSpaceObject you want to generate a URI for.identifiers - list of identifiersSQLException - An exception that provides information on a database access error or other errors.RDFUtil.generateIdentifier(Context, DSpaceObject)String generateIdentifier(Context context, DSpaceObject dso) throws SQLException
generateIdentifier(context, dso.getType(), dso.getID(), dso.getHandle()).context - The relevant DSpace Context.dso - DSpace object to generate identifier forSQLException - An exception that provides information on a database access error or other errors.Copyright © 2019 DuraSpace. All rights reserved.