public class DefaultIdentifierTranslator extends IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource>
IdentifierConverter 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 |
|---|---|
protected com.google.common.base.Converter<String,String> |
forward |
static String |
RESOURCE_NAMESPACE
Default namespace to use for node URIs
|
protected com.google.common.base.Converter<String,String> |
reverse |
| Constructor and Description |
|---|
DefaultIdentifierTranslator(javax.jcr.Session session)
Construct the graph with a placeholder context resource
|
| Modifier and Type | Method and Description |
|---|---|
String |
asString(com.hp.hpl.jena.rdf.model.Resource subject) |
protected com.hp.hpl.jena.rdf.model.Resource |
doBackward(FedoraResource resource) |
protected FedoraResource |
doForward(com.hp.hpl.jena.rdf.model.Resource subject) |
boolean |
inDomain(com.hp.hpl.jena.rdf.model.Resource subject) |
com.hp.hpl.jena.rdf.model.Resource |
toDomain(String absPath) |
public static final String RESOURCE_NAMESPACE
public DefaultIdentifierTranslator(javax.jcr.Session session)
session - the sessionprotected FedoraResource doForward(com.hp.hpl.jena.rdf.model.Resource subject)
doForward in class com.google.common.base.Converter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource>protected com.hp.hpl.jena.rdf.model.Resource doBackward(FedoraResource resource)
doBackward in class com.google.common.base.Converter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource>public boolean inDomain(com.hp.hpl.jena.rdf.model.Resource subject)
inDomain in class IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource>public com.hp.hpl.jena.rdf.model.Resource toDomain(String absPath)
toDomain in class IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource>public String asString(com.hp.hpl.jena.rdf.model.Resource subject)
asString in class IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource>Copyright © 2013-2015 DuraSpace, Inc.. All Rights Reserved.