T - the type of resource that can be persisted by this servicepublic interface ImmutableDataService<T> extends RetrievalService<T>
add(org.apache.commons.rdf.api.IRI, org.apache.commons.rdf.api.Dataset) will be deleted by using add again.| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
add(IRI identifier,
Dataset dataset) |
getCompletionStage<Void> add(IRI identifier, Dataset dataset)
identifier - the identifier under which to persist a datasetdataset - a dataset to persistCompletionStage will complete exceptionally and can be handled with
CompletionStage.handle(java.util.function.BiFunction<? super T, java.lang.Throwable, ? extends U>), CompletionStage.exceptionally(java.util.function.Function<java.lang.Throwable, ? extends T>) or similar methods.