- java.lang.Object
-
- org.apache.jena.rdflink.RDFLinkHTTPBuilder
-
public class RDFLinkHTTPBuilder extends java.lang.ObjectBuilder class forRDFLinkHTTP
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RDFLinkHTTPBuilderacceptHeaderAskQuery(java.lang.String acceptAskHeader)Set the HTTPAccept:header used to when making a SPARQL Protocol ASK query.RDFLinkHTTPBuilderacceptHeaderDataset(java.lang.String acceptDataset)Set the HTTPAccept:header used to fetch RDF datasets using HTTP GET operations.RDFLinkHTTPBuilderacceptHeaderGraph(java.lang.String acceptGraph)Set the HTTPAccept:header used to fetch RDF graph using the SPARQL Graph Store Protocol.RDFLinkHTTPBuilderacceptHeaderQuery(java.lang.String acceptHeader)Set the HTTPAccept:header used to when making a SPARQL Protocol query if no query type specific setting available.RDFLinkHTTPBuilderacceptHeaderSelectQuery(java.lang.String acceptSelectHeader)Set the HTTPAccept:header used to when making a SPARQL Protocol SELECT query.RDFLinkbuild()Build an {RDFLink}.RDFLinkHTTPBuildercreator(java.util.function.Function<RDFLinkHTTPBuilder,RDFLink> function)Provide an alternative function to make theRDFLinkobject.RDFLinkHTTPBuilderdestination(java.lang.String destination)URL of the remote SPARQL endpoint.RDFLinkHTTPBuildergspEndpoint(java.lang.String sGSP)Name of the SPARQL GraphStore Protocol endpoint.RDFLinkHTTPBuilderhttpClient(java.net.http.HttpClient httpClient)Set theHttpClientfir the connection to tbe builtRDFLinkHTTPBuilderparseCheckSPARQL(boolean parseCheck)Set the flag for whether to check SPARQL queries and SPARQL updates provided as a string.RDFLinkHTTPBuilderquadsFormat(java.lang.String langQuads)Set the output format for sending RDF Datasets to the remote server.RDFLinkHTTPBuilderquadsFormat(Lang langQuads)Set the output format for sending RDF Datasets to the remote server.RDFLinkHTTPBuilderquadsFormat(RDFFormat fmtQuads)Set the output format for sending RDF Datasets to the remote server.RDFLinkHTTPBuilderqueryEndpoint(java.lang.String sQuery)Name of the SPARQL query service.RDFLinkHTTPBuilderqueryOnly()RDFLinkHTTPBuildertriplesFormat(java.lang.String langTriples)Set the output format for sending RDF graphs to the remote server.RDFLinkHTTPBuildertriplesFormat(Lang langTriples)Set the output format for sending RDF graphs to the remote server.RDFLinkHTTPBuildertriplesFormat(RDFFormat fmtTriples)Set the output format for sending RDF graphs to the remote server.RDFLinkHTTPBuilderupdateEndpoint(java.lang.String sUpdate)Name of the SPARQL update service.
-
-
-
Method Detail
-
destination
public RDFLinkHTTPBuilder destination(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.net.http.HttpClient httpClient)
Set theHttpClientfir the connection to tbe built
-
quadsFormat
public RDFLinkHTTPBuilder quadsFormat(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(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(java.lang.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(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(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(java.lang.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(java.lang.String acceptGraph)
Set the HTTPAccept:header used to fetch RDF graph using the SPARQL Graph Store Protocol.
-
acceptHeaderDataset
public RDFLinkHTTPBuilder acceptHeaderDataset(java.lang.String acceptDataset)
Set the HTTPAccept:header used to fetch RDF datasets using HTTP GET operations.
-
acceptHeaderSelectQuery
public RDFLinkHTTPBuilder acceptHeaderSelectQuery(java.lang.String acceptSelectHeader)
Set the HTTPAccept:header used to when making a SPARQL Protocol SELECT query.
-
acceptHeaderAskQuery
public RDFLinkHTTPBuilder acceptHeaderAskQuery(java.lang.String acceptAskHeader)
Set the HTTPAccept:header used to when making a SPARQL Protocol ASK query.
-
acceptHeaderQuery
public RDFLinkHTTPBuilder acceptHeaderQuery(java.lang.String acceptHeader)
Set the HTTPAccept: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.
-
creator
public RDFLinkHTTPBuilder creator(java.util.function.Function<RDFLinkHTTPBuilder,RDFLink> function)
Provide an alternative function to make theRDFLinkobject.Specialized use: This method allows for custom
RDFLinks.
-
build
public RDFLink build()
Build an {RDFLink}.
-
-