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 2014/01/31 17:28:06 UTC

svn commit: r895955 - in /websites/staging/jena/trunk/content: ./ documentation/tools/schemagen-maven.html tutorials/sparql_query1.html

Author: buildbot
Date: Fri Jan 31 16:28:06 2014
New Revision: 895955

Log:
Staging update by buildbot for jena

Added:
    websites/staging/jena/trunk/content/documentation/tools/schemagen-maven.html
Modified:
    websites/staging/jena/trunk/content/   (props changed)
    websites/staging/jena/trunk/content/tutorials/sparql_query1.html

Propchange: websites/staging/jena/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Jan 31 16:28:06 2014
@@ -1 +1 @@
-1562890
+1563165

Added: websites/staging/jena/trunk/content/documentation/tools/schemagen-maven.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/tools/schemagen-maven.html (added)
+++ websites/staging/jena/trunk/content/documentation/tools/schemagen-maven.html Fri Jan 31 16:28:06 2014
@@ -0,0 +1,294 @@
+<!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.
+-->
+
+  <title>Apache Jena - </title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+  <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen">
+  <link href="/css/bootstrap-extension.css" rel="stylesheet" type="text/css">
+  <link href="/css/jena.css" rel="stylesheet" type="text/css">
+  <link rel="shortcut icon" href="/images/favicon.ico" />
+  
+  <script src="https://code.jquery.com/jquery-2.0.3.min.js"></script>
+  <script src="/js/jena-navigation.js" type="text/javascript"></script>
+  <script src="/js/bootstrap.min.js" type="text/javascript"></script>
+  <script src="/js/breadcrumbs.js" type="text/javascript"></script>
+
+  
+  <!-- Uncomment to enable code coloring <link href="/css/codehilite.css" rel="stylesheet" type="text/css"> -->
+
+</head>
+
+<body>
+
+
+
+<nav class="navbar navbar-default" role="navigation">
+<div class="container">
+  <div class="navbar-header">
+  
+        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
+      <span class="icon-bar"></span>
+      <span class="icon-bar"></span>
+      <span class="icon-bar"></span>
+    </button>
+ 	<a class="navbar-brand" href="/index.html">
+		<img class="logo-menu" src="/images/jena-logo/jena-logo-notext-small.png" alt="jena logo">Apache Jena</a>
+  </div>
+ 
+
+
+  <div class="collapse navbar-collapse navbar-ex1-collapse">
+    <ul class="nav navbar-nav">
+
+
+
+              <li id="homepage"><a href="/index.html"><span class="glyphicon glyphicon-home"></span> Home</a></li>
+              <li id="download"><a href="/download/index.cgi"><span class="glyphicon glyphicon-download-alt"></span> Download</a></li>
+              <li class="dropdown">
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-book"></span> Learn <b class="caret"></b></a>
+                <ul class="dropdown-menu">
+                  <li class="dropdown-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="dropdown-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/security/index.html">Security</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"><span class="glyphicon glyphicon-question-sign"></span> Ask</a></li>
+              
+              <li class="dropdown">
+                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-bullhorn"></span> 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="dropdown-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="dropdown-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>
+</div>
+</nav>
+
+
+<div class="container">
+	<div class="row">
+	<div class="col-md-12">
+	<div id="breadcrumbs"></div>
+	<h1 class="title"></h1>
+  <h1 id="schemagen-maven-generating-java-source-files-from-owl-and-rdfs-ontologies-via-maven">Schemagen-maven: generating Java source files from OWL and RDFS ontologies via Maven</h1>
+<p>The <a href="http://jena.apache.org">Apache Jena</a> command line tool
+<a href="http://jena.apache.org/documentation/tools/schemagen.html"><code>schemagen</code></a>
+provides an automated way of creating
+Java source code constants from ontology files in an RDF-based project. This
+can be very convenient, as it provides both a level of robustness that the
+names of RDF classes, properties and individuals are being used correctly, and
+it can be used by IDE's such as Eclipse to provide name-completion for
+constants from the ontology.</p>
+<p>For some projects, invoking <code>schemagen</code> from the command line, perhaps via <code>ant</code>,
+is sufficient. For projects organised around Apache maven, it would be convenient to integrate
+the schemagen translation step into maven's normal build process. This plugin
+provides a means to do just that.</p>
+<h2 id="pre-requisites">Pre-requisites</h2>
+<p>This plugin adds a step to the maven build process to automatically translate RDFS
+and OWL files, encoded as RDF/XML, Turtle or N-triples into Java source files.
+This plugin is designed to be used with a Java project that is already using Apache maven to
+control the build. Non-Java projects do not need this tool. Projects that are
+not using Maven should see the <a href="schemagen.html">schemagen documentation</a>
+for ways to run <code>schemagen</code> from the command line.</p>
+<h2 id="installing">Installing</h2>
+<p>Schemagen is available from the maven central repository. To use it, add
+the following dependency to your <code>pom.xml</code>:</p>
+<div class="codehilite"><pre><span class="nt">&lt;dependency&gt;</span>
+  <span class="nt">&lt;groupId&gt;</span>org.apache.jena.tools<span class="nt">&lt;/groupId&gt;</span>
+  <span class="nt">&lt;artifactId&gt;</span>schemagen<span class="nt">&lt;/artifactId&gt;</span>
+  <span class="nt">&lt;version&gt;</span>0.2-SNAPSHOT<span class="nt">&lt;/version&gt;</span>
+  <span class="nt">&lt;type&gt;</span>maven-plugin<span class="nt">&lt;/type&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+</pre></div>
+
+
+<h2 id="configuration-basic-principles">Configuration: basic principles</h2>
+<p>Schemagen supports a large number of options, controlling such things as the name of the
+input file, the RDF namespace to expect, which Java package to place the output in and
+so forth. For a command line or Ant-based build, these options are normally passed on
+a per-file basis. When using maven, however, we point the plugin at a whole collection of input
+files to be converted to Java, and let the plugin figure out which ones need updating (e.g. because
+the RDF source is newer than the Java output, or because the Java file has not yet
+been generated). So we need:</p>
+<ul>
+<li>a mechanism to specify which files to process</li>
+<li>a mechanism to specify common options for all input files</li>
+<li>a mechanism to specify per-file unique options</li>
+</ul>
+<p>In maven, all such configuration information is provided via the <code>pom.xml</code> file. We tell
+maven to use the plugin via the <code>&lt;build&gt;/&lt;plugins&gt;</code> section:</p>
+<div class="codehilite"><pre><span class="nt">&lt;build&gt;</span>
+  <span class="nt">&lt;plugins&gt;</span>
+    <span class="nt">&lt;plugin&gt;</span>
+      <span class="nt">&lt;groupId&gt;</span>org.openjena.tools<span class="nt">&lt;/groupId&gt;</span>
+      <span class="nt">&lt;artifactId&gt;</span>schemagen<span class="nt">&lt;/artifactId&gt;</span>
+      <span class="nt">&lt;version&gt;</span>0.2-SNAPSHOT<span class="nt">&lt;/version&gt;</span>
+      <span class="nt">&lt;configuration&gt;</span>
+      <span class="nt">&lt;/configuration&gt;</span>
+      <span class="nt">&lt;executions&gt;</span>
+        <span class="nt">&lt;execution&gt;</span>
+          <span class="nt">&lt;id&gt;</span>schemagen<span class="nt">&lt;/id&gt;</span>
+          <span class="nt">&lt;goals&gt;</span>
+            <span class="nt">&lt;goal&gt;</span>translate<span class="nt">&lt;/goal&gt;</span>
+          <span class="nt">&lt;/goals&gt;</span>
+        <span class="nt">&lt;/execution&gt;</span>
+      <span class="nt">&lt;/executions&gt;</span>
+    <span class="nt">&lt;/plugin&gt;</span>
+  <span class="nt">&lt;/plugins&gt;</span>
+<span class="nt">&lt;/build&gt;</span>
+</pre></div>
+
+
+<p>The configuration options all nest inside the <code>&lt;configuration&gt;</code> section.</p>
+<h3 id="specifying-files-to-process">Specifying files to process</h3>
+<p>An <code>&lt;include&gt;</code> directive specifies one file pattern to include in the set of
+files to process. Wildcards may be used. For example, the following section
+specifies that the tool will process all Turtle files, and the <code>foaf.rdf</code> file,
+in <code>src/main/vocabs</code>:</p>
+<div class="codehilite"><pre><span class="nt">&lt;includes&gt;</span>
+  <span class="nt">&lt;include&gt;</span>src/main/vocabs/*.ttl<span class="nt">&lt;/include&gt;</span>
+  <span class="nt">&lt;include&gt;</span>src/main/vocabs/foaf.rdf<span class="nt">&lt;/include&gt;</span>
+<span class="nt">&lt;/includes&gt;</span>
+</pre></div>
+
+
+<h3 id="specifying-processing-options">Specifying processing options</h3>
+<p>Options are, in general, given in the <code>&lt;fileOptions&gt;</code> section. A given
+<code>&lt;source&gt;</code> refers to one input source - one file - as named by the
+`<input> name. The actual option names are taken from the RDF <a href="http://jena.apache.org/documentation/tools/schemagen.html">config
+file property names</a>,
+omitting the namespace:</p>
+<div class="codehilite"><pre>      <span class="nt">&lt;fileOptions&gt;</span>
+        <span class="nt">&lt;source&gt;</span>
+          <span class="c">&lt;!-- Test2.java (only) will contain OntModel declarations --&gt;</span>
+          <span class="nt">&lt;input&gt;</span>src/main/vocabs/demo2.ttl<span class="nt">&lt;/input&gt;</span>
+          <span class="nt">&lt;ontology&gt;</span>true<span class="nt">&lt;/ontology&gt;</span>
+        <span class="nt">&lt;/source&gt;</span>
+      <span class="nt">&lt;/fileOptions&gt;</span>
+</pre></div>
+
+
+<p>The special source <code>default</code> provides a mechanism for specifying shared defaults
+across all input sources:</p>
+<div class="codehilite"><pre>        <span class="nt">&lt;source&gt;</span>
+          <span class="nt">&lt;input&gt;</span>default<span class="nt">&lt;/input&gt;</span>
+          <span class="nt">&lt;package-name&gt;</span>org.example.test<span class="nt">&lt;/package-name&gt;</span>
+        <span class="nt">&lt;/source&gt;</span>
+</pre></div>
+
+
+<h2 id="example-configuration">Example configuration</h2>
+<div class="codehilite"><pre><span class="nt">&lt;build&gt;</span>
+  <span class="nt">&lt;plugins&gt;</span>
+    <span class="nt">&lt;plugin&gt;</span>
+      <span class="nt">&lt;groupId&gt;</span>org.openjena.tools<span class="nt">&lt;/groupId&gt;</span>
+      <span class="nt">&lt;artifactId&gt;</span>schemagen<span class="nt">&lt;/artifactId&gt;</span>
+      <span class="nt">&lt;version&gt;</span>0.2-SNAPSHOT<span class="nt">&lt;/version&gt;</span>
+      <span class="nt">&lt;configuration&gt;</span>
+        <span class="nt">&lt;includes&gt;</span>
+          <span class="nt">&lt;include&gt;</span>src/main/vocabs/*.ttl<span class="nt">&lt;/include&gt;</span>
+          <span class="nt">&lt;include&gt;</span>src/main/vocabs/foaf.rdf<span class="nt">&lt;/include&gt;</span>
+        <span class="nt">&lt;/includes&gt;</span>
+        <span class="nt">&lt;fileOptions&gt;</span>
+          <span class="nt">&lt;source&gt;</span>
+            <span class="nt">&lt;input&gt;</span>default<span class="nt">&lt;/input&gt;</span>
+            <span class="nt">&lt;package-name&gt;</span>org.example.test<span class="nt">&lt;/package-name&gt;</span>
+          <span class="nt">&lt;/source&gt;</span>
+          <span class="nt">&lt;source&gt;</span>
+            <span class="c">&lt;!-- Test2.java (only) will contain OntModel declarations --&gt;</span>
+            <span class="nt">&lt;input&gt;</span>src/main/vocabs/demo2.ttl<span class="nt">&lt;/input&gt;</span>
+            <span class="nt">&lt;ontology&gt;</span>true<span class="nt">&lt;/ontology&gt;</span>
+          <span class="nt">&lt;/source&gt;</span>
+        <span class="nt">&lt;/fileOptions&gt;</span>
+      <span class="nt">&lt;/configuration&gt;</span>
+      <span class="nt">&lt;executions&gt;</span>
+        <span class="nt">&lt;execution&gt;</span>
+          <span class="nt">&lt;id&gt;</span>schemagen<span class="nt">&lt;/id&gt;</span>
+          <span class="nt">&lt;goals&gt;</span>
+            <span class="nt">&lt;goal&gt;</span>translate<span class="nt">&lt;/goal&gt;</span>
+          <span class="nt">&lt;/goals&gt;</span>
+        <span class="nt">&lt;/execution&gt;</span>
+      <span class="nt">&lt;/executions&gt;</span>
+    <span class="nt">&lt;/plugin&gt;</span>
+  <span class="nt">&lt;/plugins&gt;</span>
+<span class="nt">&lt;/build&gt;</span>
+</pre></div>
+  </div>
+</div>
+
+</div><!--/.container -->
+
+    <footer class="footer">
+      <div class="container">
+        <p>Copyright &copy; 2011&ndash;2014 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/tutorials/sparql_query1.html
==============================================================================
--- websites/staging/jena/trunk/content/tutorials/sparql_query1.html (original)
+++ websites/staging/jena/trunk/content/tutorials/sparql_query1.html Fri Jan 31 16:28:06 2014
@@ -164,63 +164,32 @@ which is why it does not appear in the t
 variable. The output shown was obtained by using one of ARQ's
 command line applications.</p>
 <h2 id="executing-the-query">Executing the query</h2>
-<p>There are <a href="/documentation/query/cmds.html">helper scripts</a> in the ARQ <code>bat/</code> and
-<code>bin/</code> directories of the ARQ distribution. They may not be in a
-Jena distribution. You should check these scripts before use.</p>
+<p>There are <a href="/documentation/query/cmds.html">helper scripts</a> in the Jena distribution <code>bat/</code> and
+<code>bin/</code> directories.  You should check these scripts before use.  They can be placed on on the shell
+command path.</p>
 <h3 id="windows-setup">Windows setup</h3>
-<p>Set the <code>ARQROOT</code> environment variable to the file location of the
-ARQ distribution.</p>
-<div class="codehilite"><pre><span class="n">set</span> <span class="n">ARQROOT</span><span class="p">=</span><span class="n">c</span><span class="p">:</span><span class="o">\</span><span class="n">MyProjects</span><span class="o">\</span><span class="n">ARQ</span>
-</pre></div>
-
-
-<p>The distribution usually has the version number in the directory
-name.</p>
-<p>In the ARQ directory, execute:</p>
+<p>Execute:</p>
 <div class="codehilite"><pre><span class="n">bat</span><span class="o">\</span><span class="n">sparql</span><span class="p">.</span><span class="n">bat</span> <span class="o">--</span><span class="n">data</span><span class="p">=</span><span class="n">doc</span><span class="o">\</span><span class="n">Tutorial</span><span class="o">\</span><span class="n">vc</span><span class="o">-</span><span class="n">db</span><span class="o">-</span>1<span class="p">.</span><span class="n">rdf</span> <span class="o">--</span><span class="n">query</span><span class="p">=</span><span class="n">doc</span><span class="o">\</span><span class="n">Tutorial</span><span class="o">\</span><span class="n">q1</span><span class="p">.</span><span class="n">rq</span>
 </pre></div>
 
 
-<p>(TODO we will need to update these once the release structure is clear)</p>
 <p>You can just put the <code>bat/</code> directory on your classpath or copy the
-programs out of it. They all depend on ARQROOT.</p>
+programs out of it.</p>
 <h3 id="bash-scripts-for-linuxcygwinunix">bash scripts for Linux/Cygwin/Unix</h3>
-<p>Set the <code>ARQROOT</code> environment variable to the file location of the
-ARQ distribution.</p>
-<div class="codehilite"><pre><span class="n">export</span> <span class="n">ARQROOT</span><span class="p">=</span>$<span class="n">HOME</span><span class="o">/</span><span class="n">MyProjects</span><span class="o">/</span><span class="n">ARQ</span>
-</pre></div>
-
-
-<p>The distribution usually has the version number in the directory
-name.</p>
-<p>In the ARQ directory, execute:</p>
+<p>Execute:</p>
 <div class="codehilite"><pre><span class="n">bin</span><span class="o">/</span><span class="n">sparql</span> <span class="o">--</span><span class="n">data</span><span class="p">=</span><span class="n">doc</span><span class="o">/</span><span class="n">Tutorial</span><span class="o">/</span><span class="n">vc</span><span class="o">-</span><span class="n">db</span><span class="o">-</span>1<span class="p">.</span><span class="n">rdf</span> <span class="o">--</span><span class="n">query</span><span class="p">=</span><span class="n">doc</span><span class="o">/</span><span class="n">Tutorial</span><span class="o">/</span><span class="n">q1</span><span class="p">.</span><span class="n">rq</span>
 </pre></div>
 
 
-<p>You can just put the <code>bin/</code> directory on your classpath or copy the
-programs out of it. They all depend on ARQROOT.</p>
-<p><a href="http://www.cygwin.com/">Cygwin</a> is a Linux-like environment for
-Windows.</p>
 <h3 id="using-the-java-command-line-applications-directly">Using the Java command line applications directly</h3>
+<p>(This is not necessary.)</p>
 <p>You will need to set the classpath to include <em>all</em> the jar files
-in the ARQ <code>lib/</code> directory.</p>
-<p>For example, on Windows:</p>
-<div class="codehilite"><pre><span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">antlr</span><span class="o">-</span>2<span class="p">.</span>7<span class="p">.</span>5<span class="p">.</span><span class="n">jar</span><span class="p">;</span><span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">arq</span><span class="o">-</span><span class="n">extra</span><span class="p">.</span><span class="n">jar</span><span class="p">;</span><span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">arq</span><span class="p">.</span><span class="n">jar</span><span class="p">;</span>
-<span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">commons</span><span class="o">-</span><span class="n">logging</span><span class="o">-</span>1<span class="p">.</span>1<span class="p">.</span><span class="n">jar</span><span class="p">;</span><span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">concurrent</span><span class="p">.</span><span class="n">jar</span><span class="p">;</span><span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">icu4j_3_4</span><span class="p">.</span><span class="n">jar</span><span class="p">;</span>
-<span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">iri</span><span class="p">.</span><span class="n">jar</span><span class="p">;</span><span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">jena</span><span class="p">.</span><span class="n">jar</span><span class="p">;</span><span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">jenatest</span><span class="p">.</span><span class="n">jar</span><span class="p">;</span>
-<span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">json</span><span class="p">.</span><span class="n">jar</span><span class="p">;</span><span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">junit</span><span class="p">.</span><span class="n">jar</span><span class="p">;</span><span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">log4j</span><span class="o">-</span>1<span class="p">.</span>2<span class="p">.</span>12<span class="p">.</span><span class="n">jar</span><span class="p">;</span>
-<span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">lucene</span><span class="o">-</span><span class="n">core</span><span class="o">-</span>2<span class="p">.</span>2<span class="p">.</span>0<span class="p">.</span><span class="n">jar</span><span class="p">;</span><span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">stax</span><span class="o">-</span><span class="n">api</span><span class="o">-</span>1<span class="p">.</span>0<span class="p">.</span><span class="n">jar</span><span class="p">;</span>
-<span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">wstx</span><span class="o">-</span><span class="n">asl</span><span class="o">-</span>3<span class="p">.</span>0<span class="p">.</span>0<span class="p">.</span><span class="n">jar</span><span class="p">;</span><span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">xercesImpl</span><span class="p">.</span><span class="n">jar</span><span class="p">;</span><span class="n">ARQdir</span><span class="o">\</span><span class="n">lib</span><span class="o">\</span><span class="n">xml</span><span class="o">-</span><span class="n">apis</span><span class="p">.</span><span class="n">jar</span>
+in the Jena distribution <code>lib/</code> directory.</p>
+<div class="codehilite"><pre><span class="n">java</span> <span class="o">-</span><span class="n">cp</span> <span class="s">&#39;DIST/lib/*&#39;</span> <span class="n">arq</span><span class="p">.</span><span class="n">sparql</span> <span class="p">...</span>
 </pre></div>
 
 
-<p>(TODO needs updating)</p>
-<p>where <code>&lt;i&gt;ARQdir&lt;/i&gt;</code> is where you unpacked ARQ. This must be all
-one line.</p>
-<p>The names of jar files sometimes changes and new jar files do get
-added - do check this list with your version of ARQ.</p>
-<p>The commands themselves are in the <code>arq</code> package.</p>
+<p>where <code>DIST</code> is the <code>apache-jena-VERSION</code> directory.</p>
 <p><a href="sparql_basic_patterns.html">Next: basic patterns</a></p>
   </div>
 </div>