java.lang.Object
org.apache.jena.fuseki.servlets.ActionBase
org.apache.jena.fuseki.servlets.ActionService
org.apache.jena.fuseki.servlets.ActionREST
org.apache.jena.fuseki.servlets.UploadRDF
- All Implemented Interfaces:
ActionLifecycle,ActionProcessor
Upload files to a server.
Supports:
- HTTP body + content type (c.f. GSP-RW write to a dataset)
- HTML file input upload (multipart/form-data)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoOptions(HttpAction action) static UploadDetailsquadsPutPostNonTxn(HttpAction action, boolean replaceOperation) Load data, without assuming the dataset of an action is transactional - specifically, whether it supports "abort".static UploadDetailsquadsPutPostNonTxn(HttpAction action, Function<HttpAction, org.apache.jena.sparql.core.DatasetGraph> decideDataset, boolean replaceOperation) Load data, without assuming the dataset of an action is transactional - specifically, whether it supports "abort".static UploadDetailsquadsPutPostTxn(HttpAction action, boolean replaceOperation) Load data using a transaction into the dataset of an action. if the data is bad, abort the transaction.static UploadDetailsquadsPutPostTxn(HttpAction action, Function<HttpAction, org.apache.jena.sparql.core.DatasetGraph> decideDataset, boolean replaceOperation) Load data using a transaction into the dataset of an action. if the data is bad, abort the transaction.voidvalidate(HttpAction action) The validation step of a requestMethods inherited from class org.apache.jena.fuseki.servlets.ActionREST
execAny, execute, processMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.fuseki.servlets.ActionProcessor
execDelete, execGet, execHead, execOptions, execPatch, execPost, execPut, execTrace
-
Constructor Details
-
UploadRDF
public UploadRDF()
-
-
Method Details
-
validate
Description copied from interface:ActionLifecycleThe validation step of a request -
doOptions
-
quadsPutPostTxn
Load data using a transaction into the dataset of an action. if the data is bad, abort the transaction. -
quadsPutPostTxn
public static UploadDetails quadsPutPostTxn(HttpAction action, Function<HttpAction, org.apache.jena.sparql.core.DatasetGraph> decideDataset, boolean replaceOperation) Load data using a transaction into the dataset of an action. if the data is bad, abort the transaction.Delayed choice of dataset via a function so that the decision is made inside the transaction.
-
quadsPutPostNonTxn
Load data, without assuming the dataset of an action is transactional - specifically, whether it supports "abort". This requires loading the data into a temporary dataset, which means we check the data is legal RDF, then copying it into the finally destination. -
quadsPutPostNonTxn
public static UploadDetails quadsPutPostNonTxn(HttpAction action, Function<HttpAction, org.apache.jena.sparql.core.DatasetGraph> decideDataset, boolean replaceOperation) Load data, without assuming the dataset of an action is transactional - specifically, whether it supports "abort". This requires loading the data into a temporary dataset, which means we check the data is legal RDF, then copying it into the finally destination.Delayed choice of dataset via a function so that the decision is made inside the transaction updating the data.
-