public abstract class PersistingRdfStreamConsumer extends Object implements RdfStreamConsumer
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.base.Predicate<com.hp.hpl.jena.graph.Triple> |
isFedoraSubjectTriple |
| Constructor and Description |
|---|
PersistingRdfStreamConsumer(GraphSubjects graphSubjects,
javax.jcr.Session session,
RdfStream stream)
Ordinary constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
consume()
Synchronous consumption.
|
com.google.common.util.concurrent.ListenableFuture<Boolean> |
consumeAsync()
Asynchronous consumption.
|
protected javax.jcr.Value |
createValue(javax.jcr.Node subjectNode,
com.hp.hpl.jena.rdf.model.RDFNode object,
Integer propertyType) |
protected String |
getPropertyNameFromPredicate(javax.jcr.Node subjectNode,
com.hp.hpl.jena.rdf.model.Property predicate) |
GraphSubjects |
idTranslator() |
protected String |
jcrMixinNameFromRdfResource(com.hp.hpl.jena.rdf.model.Resource mixinResource) |
JcrRdfTools |
jcrRdfTools() |
protected abstract void |
operateOnMixin(com.hp.hpl.jena.rdf.model.Resource mixinResource,
javax.jcr.Node subjectNode) |
protected abstract void |
operateOnProperty(com.hp.hpl.jena.rdf.model.Statement t,
javax.jcr.Node subjectNode) |
protected void |
operateOnTriple(com.hp.hpl.jena.rdf.model.Statement t) |
javax.jcr.Session |
session() |
RdfStream |
stream() |
protected final com.google.common.base.Predicate<com.hp.hpl.jena.graph.Triple> isFedoraSubjectTriple
public PersistingRdfStreamConsumer(GraphSubjects graphSubjects, javax.jcr.Session session, RdfStream stream)
graphSubjects - session - stream - public void consume()
throws javax.jcr.RepositoryException
IteratorConsumerconsume in interface IteratorConsumer<com.hp.hpl.jena.graph.Triple,Boolean>javax.jcr.RepositoryExceptionprotected void operateOnTriple(com.hp.hpl.jena.rdf.model.Statement t)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected String getPropertyNameFromPredicate(javax.jcr.Node subjectNode, com.hp.hpl.jena.rdf.model.Property predicate) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected javax.jcr.Value createValue(javax.jcr.Node subjectNode,
com.hp.hpl.jena.rdf.model.RDFNode object,
Integer propertyType)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected String jcrMixinNameFromRdfResource(com.hp.hpl.jena.rdf.model.Resource mixinResource) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected abstract void operateOnProperty(com.hp.hpl.jena.rdf.model.Statement t,
javax.jcr.Node subjectNode)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected abstract void operateOnMixin(com.hp.hpl.jena.rdf.model.Resource mixinResource,
javax.jcr.Node subjectNode)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic com.google.common.util.concurrent.ListenableFuture<Boolean> consumeAsync()
IteratorConsumerconsumeAsync in interface IteratorConsumer<com.hp.hpl.jena.graph.Triple,Boolean>public RdfStream stream()
public GraphSubjects idTranslator()
public javax.jcr.Session session()
public JcrRdfTools jcrRdfTools()
Copyright © 2013 DuraSpace, Inc.. All Rights Reserved.