public class InsertServlet extends BigdataRDFServlet
ATTR_BLUEPRINTS, MIME_JSON, MIME_RDF_XML, MIME_SPARQL_QUERY, MIME_SPARQL_RESULTS_JSON, MIME_SPARQL_RESULTS_XML, MIME_SPARQL_UPDATE, NA, OUTPUT_FORMAT_JSON, OUTPUT_FORMAT_JSON_SHORT, OUTPUT_FORMAT_QUERY_PARAMETER, OUTPUT_FORMAT_XML, OUTPUT_FORMAT_XML_SHORT, UNDEFINED_WORKBENCH_NAMESPACE, UTF8
ATTRIBUTE_RDF_CONTEXT, charset, DELETE, GET, HTTP_BADREQUEST, HTTP_HEADER_BIGDATA_READ_ONLY, HTTP_INTERNALERROR, HTTP_METHOD_NOT_ALLOWED, HTTP_NOTFOUND, HTTP_NOTIMPLEMENTED, HTTP_OK, POST, PUT
MIME_APPLICATION_JSON, MIME_APPLICATION_URL_ENCODED, MIME_APPLICATION_XML, MIME_DEFAULT_BINARY, MIME_GRAPH_ML, MIME_PROPERTIES_XML, MIME_TEXT_HTML, MIME_TEXT_JAVASCRIPT, MIME_TEXT_PLAIN
Constructor and Description |
---|
InsertServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Perform an HTTP-POST, which corresponds to the basic CRUD operation
"create" according to the generic interaction semantics of HTTP REST.
|
buildAndCommitBooleanResponse, buildAndCommitNamespaceNotFoundResponse, buildAndCommitRangeCountResponse, getNamespace, getTimestamp, isAttachment, launderThrowable, newPipedInputStream, parseBindings, sendGraph, sendProperties, toURIs
buildAndCommitResponse, decodeContexts, getBigdataRDFContext, getBooleanValue, getIndexManager, getIndexManager, getServiceURIs, readFully, submitApiTask
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
Perform an HTTP-POST, which corresponds to the basic CRUD operation "create" according to the generic interaction semantics of HTTP REST. The operation will be executed against the target namespace per the URI.
POST [/namespace/NAMESPACE] ... Content-Type: ... BODY
Where BODY
is the new RDF content using the representation
indicated by the Content-Type
.
-OR-
POST [/namespace/NAMESPACE] ?uri=URL
Where URI
identifies a resource whose RDF content will be
inserted into the database. The uri
query parameter may
occur multiple times. All identified resources will be loaded within a
single native transaction. Bigdata provides snapshot isolation so you can
continue to execute queries against the last commit point while this
operation is executed.
doPost
in class javax.servlet.http.HttpServlet
IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.