[
https://issues.apache.org/jira/browse/JENA-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15754888#comment-15754888
]
ASF GitHub Bot commented on JENA-1267:
--------------------------------------
Github user rvesse commented on a diff in the pull request:
https://github.com/apache/jena/pull/197#discussion_r92841380
--- Diff:
jena-rdfconnection/src/main/java/org/apache/jena/rdfconnection/RDFConnectionFactory.java
---
@@ -0,0 +1,84 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.jena.rdfconnection;
+
+import org.apache.jena.query.Dataset ;
+import org.apache.jena.system.JenaSystem ;
+
+// Pool stuff
+public class RDFConnectionFactory {
+ static { JenaSystem.init(); }
+
+ /** 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 specificied using {@link #connect(String,
String, String, String)}
+ *
+ * @param destination
+ * @return RDFConnection
+ * @see #connect(String, String, String, String)
+ */
+ public static RDFConnection connect(String destination) {
+ return new RDFConnectionRemote(destination) ;
+ }
+
+ /** Create a connection to a remote location by URL.
+ * This is the URL for the dataset.
+ *
+ * This call requires specifying the names of the service.
+ */
+ public static RDFConnection connect(String queryServiceEndpoint,
+ String updateServiceEndpoint,
+ String graphStoreProtocolEndpoint)
{
+ return new RDFConnectionRemote(queryServiceEndpoint,
updateServiceEndpoint, graphStoreProtocolEndpoint) ;
+ }
+
+
+ /** Create a connection to a remote location by URL.
+ * This is the URL for the dataset.
+ *
+ * This call requires specifying the names of the servicerelative to
the dataset URL.
--- End diff --
Missing space
> RDFConnection
> -------------
>
> Key: JENA-1267
> URL: https://issues.apache.org/jira/browse/JENA-1267
> Project: Apache Jena
> Issue Type: New Feature
> Affects Versions: Jena 3.1.1
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Fix For: Jena 3.2.0
>
>
> RDFConnection is an API to bring together the 3 parts of SPARQL : Query,
> Update and Graph Store Protocol.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)