public class DefaultGraphSubjects extends Object implements GraphSubjects
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_NAMESPACE
Default namespace to use for node URIs
|
| Constructor and Description |
|---|
DefaultGraphSubjects(javax.jcr.Session session)
Construct the graph with a placeholder context resource
|
| Modifier and Type | Method and Description |
|---|---|
com.hp.hpl.jena.rdf.model.Resource |
getContext()
Get a context resource
|
com.hp.hpl.jena.rdf.model.Resource |
getGraphSubject(javax.jcr.Node node)
Translate a JCR node into an RDF Resource
|
com.hp.hpl.jena.rdf.model.Resource |
getGraphSubject(String absPath)
Get the RDF resource for an absolute path
|
javax.jcr.Node |
getNodeFromGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject)
Translate an RDF resource into a JCR node
|
String |
getPathFromGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject)
Translate an RDF resource into a JCR path
|
boolean |
isFedoraGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject)
Predicate for determining whether this
Resource is a Fedora object. |
public static final String RESOURCE_NAMESPACE
public DefaultGraphSubjects(javax.jcr.Session session)
public com.hp.hpl.jena.rdf.model.Resource getGraphSubject(String absPath) throws javax.jcr.RepositoryException
GraphSubjectsgetGraphSubject in interface GraphSubjectsabsPath - the absolute path to the JCR nodejavax.jcr.RepositoryExceptionpublic com.hp.hpl.jena.rdf.model.Resource getContext()
GraphSubjectsgetContext in interface GraphSubjectspublic com.hp.hpl.jena.rdf.model.Resource getGraphSubject(javax.jcr.Node node)
throws javax.jcr.RepositoryException
GraphSubjectsgetGraphSubject in interface GraphSubjectsjavax.jcr.RepositoryExceptionpublic javax.jcr.Node getNodeFromGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject)
throws javax.jcr.RepositoryException
GraphSubjectsgetNodeFromGraphSubject in interface GraphSubjectssubject - an RDF URI resourcejavax.jcr.RepositoryExceptionpublic String getPathFromGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject) throws javax.jcr.RepositoryException
GraphSubjectsgetPathFromGraphSubject in interface GraphSubjectsjavax.jcr.RepositoryExceptionpublic boolean isFedoraGraphSubject(com.hp.hpl.jena.rdf.model.Resource subject)
GraphSubjectsResource is a Fedora object.isFedoraGraphSubject in interface GraphSubjectsCopyright © 2013 DuraSpace, Inc.. All Rights Reserved.