Class JenaBodyPublishers

java.lang.Object
com.inrupt.client.jena.JenaBodyPublishers

public final class JenaBodyPublishers extends Object
Request.BodyPublisher implementations for use with Jena types.
  • Method Details

    • ofModel

      public static Request.BodyPublisher ofModel(Model model)
      Serialize a Jena Model as an HTTP request body.

      This method uses the default (TURTLE) serialization.

      Parameters:
      model - the model
      Returns:
      the body publisher
    • ofModel

      public static Request.BodyPublisher ofModel(Model model, Lang lang)
      Serialize a Jena Model as an HTTP request body.
      Parameters:
      model - the model
      lang - the serialization language
      Returns:
      the body publisher
    • ofGraph

      public static Request.BodyPublisher ofGraph(Graph graph)
      Serialize a Jena Graph as an HTTP request body.

      This method uses the default (TURTLE) serialization.

      Parameters:
      graph - the graph
      Returns:
      the body publisher
    • ofGraph

      public static Request.BodyPublisher ofGraph(Graph graph, Lang lang)
      Serialize a Jena Graph as an HTTP request body.
      Parameters:
      graph - the graph
      lang - the serialization language
      Returns:
      the body publisher
    • ofDataset

      public static Request.BodyPublisher ofDataset(Dataset dataset)
      Serialize a Jena Dataset as an HTTP request body.

      This method uses the default (TRIG) serialization.

      Parameters:
      dataset - the dataset
      Returns:
      the body publisher
    • ofDataset

      public static Request.BodyPublisher ofDataset(Dataset dataset, Lang lang)
      Serialize a Jena Dataset as an HTTP request body.
      Parameters:
      dataset - the dataset
      lang - the serialization language
      Returns:
      the body publisher
    • ofUpdateRequest

      public static Request.BodyPublisher ofUpdateRequest(UpdateRequest sparql)
      Serialize a Jena UpdateRequest (SPARQL-Update) as an HTTP request body.
      Parameters:
      sparql - the SPARQL Update request
      Returns:
      the body publisher