public class JcrRdfTools extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.collect.BiMap<String,String> |
jcrNamespacesToRDFNamespaces
A map of JCR namespaces to Fedora's RDF namespaces
|
static com.google.common.collect.BiMap<String,String> |
rdfNamespacesToJcrNamespaces
A map of Fedora's RDF namespaces to the JCR equivalent
|
| Constructor and Description |
|---|
JcrRdfTools(GraphSubjects graphSubjects)
Factory method to create a new JcrRdfTools utility
with a graph subjects converter
|
JcrRdfTools(GraphSubjects graphSubjects,
javax.jcr.Session session)
Factory method to create a new JcrRdfTools utility
with a graph subjects converter
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getJcrNamespaceForRDFNamespace(String rdfNamespaceUri)
Convert a Fedora RDF Namespace into its JCR equivalent
|
com.hp.hpl.jena.rdf.model.Model |
getJcrNamespaceModel()
Get an RDF model of the registered JCR namespaces
|
com.hp.hpl.jena.rdf.model.Model |
getJcrPropertiesModel()
Create a default Jena Model populated with the registered JCR namespaces
|
com.hp.hpl.jena.rdf.model.Model |
getJcrPropertiesModel(Iterator<javax.jcr.Node> nodeIterator,
com.hp.hpl.jena.rdf.model.Resource iteratorSubject)
Get an RDF model for the given JCR NodeIterator
|
com.hp.hpl.jena.rdf.model.Model |
getJcrPropertiesModel(javax.jcr.Node node)
Get an RDF Model for a node that includes all its own JCR properties, as
well as the properties of its immediate children.
|
com.hp.hpl.jena.rdf.model.Model |
getJcrPropertiesModel(javax.jcr.Node node,
Iterable<FixityResult> blobs)
Serialize the JCR fixity information in a Jena Model
|
com.hp.hpl.jena.rdf.model.Model |
getJcrPropertiesModel(javax.jcr.version.VersionHistory versionHistory,
com.hp.hpl.jena.rdf.model.Resource subject)
Get a Jena RDF model for the JCR version history information for a node
|
com.hp.hpl.jena.rdf.model.Model |
getJcrTreeModel(javax.jcr.Node node,
long offset,
int limit)
Add the properties of a Node's parent and immediate children (as well as
the jcr:content of children) to the given RDF model
|
static com.hp.hpl.jena.rdf.model.Model |
getProblemsModel()
Get a model in which to collect statements of RDF extraction problems
|
static String |
getRDFNamespaceForJcrNamespace(String jcrNamespaceUri)
Convert a JCR namespace into an RDF namespace fit for downstream
consumption.
|
boolean |
isInternalProperty(javax.jcr.Node subjectNode,
com.hp.hpl.jena.rdf.model.Resource predicate)
Determine if a predicate is an internal property of a node (and
should not be modified from external sources)
|
static void |
setGetClusterConfiguration(GetClusterConfiguration newClusterConfiguration)
Set the function used to get the cluster configuration for Infinispan
|
static void |
setLlstore(LowLevelStorageService lowLevelStorageService)
Set the Low-level storage server implementation
|
static JcrRdfTools |
withContext(GraphSubjects graphSubjects)
Factory method to create a new JcrRdfTools instance
|
static JcrRdfTools |
withContext(GraphSubjects graphSubjects,
javax.jcr.Session session)
Factory method to create a new JcrRdfTools instance
|
JcrRdfTools |
withSession(javax.jcr.Session session)
Using the same graph subjects, create a new JcrRdfTools with the given
session
|
public static com.google.common.collect.BiMap<String,String> jcrNamespacesToRDFNamespaces
public JcrRdfTools(GraphSubjects graphSubjects)
graphSubjects - public JcrRdfTools(GraphSubjects graphSubjects, javax.jcr.Session session)
graphSubjects - session - public static JcrRdfTools withContext(GraphSubjects graphSubjects)
graphSubjects - public static JcrRdfTools withContext(GraphSubjects graphSubjects, javax.jcr.Session session)
graphSubjects - session - public static String getJcrNamespaceForRDFNamespace(String rdfNamespaceUri)
rdfNamespaceUri - a namespace from an RDF documentpublic static String getRDFNamespaceForJcrNamespace(String jcrNamespaceUri)
jcrNamespaceUri - a namespace from the JCR NamespaceRegistrypublic static com.hp.hpl.jena.rdf.model.Model getProblemsModel()
public JcrRdfTools withSession(javax.jcr.Session session)
session - public com.hp.hpl.jena.rdf.model.Model getJcrPropertiesModel()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic com.hp.hpl.jena.rdf.model.Model getJcrPropertiesModel(Iterator<javax.jcr.Node> nodeIterator, com.hp.hpl.jena.rdf.model.Resource iteratorSubject) throws javax.jcr.RepositoryException
nodeIterator - iteratorSubject - javax.jcr.RepositoryExceptionpublic com.hp.hpl.jena.rdf.model.Model getJcrPropertiesModel(javax.jcr.Node node)
throws javax.jcr.RepositoryException
node - javax.jcr.RepositoryExceptionpublic com.hp.hpl.jena.rdf.model.Model getJcrPropertiesModel(javax.jcr.version.VersionHistory versionHistory,
com.hp.hpl.jena.rdf.model.Resource subject)
throws javax.jcr.RepositoryException
versionHistory - javax.jcr.RepositoryExceptionpublic com.hp.hpl.jena.rdf.model.Model getJcrPropertiesModel(javax.jcr.Node node,
Iterable<FixityResult> blobs)
throws javax.jcr.RepositoryException
node - blobs - javax.jcr.RepositoryExceptionpublic com.hp.hpl.jena.rdf.model.Model getJcrNamespaceModel()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic com.hp.hpl.jena.rdf.model.Model getJcrTreeModel(javax.jcr.Node node,
long offset,
int limit)
throws javax.jcr.RepositoryException
node - offset - limit - @throws RepositoryExceptionjavax.jcr.RepositoryExceptionpublic boolean isInternalProperty(javax.jcr.Node subjectNode,
com.hp.hpl.jena.rdf.model.Resource predicate)
subjectNode - predicate - public static void setGetClusterConfiguration(GetClusterConfiguration newClusterConfiguration)
public static void setLlstore(LowLevelStorageService lowLevelStorageService)
Copyright © 2013 DuraSpace, Inc.. All rights reserved.