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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doOptions
(HttpAction action) static UploadDetails
quadsPutPostNonTxn
(HttpAction action, boolean replaceOperation) Load data, without assuming the dataset of an action is transactional - specifically, whether it supports "abort".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".static UploadDetails
quadsPutPostTxn
(HttpAction action, boolean replaceOperation) Load data using a transaction into the dataset of an action. if the data is bad, abort the transaction.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.void
validate
(HttpAction action) The validation step of a requestMethods inherited from class org.apache.jena.fuseki.servlets.ActionREST
execAny, execute, process
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:ActionLifecycle
The 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.
-