use of org.apache.jena.fuseki.system.UploadDetails in project jena by apache.
the class GSP_RW method doPutPostGSP.
// ---- Triples to target graph
protected void doPutPostGSP(HttpAction action, boolean overwrite) {
ContentType ct = ActionLib.getContentType(action);
if (ct == null)
ServletOps.errorBadRequest("No Content-Type:");
UploadDetails details;
if (action.isTransactional())
details = triplesPutPostTxn(action, overwrite);
else
details = triplesPutPostNonTxn(action, overwrite);
ServletOps.uploadResponse(action, details);
}
use of org.apache.jena.fuseki.system.UploadDetails in project jena by apache.
the class GSP_RW method doPutPostQuads.
protected void doPutPostQuads(HttpAction action, boolean replaceOperation) {
ContentType ct = ActionLib.getContentType(action);
if (ct == null)
ServletOps.errorBadRequest("No Content-Type:");
if (!action.getDataService().allowUpdate())
ServletOps.errorMethodNotAllowed(action.getMethod());
UploadDetails details;
if (action.isTransactional())
details = UploadRDF.quadsPutPostTxn(action, a -> decideDataset(a), replaceOperation);
else
details = UploadRDF.quadsPutPostNonTxn(action, a -> decideDataset(a), replaceOperation);
ServletOps.uploadResponse(action, details);
}
Aggregations