public interface ResourceService
| Modifier and Type | Method | Description |
|---|---|---|
java.util.stream.Stream<org.apache.commons.rdf.api.IRI> |
compact(org.apache.commons.rdf.api.IRI identifier,
java.time.Instant from,
java.time.Instant until) |
Compact (i.e.
|
default java.util.stream.Stream<? extends org.apache.commons.rdf.api.Quad> |
export(java.lang.String partition,
java.util.Collection<org.apache.commons.rdf.api.IRI> graphNames) |
Export the complete repository as a stream of Quads
|
java.util.Optional<org.trellisldp.api.Resource> |
get(org.apache.commons.rdf.api.IRI identifier) |
Get a resource from the given location
|
java.util.Optional<org.trellisldp.api.Resource> |
get(org.apache.commons.rdf.api.IRI identifier,
java.time.Instant time) |
Get a resource from the given location and time
|
default java.util.Optional<org.apache.commons.rdf.api.IRI> |
getContainer(org.apache.commons.rdf.api.IRI identifier) |
Get the identifier for the structurally-logical container for the resource
|
java.util.function.Supplier<java.lang.String> |
getIdentifierSupplier() |
An identifier supplier
|
java.util.stream.Stream<? extends org.apache.commons.rdf.api.Triple> |
list(java.lang.String partition) |
Get a list of resources in the partition
|
java.util.stream.Stream<org.apache.commons.rdf.api.IRI> |
purge(org.apache.commons.rdf.api.IRI identifier) |
Purge a resource from the repository
|
java.lang.Boolean |
put(org.apache.commons.rdf.api.IRI identifier,
org.apache.commons.rdf.api.Dataset dataset) |
Put a resource into the repository
|
default org.apache.commons.rdf.api.RDFTerm |
skolemize(org.apache.commons.rdf.api.RDFTerm term) |
Skolemize a blank node
|
default org.apache.commons.rdf.api.RDFTerm |
unskolemize(org.apache.commons.rdf.api.RDFTerm term) |
Un-skolemize a blank node
|
java.util.Optional<org.trellisldp.api.Resource> get(org.apache.commons.rdf.api.IRI identifier)
identifier - the resource identifierjava.util.Optional<org.trellisldp.api.Resource> get(org.apache.commons.rdf.api.IRI identifier,
java.time.Instant time)
identifier - the resource identifiertime - the timejava.lang.Boolean put(org.apache.commons.rdf.api.IRI identifier,
org.apache.commons.rdf.api.Dataset dataset)
identifier - the identifier for the new resourcedataset - the datasetdefault java.util.Optional<org.apache.commons.rdf.api.IRI> getContainer(org.apache.commons.rdf.api.IRI identifier)
identifier - the identifierjava.util.stream.Stream<org.apache.commons.rdf.api.IRI> compact(org.apache.commons.rdf.api.IRI identifier,
java.time.Instant from,
java.time.Instant until)
identifier - the identifierfrom - a time after which a resource is to be compacteduntil - a time before which a resource is to be compactedjava.util.stream.Stream<org.apache.commons.rdf.api.IRI> purge(org.apache.commons.rdf.api.IRI identifier)
identifier - the identifierjava.util.stream.Stream<? extends org.apache.commons.rdf.api.Triple> list(java.lang.String partition)
partition - the partitiondefault org.apache.commons.rdf.api.RDFTerm skolemize(org.apache.commons.rdf.api.RDFTerm term)
term - the RDF termdefault org.apache.commons.rdf.api.RDFTerm unskolemize(org.apache.commons.rdf.api.RDFTerm term)
term - the RDF termdefault java.util.stream.Stream<? extends org.apache.commons.rdf.api.Quad> export(java.lang.String partition,
java.util.Collection<org.apache.commons.rdf.api.IRI> graphNames)
partition - the partition to exportgraphNames - the graph names to exportjava.util.function.Supplier<java.lang.String> getIdentifierSupplier()