public interface ILDPContainer extends ILDPRDFSource
Modifier and Type | Method and Description |
---|---|
String |
post(InputStream stream,
String contentType,
String user,
String nameHint,
boolean isResourceInteractionModel)
Post a new member to the container.
|
javax.ws.rs.core.Response |
postNonRDFSource(InputStream content,
String stripCharset,
String user,
String slug)
Post a new LDP-NR (non-RDF source) to the container.
|
boolean |
putCreate(String resourceURI,
InputStream stream,
String contentType,
String user,
javax.ws.rs.core.HttpHeaders requestHeaders)
Creates a new resource at resourceURI with the contents of the specified stream.
|
void |
query(OutputStream outStream,
String queryString,
String resultsFormat)
Execute the specified SPARQL query over the container and its entries,
specifying the output format.
|
delete, get, getAllowedMethods, getModel, getTypeURI, getURI, options, patch, putUpdate, setModel, setURI
void query(OutputStream outStream, String queryString, String resultsFormat)
outStream
- the output stream in which to write the query result.queryString
- the SPARQL query to execute.resultsFormat
- the desired result format content type ; if null
or not supported, the format will be XML.String post(InputStream stream, String contentType, String user, String nameHint, boolean isResourceInteractionModel)
The Content-Type of the input stream is specified by the
contentType
argument. Supported values are "application/rdf+xml",
"text/turtle", and "application/x-turtle".
stream
- the input stream containing the posted resource representation.contentType
- the Content-Type of the input stream.user
- The user URI to use for dcterms:creatornameHint
- Value from Slug header or other source, used to determine the newly created resource's URLisResourceInteractionModel
- If true, treat container as resource (don't allow POST)javax.ws.rs.core.Response postNonRDFSource(InputStream content, String stripCharset, String user, String slug)
stream
- the input stream containing the posted resource representation.contentType
- the Content-Type of the input stream.nameHint
- Value from Slug header or other source, used to determine the newly created resource's URLboolean putCreate(String resourceURI, InputStream stream, String contentType, String user, javax.ws.rs.core.HttpHeaders requestHeaders)
The Content-Type of the input stream is specified by the
contentType
argument.
resourceURI
- the URI of to-be-created resource.stream
- the input stream containing the resource representation.contentType
- the Content-Type of the input stream.requestHeaders
- the HTTP request headersCopyright © 2018. All rights reserved.