public class NodeRdfContext extends DefaultRdfStream
RdfStream
that holds contexts related to a specific Node
.Stream.Builder<T>
node
stream
Constructor and Description |
---|
NodeRdfContext(FedoraResource resource,
IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Converter<javax.jcr.Node,org.apache.jena.rdf.model.Resource> |
nodeConverter() |
FedoraResource |
resource() |
org.apache.jena.graph.Node |
subject() |
IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> |
translator() |
protected org.apache.jena.graph.Node |
uriFor(FedoraResource resource) |
concat, distinct, filter, fromModel, limit, onClose, parallel, peek, sequential, skip, sorted, sorted, topic, unordered
allMatch, anyMatch, close, collect, collect, count, findAny, findFirst, flatMap, flatMapToDouble, flatMapToInt, flatMapToLong, forEach, forEachOrdered, isParallel, iterator, map, mapToDouble, mapToInt, mapToLong, max, min, noneMatch, reduce, reduce, reduce, spliterator, toArray, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allMatch, anyMatch, builder, collect, collect, concat, count, empty, findAny, findFirst, flatMap, flatMapToDouble, flatMapToInt, flatMapToLong, forEach, forEachOrdered, generate, iterate, map, mapToDouble, mapToInt, mapToLong, max, min, noneMatch, of, of, reduce, reduce, reduce, toArray, toArray
close, isParallel, iterator, spliterator
public NodeRdfContext(FedoraResource resource, IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator)
resource
- the resourceidTranslator
- the id translatorpublic FedoraResource resource()
Node
in questionpublic IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> translator()
IdentifierConverter
protected org.apache.jena.graph.Node uriFor(FedoraResource resource)
resource
- a Fedora model instance that must be identified by an URIpublic com.google.common.base.Converter<javax.jcr.Node,org.apache.jena.rdf.model.Resource> nodeConverter()
IdentifierConverter
public org.apache.jena.graph.Node subject()
Copyright © 2013–2017 DuraSpace, Inc.. All rights reserved.