public final class RDFLists extends Object
Utilities for working with RDF lists.
Constructor and Description |
---|
RDFLists()
No instances
|
Modifier and Type | Method and Description |
---|---|
static Resource |
create(List<? extends Value> theList,
Collection<Statement> theGraph)
Creates an RDF list from the given values.
|
static Resource |
create(List<? extends Value> theList,
Consumer<Statement> theGraph) |
static List<Value> |
fromStatements(Resource theResource,
Iterable<Statement> theGraph)
Create a list of values from an RDF list.
|
@Nonnull public static Resource create(@Nonnull List<? extends Value> theList, @Nonnull Collection<Statement> theGraph)
theList
- list of valuestheGraph
- graph where the triples for the list is written to@Nonnull public static Resource create(@Nonnull List<? extends Value> theList, @Nonnull Consumer<Statement> theGraph)
@Nonnull public static List<Value> fromStatements(@Nonnull Resource theResource, @Nonnull Iterable<Statement> theGraph)
theResource
- the resource representing the listtheGraph
- graph where the triples for the list is read fromCopyright © 2010-2016 Stardog Union. All Rights Reserved.