You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by bu...@apache.org on 2013/08/23 21:40:48 UTC

svn commit: r875889 - in /websites/staging/jena/trunk/content: ./ documentation/jdbc/drivers.html documentation/jdbc/index.html

Author: buildbot
Date: Fri Aug 23 19:40:47 2013
New Revision: 875889

Log:
Staging update by buildbot for jena

Added:
    websites/staging/jena/trunk/content/documentation/jdbc/drivers.html
Modified:
    websites/staging/jena/trunk/content/   (props changed)
    websites/staging/jena/trunk/content/documentation/jdbc/index.html

Propchange: websites/staging/jena/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Aug 23 19:40:47 2013
@@ -1 +1 @@
-1516991
+1517000

Added: websites/staging/jena/trunk/content/documentation/jdbc/drivers.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/jdbc/drivers.html (added)
+++ websites/staging/jena/trunk/content/documentation/jdbc/drivers.html Fri Aug 23 19:40:47 2013
@@ -0,0 +1,200 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    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.
+-->
+
+  <link href="/css/bootstrap.min.css" rel="stylesheet" type="text/css">
+  <link href="/css/bootstrap-extension.css" rel="stylesheet" type="text/css">
+
+  <title>Apache Jena - Jena JDBC Drivers</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
+  <script src="/js/jena-navigation.js" type="text/javascript"></script>
+  <script src="/js/bootstrap.min.js" type="text/javascript"></script>
+</head>
+
+<body>
+    <div class="navbar navbar-fixed-top">
+      <div class="navbar-inner">
+        <div class="container">
+        <a class="brand" href="/index.html" style="padding-top: 6px; padding-bottom: 0px;">
+            <img class="logo-menu" src="/images/jena-logo/jena-logo-notext-small.png" alt="jena logo">
+          </a>
+          <a class="brand" href="/index.html">Apache Jena</a>
+          <div class="nav-collapse collapse">
+            <ul class="nav">
+              <li id="homepage"><a href="/index.html"><i class="icon-home"></i> Home</a></li>
+              <li id="download"><a href="/download/index.html"><i class="icon-download-alt"></i> Download</a></li>
+              <li class="dropdown">
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-book"></i> Learn <b class="caret"></b></a>
+                <ul class="dropdown-menu">
+                  <li class="nav-header">Tutorials</li>
+                  <li><a href="/tutorials/index.html">Overview</a></li>
+                  <li><a href="/tutorials/rdf_api.html">RDF core API tutorial</a></li>
+                  <li><a href="/tutorials/sparql.html">SPARQL tutorial</a></li>
+                  <li><a href="/documentation/query/manipulating_sparql_using_arq.html">Manipulating SPARQL using ARQ</a></li>
+                  <li><a href="/tutorials/using_jena_with_eclipse.html">Using Jena with Eclipse</a></li>
+                  <li><a href="/documentation/notes/index.html">How-To's</a></li>
+                  <li class="divider"></li>
+                  <li class="nav-header">References</li>
+                  <li><a href="/documentation/index.html">Overview</a></li>
+                  <li><a href="/documentation/javadoc/">Javadoc</a></li>
+                  <li><a href="/documentation/rdf/index.html">RDF API</a></li>
+                  <li><a href="/documentation/io/">RDF I/O</a></li>
+                  <li><a href="/documentation/query/index.html">ARQ (SPARQL)</a></li>
+                  <li><a href="/documentation/query/text-query.html">Text Search</a></li>
+                  <li><a href="/documentation/tdb/index.html">TDB</a></li>
+		  <li><a href="/documentation/sdb/index.html">SDB</a></li>
+		  <li><a href="/documentation/jdbc/index.html">SPARQL over JDBC</a></li>
+                  <li><a href="/documentation/serving_data/index.html">Fuseki</a></li>
+                  <li><a href="/documentation/assembler/index.html">Assembler</a></li>
+                  <li><a href="/documentation/ontology/">Ontology API</a></li>
+                  <li><a href="/documentation/inference/index.html">Inference API</a></li>
+                  <li><a href="/documentation/tools/index.html">Command-line tools</a></li>
+                </ul>
+              </li>
+              <li id="ask"><a href="/help_and_support/index.html"><i class="icon-question-sign"></i> Ask</a></li>
+              
+              <li class="dropdown">
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-bullhorn"></i> Get involved <b class="caret"></b></a>
+                <ul class="dropdown-menu">
+                  <li><a href="/getting_involved/index.html">Contribute</a></li>
+                  <li><a href="/help_and_support/bugs_and_suggestions.html">Report a bug</a></li>
+                  <li class="divider"></li>
+                  <li class="nav-header">Project</li>
+                  <li><a href="/about_jena/about.html">About Jena</a></li>
+                  <li><a href="/about_jena/roadmap.html">Roadmap</a></li>
+                  <li><a href="/about_jena/architecture.html">Architecture</a></li>
+                  <li><a href="/about_jena/team.html">Project team</a></li>
+                  <li><a href="/about_jena/contributions.html">Related projects</a></li>
+                  <li class="divider"></li>
+                  <li class="nav-header">ASF</li>
+                  <li><a href="http://www.apache.org/">Apache Software Foundation</a></li>
+                  <li><a href="http://www.apache.org/licenses/LICENSE-2.0">License</a></li>
+                  <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+                  <li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+                  <li><a href="http://www.apache.org/security/">Security</a></li>
+                </ul>
+              </li>
+            </ul>
+          </div><!--/.nav-collapse -->
+        </div>
+      </div>
+    </div>
+
+
+<div class="container">
+	<div class="row-fluid">
+	<div class="span12">
+	<h1 class="title">Jena JDBC Drivers</h1>
+  <p>Jena JDBC comes with tree built in drivers by default with the option of building
+<a href="custom_driver.html">custom drivers</a> if desired.  This page covers the differences
+between the provided drivers and the connection URL options for each.</p>
+<h2 id="connection-url-basics">Connection URL Basics</h2>
+<p>Connection URLs for Jena JDBC drivers have a common format, they all start with the following:</p>
+<div class="codehilite"><pre><span class="n">jdbc</span><span class="o">:</span><span class="n">jena</span><span class="o">:</span><span class="n">foo</span><span class="o">:</span>
+</pre></div>
+
+
+<p>Where <code>foo</code> is a driver specific prefix that indicates which specific driver implementation
+is being used.</p>
+<p>After the prefix the connection URL consists of a sequence of key
+value pairs, the characters ampersand (<code>&amp;</code>), semicolon (<code>;</code>) and
+pipe (<code>|</code>) are considered to be separators between pairs, the
+separators are reserved characters and may not be used in values. The key is
+separated from the value by a equals sign (<code>=</code>) though unlike the
+separators this is not a reserved character in values.</p>
+<p>There is no notion of character escaping in connection parameters so if you
+need to use any of the reserved characters in your values then you should
+pass these to the <code>connect(String, Properties)</code> method directly in the
+<code>Properties</code> object.</p>
+<h3 id="common-parameters">Common Parameters</h3>
+<p>There are some common parameter understood by all Jena JDBC drivers and which
+apply regardless of driver implementation.</p>
+<h3 id="jdbc-compatibility-level">JDBC Compatibility Level</h3>
+<p>As discussed in the <a href="index.html#treatment-of-results">overview</a> the drivers have a notion
+of JDBC compatibility which is configurable. The <code>jdbc-compatibility</code> parameter is used 
+in connection URLs. To avoid typos when creating URLs programmatically a constant 
+(<code>JenaDriver.PARAM_JDBC_COMPATIBILITY</code>) is provided which contains the parameter
+name exactly as the code expects it. This parameter provides an integer value
+in the range 1-9 which denotes how compatible the driver should attempt to
+be.  See the aforementioned overview documentation for more information on the interpretation
+of this parameter.</p>
+<p>When not set the default compatibility level is
+used, note that <code>JenaConnection</code> objects support changing this after
+the connection has been established.</p>
+<h3 id="pre-processors">Pre-Processors</h3>
+<p>The second of the common parameters is the <code>pre-processor</code> parameter which is used to
+specify one/more <code>CommandPreProcessor</code> implementations to use. The
+parameter should be specified once for each pre-processor you wish to you and
+you should supply a fully qualified class name to ensure the pre-processor
+can be loaded and registered on your connections. The driver will report an
+error if you specify a class that cannot be appropriately loaded and
+registered.</p>
+<p>Pre-processors are registered in the order that they are specified so if you
+use multiple pre-processors and they have ordering dependencies please ensure
+that you specify them in the desired order. Note that <code>JenaConnection</code>
+objects support changing registered pre-processors after the connection has
+been established.</p>
+<h3 id="post-processors">Post-Processors</h3>
+<p>There is also a <code>post-processor</code> parameter which is used to specify
+one/more <code>ResultsPostProcessor</code> implementations to use. The parameter
+should be specified once for each post-processor you wish to use and you
+should supply a fully qualified class name to ensure the post-processor can
+be loaded and registered on your connections. The driver will report an error
+is you specify a class that cannot be appropriately loaded and registered.</p>
+<p>Post-processors are registered in the order that they are specified so if you
+use multiple post-processors and they have ordering dependencies please
+ensure that you specify them in the desired order. Note that
+<code>JenaConnection</code> objects support changing registered post-processors
+after the connection has been established.</p>
+<h2 id="available-drivers">Available Drivers</h2>
+<ul>
+<li><a href="#in-memory">In-Memory</a></li>
+<li><a href="#tdb">TDB</a></li>
+<li><a href="#remote-endpoint">Remote Endpoint</a></li>
+</ul>
+<h3 id="in-memory">In-Memory</h3>
+<p>The in-memory driver provides access to a non-persistent memory dataset.  This dataset
+may either be initially empty or may be initialized from an input file.  Remember that
+this is non-persistent so even if the latter option is chosen changes are not persisted
+to the input file.  This driver is primarily intended for testing and demonstration
+purposes.</p>
+<h3 id="tdb">TDB</h3>
+<h3 id="remote-endpoint">Remote Endpoint</h3>
+  </div>
+</div>
+
+</div><!--/.container -->
+
+    <footer class="footer">
+      <div class="container">
+        <p>Copyright &copy; 2011&ndash;2013 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        </p>
+        <p>
+        Apache Jena, Jena, the Apache Jena project logo,
+        Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+        </p>
+      </div>
+  </footer>
+      
+
+</body>
+</html>

Modified: websites/staging/jena/trunk/content/documentation/jdbc/index.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/jdbc/index.html (original)
+++ websites/staging/jena/trunk/content/documentation/jdbc/index.html Fri Aug 23 19:40:47 2013
@@ -121,9 +121,9 @@ are supported.  Otherwise it is a fully 
 either SPARQL queries or updates and processes them as such.</p>
 <p>As detailed on the <a href="drivers.html">drivers</a> page there are actually three drivers provided currently:</p>
 <ul>
-<li>In-Memory - uses an in-memory dataset to provide non-persistent storage</li>
-<li>TDB - uses a <a href="/documentation/tdb/">TDB</a> dataset to provide persistent and transactional storage</li>
-<li>Remote - uses HTTP based remote endpoints to access any SPARQL protocol compliant storage</li>
+<li><a href="drivers.html#in-memory">In-Memory</a> - uses an in-memory dataset to provide non-persistent storage</li>
+<li><a href="drivers.html#tdb">TDB</a> - uses a <a href="/documentation/tdb/">TDB</a> dataset to provide persistent and transactional storage</li>
+<li><a href="drivers.html#remote-endpoint">Remote Endpoint</a> - uses HTTP based remote endpoints to access any SPARQL protocol compliant storage</li>
 </ul>
 <p>These are all built on a core library which can be used to build <a href="custom_driver.html">custom drivers</a>
 if desired.  This means that all drivers share common infrastructure and thus exhibit broadly speaking