public class DefaultIdentifierTranslator extends Object implements org.fcrepo.kernel.rdf.IdentifierTranslator
IdentifierTranslator which translates JCR paths into
un-dereference-able Fedora subjects (by replacing JCR-specific names with
Fedora names). Should not be used except in "embedded" deployments in which
no publication of translated identifiers is expected!| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_NAMESPACE
Default namespace to use for node URIs
|
| Constructor and Description |
|---|
DefaultIdentifierTranslator()
Construct the graph with a placeholder context resource
|
| Modifier and Type | Method and Description |
|---|---|
com.hp.hpl.jena.rdf.model.Resource |
getContext() |
String |
getPathFromSubject(com.hp.hpl.jena.rdf.model.Resource subject) |
com.hp.hpl.jena.rdf.model.Resource |
getSubject(String absPath) |
boolean |
isFedoraGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject) |
public static final String RESOURCE_NAMESPACE
public DefaultIdentifierTranslator()
public com.hp.hpl.jena.rdf.model.Resource getSubject(String absPath) throws javax.jcr.RepositoryException
getSubject in interface org.fcrepo.kernel.rdf.IdentifierTranslatorjavax.jcr.RepositoryExceptionpublic com.hp.hpl.jena.rdf.model.Resource getContext()
getContext in interface org.fcrepo.kernel.rdf.IdentifierTranslatorpublic String getPathFromSubject(com.hp.hpl.jena.rdf.model.Resource subject) throws javax.jcr.RepositoryException
getPathFromSubject in interface org.fcrepo.kernel.rdf.IdentifierTranslatorjavax.jcr.RepositoryExceptionpublic boolean isFedoraGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject)
isFedoraGraphSubject in interface org.fcrepo.kernel.rdf.IdentifierTranslatorCopyright © 2013–2014 DuraSpace, Inc.. All rights reserved.