Class RDFLinkHTTPBuilder

java.lang.Object
org.apache.jena.rdflink.RDFLinkHTTPBuilder

public class RDFLinkHTTPBuilder extends Object
Builder class for RDFLinkHTTP
  • Method Details

    • destination

      public RDFLinkHTTPBuilder destination(String destination)
      URL of the remote SPARQL endpoint. For Fuseki, this is the URL of the dataset e.g. http:/localhost:3030/dataset
    • queryOnly

      public RDFLinkHTTPBuilder queryOnly()
    • queryEndpoint

      public RDFLinkHTTPBuilder queryEndpoint(String sQuery)
      Name of the SPARQL query service.

      This can be a short name, relative to the destination URL, or a full URL (with "http:" or "https:")

      Use "" for "same as destination".
      Use null for "none".

    • updateEndpoint

      public RDFLinkHTTPBuilder updateEndpoint(String sUpdate)
      Name of the SPARQL update service.

      This can be a short name, relative to the destination URL, or a full URL (with "http:" or "https:")

      Use "" for "same as destination".
      Use null for "none".

    • gspEndpoint

      public RDFLinkHTTPBuilder gspEndpoint(String sGSP)
      Name of the SPARQL GraphStore Protocol endpoint.

      This can be a short name, relative to the destination URL, or a full URL (with "http:" or "https:")

      Use "" for "same as destination".
      Use null for "none".

    • httpClient

      public RDFLinkHTTPBuilder httpClient(HttpClient httpClient)
      Set the HttpClient fir the connection to tbe built
    • quadsFormat

      public RDFLinkHTTPBuilder quadsFormat(org.apache.jena.riot.RDFFormat fmtQuads)
      Set the output format for sending RDF Datasets to the remote server. This is used for HTTP PUT and POST to a dataset. This must be a quads format.
    • quadsFormat

      public RDFLinkHTTPBuilder quadsFormat(org.apache.jena.riot.Lang langQuads)
      Set the output format for sending RDF Datasets to the remote server. This is used for HTTP PUT and POST to a dataset. This must be a quads format.
    • quadsFormat

      public RDFLinkHTTPBuilder quadsFormat(String langQuads)
      Set the output format for sending RDF Datasets to the remote server. This is used for HTTP PUT and POST to a dataset. This must be a quads format.
    • triplesFormat

      public RDFLinkHTTPBuilder triplesFormat(org.apache.jena.riot.RDFFormat fmtTriples)
      Set the output format for sending RDF graphs to the remote server. This is used for the SPARQ Graph Store Protocol.
    • triplesFormat

      public RDFLinkHTTPBuilder triplesFormat(org.apache.jena.riot.Lang langTriples)
      Set the output format for sending RDF graphs to the remote server. This is used for the SPARQ Graph Store Protocol.
    • triplesFormat

      public RDFLinkHTTPBuilder triplesFormat(String langTriples)
      Set the output format for sending RDF graphs to the remote server. This is used for the SPARQ Graph Store Protocol.
    • acceptHeaderGraph

      public RDFLinkHTTPBuilder acceptHeaderGraph(String acceptGraph)
      Set the HTTP Accept: header used to fetch RDF graph using the SPARQL Graph Store Protocol.
    • acceptHeaderDataset

      public RDFLinkHTTPBuilder acceptHeaderDataset(String acceptDataset)
      Set the HTTP Accept: header used to fetch RDF datasets using HTTP GET operations.
    • acceptHeaderSelectQuery

      public RDFLinkHTTPBuilder acceptHeaderSelectQuery(String acceptSelectHeader)
      Set the HTTP Accept: header used to when making a SPARQL Protocol SELECT query.
    • acceptHeaderAskQuery

      public RDFLinkHTTPBuilder acceptHeaderAskQuery(String acceptAskHeader)
      Set the HTTP Accept: header used to when making a SPARQL Protocol ASK query.
    • acceptHeaderQuery

      public RDFLinkHTTPBuilder acceptHeaderQuery(String acceptHeader)
      Set the HTTP Accept: header used to when making a SPARQL Protocol query if no query type specific setting available.
    • parseCheckSPARQL

      public RDFLinkHTTPBuilder parseCheckSPARQL(boolean parseCheck)
      Set the flag for whether to check SPARQL queries and SPARQL updates provided as a string.
    • querySendMode

      public RDFLinkHTTPBuilder querySendMode(org.apache.jena.sparql.exec.http.QuerySendMode sendMode)
      Set the strategy that determines how to send a query over HTTP. See QuerySendMode.
    • updateSendMode

      public RDFLinkHTTPBuilder updateSendMode(org.apache.jena.sparql.exec.http.UpdateSendMode sendMode)
      Set the strategy that determines how to send an update request over HTTP. See UpdateSendMode.
    • creator

      Provide an alternative function to make the RDFLink object.

      Specialized use: This method allows for custom RDFLinks.

    • build

      public RDFLink build()
      Build an {RDFLink}.