You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2021/11/16 18:25:58 UTC
[jena] branch main updated: JENA-2125: Add RDFConnectionFuseki.connect; correct javadoc
This is an automated email from the ASF dual-hosted git repository.
andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git
The following commit(s) were added to refs/heads/main by this push:
new e237899 JENA-2125: Add RDFConnectionFuseki.connect; correct javadoc
new 1cdaa70 Merge pull request #1111 from afs/qexec3
e237899 is described below
commit e2378998c90dec96778382d788f10db261872218
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Sun Nov 14 10:30:54 2021 +0000
JENA-2125: Add RDFConnectionFuseki.connect; correct javadoc
---
.../apache/jena/rdfconnection/RDFConnection.java | 14 ++++----------
.../jena/rdfconnection/RDFConnectionFuseki.java | 22 +++++++++++++++++++++-
2 files changed, 25 insertions(+), 11 deletions(-)
diff --git a/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnection.java b/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnection.java
index 089c1cc..2817cdd 100644
--- a/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnection.java
+++ b/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnection.java
@@ -123,16 +123,10 @@ public interface RDFConnection extends
/** Create a connection to a remote location by URL.
* This is the URL for the dataset.
- *
- * This call assumes the names of services as:
- * <ul>
- * <li>SPARQL Query endpoint : "sparql"
- * <li>SPARQL Update endpoint : "update"
- * <li>SPARQL Graph Store Protocol : "data"
- * </ul>
- * These are the default names in <a href="http://jena.apache.org/documentation/fuseki2">Fuseki</a>
- * Other names can be specified using {@link RDFConnectionRemote#newBuilder()} and setting the endpoint URLs.
- *
+ * <p>
+ * This is the URL for the dataset.
+ * Other names can be specified using {@link RDFConnectionRemote#newBuilder()} and setting the endpoint URLs.
+ * </p>
* <pre>
* RDFConnectionRemote.newBuilder()
* .queryEndpoint(queryServiceEndpoint)
diff --git a/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnectionFuseki.java b/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnectionFuseki.java
index cdeb7b3..e363f21 100644
--- a/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnectionFuseki.java
+++ b/jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnectionFuseki.java
@@ -26,10 +26,30 @@ import org.apache.jena.rdflink.RDFLinkFuseki;
/**
* Implementation of the {@link RDFConnection} interface for connecting to an Apache Jena Fuseki.
* <p>
- * This adds the ability to work with blank nodes across the network.
+ * This adds the ability to work with blank nodes across the network and uses binary for query results.
*/
public interface RDFConnectionFuseki extends RDFConnectionRemote {
+ /** Create a connection to a remote location by URL with the default Fuseki
+ * configuration. This is the URL for the dataset.
+ * <p>
+ * Other names can be specified using {@link RDFConnectionRemote#newBuilder()} and setting the endpoint URLs.
+ * </p>
+ * <pre>
+ * RDFConnectionFuseki.newBuilder()
+ * .queryEndpoint(queryServiceEndpoint)
+ * .updateEndpoint(updateServiceEndpoint)
+ * .gspEndpoint(graphStoreProtocolEndpoint)
+ * .build();
+ * </pre>
+ *
+ * @param serviceURL
+ * @return RDFConnection
+ */
+ public static RDFConnection connect(String serviceURL) {
+ return RDFConnectionFuseki.service(serviceURL).build();
+ }
+
/**
* Create a connection builder which is initialized for the default Fuseki
* configuration. The application must call