Package org.apache.jena.rdfconnection
Class RDFConnectionRemoteBuilder
- java.lang.Object
-
- org.apache.jena.rdfconnection.RDFConnectionRemoteBuilder
-
- Direct Known Subclasses:
RDFConnectionFuseki.RDFConnectionFusekiBuilder
public class RDFConnectionRemoteBuilder extends java.lang.Object- See Also:
RDFLinkHTTPBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RDFConnectionRemoteBuilderacceptHeaderAskQuery(java.lang.String acceptAskHeader)Set the HTTPAccept:header used to when making a SPARQL Protocol ASK query.RDFConnectionRemoteBuilderacceptHeaderDataset(java.lang.String acceptDataset)Set the HTTPAccept:header used to fetch RDF datasets using HTTP GET operations.RDFConnectionRemoteBuilderacceptHeaderGraph(java.lang.String acceptGraph)Set the HTTPAccept:header used to fetch RDF graph using the SPARQL Graph Store Protocol.RDFConnectionRemoteBuilderacceptHeaderQuery(java.lang.String acceptHeader)Set the HTTPAccept:header used to when making a SPARQL Protocol query if no query type specific setting available.RDFConnectionRemoteBuilderacceptHeaderSelectQuery(java.lang.String acceptSelectHeader)Set the HTTPAccept:header used to when making a SPARQL Protocol SELECT query.RDFConnectionbuild()Build anRDFConnection.RDFConnectionRemoteBuilderdestination(java.lang.String destination)URL of the remote SPARQL endpoint.RDFConnectionRemoteBuildergspEndpoint(java.lang.String sGSP)Name of the SPARQL GraphStore Protocol endpoint.RDFConnectionRemoteBuilderhttpClient(java.net.http.HttpClient httpClient)Set theHttpClientfor the connection to be builtRDFConnectionRemoteBuilderparseCheckSPARQL(boolean parseCheck)Set the flag for whether to check SPARQL queries and SPARQL updates provided as a string.RDFConnectionRemoteBuilderquadsFormat(java.lang.String langQuads)Set the output format for sending RDF Datasets to the remote server.RDFConnectionRemoteBuilderquadsFormat(Lang langQuads)Set the output format for sending RDF Datasets to the remote server.RDFConnectionRemoteBuilderquadsFormat(RDFFormat fmtQuads)Set the output format for sending RDF Datasets to the remote server.RDFConnectionRemoteBuilderqueryEndpoint(java.lang.String sQuery)Name of the SPARQL query service.RDFConnectionRemoteBuilderqueryOnly()Query-only settings.RDFConnectionRemoteBuildertriplesFormat(java.lang.String langTriples)Set the output format for sending RDF graphs to the remote server.RDFConnectionRemoteBuildertriplesFormat(Lang langTriples)Set the output format for sending RDF graphs to the remote server.RDFConnectionRemoteBuildertriplesFormat(RDFFormat fmtTriples)Set the output format for sending RDF graphs to the remote server.RDFConnectionRemoteBuilderupdateEndpoint(java.lang.String sUpdate)Name of the SPARQL update service.
-
-
-
Method Detail
-
destination
public RDFConnectionRemoteBuilder 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 RDFConnectionRemoteBuilder queryOnly()
Query-only settings.
-
queryEndpoint
public RDFConnectionRemoteBuilder 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 RDFConnectionRemoteBuilder 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 RDFConnectionRemoteBuilder 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 RDFConnectionRemoteBuilder httpClient(java.net.http.HttpClient httpClient)
Set theHttpClientfor the connection to be built
-
quadsFormat
public RDFConnectionRemoteBuilder 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 RDFConnectionRemoteBuilder 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 RDFConnectionRemoteBuilder 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 RDFConnectionRemoteBuilder 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 RDFConnectionRemoteBuilder 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 RDFConnectionRemoteBuilder 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 RDFConnectionRemoteBuilder acceptHeaderGraph(java.lang.String acceptGraph)
Set the HTTPAccept:header used to fetch RDF graph using the SPARQL Graph Store Protocol.
-
acceptHeaderDataset
public RDFConnectionRemoteBuilder acceptHeaderDataset(java.lang.String acceptDataset)
Set the HTTPAccept:header used to fetch RDF datasets using HTTP GET operations.
-
acceptHeaderSelectQuery
public RDFConnectionRemoteBuilder acceptHeaderSelectQuery(java.lang.String acceptSelectHeader)
Set the HTTPAccept:header used to when making a SPARQL Protocol SELECT query.
-
acceptHeaderAskQuery
public RDFConnectionRemoteBuilder acceptHeaderAskQuery(java.lang.String acceptAskHeader)
Set the HTTPAccept:header used to when making a SPARQL Protocol ASK query.
-
acceptHeaderQuery
public RDFConnectionRemoteBuilder 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 RDFConnectionRemoteBuilder parseCheckSPARQL(boolean parseCheck)
Set the flag for whether to check SPARQL queries and SPARQL updates provided as a string.
-
build
public final RDFConnection build()
Build anRDFConnection.- Implementation Note:
- This operation is fixed as:
public final RDFConnection build() { RDFLink rdfLink = buildLink(); return adaptLink(rdfLink); }Subclasses ofRDFConnectionRemotemay build and overridebuildLinkand/oradaptLink
-
-