Package com.inrupt.client.rdf4j
Class RDF4JBodyPublishers
java.lang.Object
com.inrupt.client.rdf4j.RDF4JBodyPublishers
Request.BodyPublisher
implementations for use with RDF4J types.-
Method Summary
Modifier and TypeMethodDescriptionstatic Request.BodyPublisher
Serialize a RDF4J Model as an HTTP request body.static Request.BodyPublisher
Serialize a RDF4J Model as an HTTP request body.static Request.BodyPublisher
ofRepository
(Repository repository) Serialize a RDF4J Repository as an HTTP request body.static Request.BodyPublisher
ofRepository
(Repository repository, RDFFormat format) Serialize a RDF4J Repository as an HTTP request body.static Request.BodyPublisher
ofSparqlUpdate
(SPARQLUpdate sparql) Serialize a RDF4J SPARQLUpdate (SPARQL-Update) as an HTTP request body.
-
Method Details
-
ofModel
Serialize a RDF4J Model as an HTTP request body.This method uses the default (TURTLE) serialization.
- Parameters:
model
- the model- Returns:
- the body publisher
-
ofModel
Serialize a RDF4J Model as an HTTP request body.- Parameters:
model
- the modelformat
- the serialization language- Returns:
- the body publisher
-
ofRepository
Serialize a RDF4J Repository as an HTTP request body.This method uses the default (TRIG) serialization.
- Parameters:
repository
- the Repository- Returns:
- the body publisher
-
ofRepository
Serialize a RDF4J Repository as an HTTP request body.- Parameters:
repository
- the Repositoryformat
- the serialization language- Returns:
- the body publisher
-
ofSparqlUpdate
Serialize a RDF4J SPARQLUpdate (SPARQL-Update) as an HTTP request body.- Parameters:
sparql
- the SPARQL Update request- Returns:
- the body publisher
-