Author: buildbot
Date: Sat Sep 29 12:46:39 2018
New Revision: 1035903

Log:
Staging update by buildbot for jena

Added:
    websites/staging/jena/trunk/content/documentation/fuseki2/fuseki-main.html
Removed:
    
websites/staging/jena/trunk/content/documentation/fuseki2/fuseki-embedded.html
Modified:
    websites/staging/jena/trunk/content/   (props changed)
    websites/staging/jena/trunk/content/documentation/fuseki2/fuseki-run.html
    websites/staging/jena/trunk/content/documentation/fuseki2/index.html

Propchange: websites/staging/jena/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Sep 29 12:46:39 2018
@@ -1 +1 @@
-1842319
+1842328

Added: 
websites/staging/jena/trunk/content/documentation/fuseki2/fuseki-main.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/fuseki2/fuseki-main.html 
(added)
+++ websites/staging/jena/trunk/content/documentation/fuseki2/fuseki-main.html 
Sat Sep 29 12:46:39 2018
@@ -0,0 +1,462 @@
+<!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 - Fuseki : Main Server</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.2.4.min.js";
+        integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
+        crossorigin="anonymous"></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>
+
+  <script src="/js/improve.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/rdfconnection/">RDF Connection - 
SPARQL API</a></li>
+                  <li><a href="/documentation/hadoop/index.html">Elephas - 
tools for RDF on Hadoop</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/fuseki2/index.html">Fuseki</a></li>
+                  <li><a 
href="/documentation/permissions/index.html">Permissions</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>
+                  <li><a 
href="/documentation/extras/index.html">Extras</a></li>
+                </ul>
+              </li>
+
+              <li class="drop down">
+                <a href="#" class="dropdown-toggle" 
data-toggle="dropdown"><span class="glyphicon glyphicon-book"></span> Javadoc 
<b class="caret"></b></a>
+                <ul class="dropdown-menu">
+                  <li><a href="/documentation/javadoc/jena/">Jena Core</a></li>
+                  <li><a href="/documentation/javadoc/arq/">ARQ</a></li>
+                  <li><a href="/documentation/javadoc/tdb/">TDB</a></li>
+                  <li><a 
href="/documentation/javadoc/elephas/">Elephas</a></li>
+                  <li><a href="/documentation/javadoc/text/">Text 
Search</a></li>
+                  <li><a href="/documentation/javadoc/spatial/">Spatial 
Search</a></li>
+                  <li><a 
href="/documentation/javadoc/permissions/">Permissions</a></li>
+                  <li><a href="/documentation/javadoc/jdbc/">JDBC</a></li>
+                  <li><a href="/documentation/javadoc/">All Javadoc</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>
+
+              <li id="edit"><a 
href="javascript:improveThisPage(location.href);" title="Improve this Page (Use 
username anonymous and empty password)"><span class="glyphicon 
glyphicon-pencil"></span> Improve this Page</a></li>   
+    </ul>
+  </div>
+</div>
+</nav>
+
+
+<div class="container">
+    <div class="row">
+    <div class="col-md-12">
+    <div id="breadcrumbs"></div>
+    <h1 class="title">Fuseki : Main Server</h1>
+  <style type="text/css">
+/* The following code is added by mdx_elementid.py
+   It was originally lifted from http://subversion.apache.org/style/site.css */
+/*
+ * Hide class="elementid-permalink", except when an enclosing heading
+ * has the :hover property.
+ */
+.headerlink, .elementid-permalink {
+  visibility: hidden;
+}
+h2:hover > .headerlink, h3:hover > .headerlink, h1:hover > .headerlink, 
h6:hover > .headerlink, h4:hover > .headerlink, h5:hover > .headerlink, 
dt:hover > .elementid-permalink { visibility: visible }</style>
+<p>Fuseki can be run in the background by an application as an embedded 
server.  The
+application can safely work with the dataset directly from java while having 
Fuseki
+provide SPARQL access over HTTP.  An embedded server is also useful for 
development
+and testing.</p>
+<ul>
+<li><a href="#usage">Application Use</a></li>
+<li><a href="#dependencies">Dependencies and Setup</a></li>
+<li><a href="#logging">Logging</a></li>
+<li><a href="#build">Building a Server</a></li>
+<li><a href="#fuseki-server">Running as a deployment or development 
server</a></li>
+<li><a href="#examples">Examples</a></li>
+</ul>
+<p>The embedded server does not depend on any files on disk (other than for
+databases provided by the application), and does not provide
+the Fuseki UI or admins functions to create dataset via HTTP.</p>
+<h2 id="usage">Application Use<a class="headerlink" href="#usage" 
title="Permanent link">&para;</a></h2>
+<p>The application can safely access and modify the data published by the 
server if it does
+so inside a <a href="/documentation/txn/">transaction</a> using an appropriate
+storage choice. <code>DatasetFactory.createTxnMem()</code> is a good choice 
for in-memory use;
+<a href="/documentation/tdb/">TDB</a> is a good choice for a persistent 
database.</p>
+<p>To build and start the server:</p>
+<div class="codehilite"><pre><span class="n">Dataset</span> <span 
class="n">ds</span> <span class="p">=</span> <span class="p">...</span>
+<span class="n">FusekiServer</span> <span class="n">server</span> <span 
class="p">=</span> <span class="n">FusekiServer</span><span 
class="p">.</span><span class="n">create</span><span class="p">()</span>
+  <span class="p">.</span><span class="n">add</span><span 
class="p">(</span>&quot;<span class="o">/</span><span 
class="n">rdf</span>&quot;<span class="p">,</span> <span 
class="n">ds</span><span class="p">)</span>
+  <span class="p">.</span><span class="n">build</span><span 
class="p">()</span> <span class="p">;</span>
+<span class="n">server</span><span class="p">.</span><span 
class="n">start</span><span class="p">()</span> <span class="p">;</span>
+</pre></div>
+
+
+<p>then the application can modify the dataset:</p>
+<div class="codehilite"><pre><span class="c1">// Add some data while 
live.</span>
+<span class="c1">// Write transaction.</span>
+<span class="n">Txn</span><span class="p">.</span><span 
class="n">execWrite</span><span class="p">(</span><span 
class="n">dsg</span><span class="p">,</span> <span class="p">()</span><span 
class="o">-&gt;</span><span class="n">RDFDataMgr</span><span 
class="p">.</span><span class="n">read</span><span class="p">(</span><span 
class="n">dsg</span><span class="p">,</span> <span 
class="s">&quot;D.trig&quot;</span><span class="p">))</span> <span 
class="p">;</span>
+</pre></div>
+
+
+<p>or read the dataset and see any updates made by remote systems:</p>
+<div class="codehilite"><pre><span class="c1">// Query data while live</span>
+<span class="c1">// Read transaction.</span>
+<span class="n">Txn</span><span class="p">.</span><span 
class="n">execRead</span><span class="p">(</span><span 
class="n">dsg</span><span class="p">,</span> <span class="p">()</span><span 
class="o">-&gt;</span><span class="p">{</span>
+<span class="n">Dataset</span> <span class="n">ds</span> <span 
class="o">=</span> <span class="n">DatasetFactory</span><span 
class="p">.</span><span class="n">wrap</span><span class="p">(</span><span 
class="n">dsg</span><span class="p">)</span> <span class="p">;</span>
+<span class="n">try</span> <span class="p">(</span><span 
class="n">QueryExecution</span> <span class="n">qExec</span> <span 
class="o">=</span> <span class="n">QueryExecutionFactory</span><span 
class="p">.</span><span class="n">create</span><span class="p">(</span><span 
class="s">&quot;SELECT * { ?s  ?o}&quot;</span><span class="p">,</span> <span 
class="n">ds</span><span class="p">)</span> <span class="p">)</span> <span 
class="p">{</span>
+    <span class="n">ResultSet</span> <span class="n">rs</span> <span 
class="o">=</span> <span class="n">qExec</span><span class="p">.</span><span 
class="n">execSelect</span><span class="p">()</span> <span class="p">;</span>
+    <span class="n">ResultSetFormatter</span><span class="p">.</span><span 
class="n">out</span><span class="p">(</span><span class="n">rs</span><span 
class="p">)</span> <span class="p">;</span>
+  <span class="p">}</span>
+<span class="p">})</span> <span class="p">;</span>
+</pre></div>
+
+
+<p>The full Jena API can be used provided operations (read and write) are 
inside
+a transaction.</p>
+<h2 id="dependencies">Dependencies and Setup<a class="headerlink" 
href="#dependencies" title="Permanent link">&para;</a></h2>
+<p>To include an embedded Fuseki server in the application:</p>
+<div class="codehilite"><pre><span class="nt">&lt;dependency&gt;</span>
+  <span class="nt">&lt;groupId&gt;</span>org.apache.jena<span 
class="nt">&lt;/groupId&gt;</span>
+  <span class="nt">&lt;artifactId&gt;</span>jena-fuseki-main<span 
class="nt">&lt;/artifactId&gt;</span>
+  <span class="nt">&lt;version&gt;</span>3.x.y<span 
class="nt">&lt;/version&gt;</span> <span class="c">&lt;!-- Set the version 
--&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+</pre></div>
+
+
+<p>This brings in enough dependencies to run Fuseki. Application writers are 
strongly
+encouraged to use a dependency manager because the number of Jetty and other 
dependencies
+is quite large and difficult to set manually.</p>
+<p>This dependency does not include a logging setting. Fuseki uses <a 
href="http://slf4j.org/";>slf4j</a>.
+See section "<a href="#logging">Logging</a>" for details.</p>
+<p>If the application wishes to use a dataset with a <a 
href="http://jena.apache.org/documentation/query/text-query.html";>text-index</a>
+then the application wil also need to include jena-text in its 
dependencies.</p>
+<h2 id="logging">Logging<a class="headerlink" href="#logging" title="Permanent 
link">&para;</a></h2>
+<p>The application must set the logging provided for <a 
href="http://slf4j.org/";>slf4j</a>.
+Apache jena provides helpers for the JDK-provided java logging and for Apache 
Log4j v1.</p>
+<p>Using the JDK-provided java logging:</p>
+<div class="codehilite"><pre><span class="n">LogCtl</span><span 
class="p">.</span><span class="n">setJavaLogging</span><span class="p">()</span>
+</pre></div>
+
+
+<p>and a dependency of:</p>
+<div class="codehilite"><pre><span class="nt">&lt;dependency&gt;</span>
+  <span class="nt">&lt;groupId&gt;</span>org.slf4j<span 
class="nt">&lt;/groupId&gt;</span>
+  <span class="nt">&lt;artifactId&gt;</span>slf4j-jdk14<span 
class="nt">&lt;/artifactId&gt;</span>
+  <span class="nt">&lt;version&gt;</span>1.x.y<span 
class="nt">&lt;/version&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+</pre></div>
+
+
+<p>For Apache log4j: - this is how the full Fuseki server sets its logging:</p>
+<div class="codehilite"><pre><span class="n">FusekiLogging</span><span 
class="p">.</span><span class="n">setLogging</span><span class="p">();</span>
+</pre></div>
+
+
+<p>and dependencies:</p>
+<div class="codehilite"><pre><span class="nt">&lt;dependency&gt;</span>
+  <span class="nt">&lt;groupId&gt;</span>org.slf4j<span 
class="nt">&lt;/groupId&gt;</span>
+  <span class="nt">&lt;artifactId&gt;</span>slf4j-log4j12<span 
class="nt">&lt;/artifactId&gt;</span>
+  <span class="nt">&lt;version&gt;</span>1.x.y<span 
class="nt">&lt;/version&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+
+<span class="nt">&lt;dependency&gt;</span>
+  <span class="nt">&lt;groupId&gt;</span>log4j<span 
class="nt">&lt;/groupId&gt;</span>
+  <span class="nt">&lt;artifactId&gt;</span>log4j<span 
class="nt">&lt;/artifactId&gt;</span>
+  <span class="nt">&lt;version&gt;</span>1.x.y<span 
class="nt">&lt;/version&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+</pre></div>
+
+
+<p>See <a 
href="http://jena.apache.org/documentation/fuseki2/fuseki-logging.html";>Fuseki 
Logging</a>.</p>
+<p>To silence logging from Java, try:</p>
+<div class="codehilite"><pre><span class="n">LogCtl</span><span 
class="p">.</span><span class="n">setLevel</span><span class="p">(</span><span 
class="n">Fuseki</span><span class="p">.</span><span 
class="n">serverLogName</span><span class="p">,</span>  &quot;<span 
class="n">WARN</span>&quot;<span class="p">);</span>
+<span class="n">LogCtl</span><span class="p">.</span><span 
class="n">setLevel</span><span class="p">(</span><span 
class="n">Fuseki</span><span class="p">.</span><span 
class="n">actionLogName</span><span class="p">,</span>  &quot;<span 
class="n">WARN</span>&quot;<span class="p">);</span>
+<span class="n">LogCtl</span><span class="p">.</span><span 
class="n">setLevel</span><span class="p">(</span><span 
class="n">Fuseki</span><span class="p">.</span><span 
class="n">requestLogName</span><span class="p">,</span> &quot;<span 
class="n">WARN</span>&quot;<span class="p">);</span>
+<span class="n">LogCtl</span><span class="p">.</span><span 
class="n">setLevel</span><span class="p">(</span><span 
class="n">Fuseki</span><span class="p">.</span><span 
class="n">adminLogName</span><span class="p">,</span>   &quot;<span 
class="n">WARN</span>&quot;<span class="p">);</span>
+<span class="n">LogCtl</span><span class="p">.</span><span 
class="n">setLevel</span><span class="p">(</span>&quot;<span 
class="n">org</span><span class="p">.</span><span class="n">eclipse</span><span 
class="p">.</span><span class="n">jetty</span>&quot;<span class="p">,</span>   
&quot;<span class="n">WARN</span>&quot;<span class="p">);</span>
+</pre></div>
+
+
+<h2 id="build">Building a server<a class="headerlink" href="#build" 
title="Permanent link">&para;</a></h2>
+<p>A <code>FusekiServer</code> is built by creating a configuration,
+building the server, then running it.  The application needs to start
+the server.</p>
+<p>The default port for a Fuseki embedded server is 3330. This is different 
for the default
+port for Fuseki running as a standalone server or as a webapp application.</p>
+<h2 id="fuseki-server">Running as a configured deployment or development 
server<a class="headerlink" href="#fuseki-server" title="Permanent 
link">&para;</a></h2>
+<p>The artifact <code>org.apache.jena:jena-fuseki-server</code> is a packaging 
of
+the "main" server that runs from the command line.  Unlike the UI 
+Fuseki server, it is only configured from the command line and has no
+persistent work area on-disk.</p>
+<div class="codehilite"><pre><span class="n">java</span> <span 
class="o">-</span><span class="n">jar</span> <span class="n">jena</span><span 
class="o">-</span><span class="n">fuseki</span><span class="o">-</span><span 
class="n">server</span><span class="o">-</span>$<span class="n">VER</span><span 
class="p">.</span><span class="n">jar</span> <span class="o">--</span><span 
class="n">help</span>
+</pre></div>
+
+
+<p>The arguments are the same as the 
+<a 
href="http://jena.apache.org/documentation/fuseki2/fuseki-run.html#fuseki-standalone-server";>full
 UI server command line program</a>.</p>
+<h2 id="examples">Examples<a class="headerlink" href="#examples" 
title="Permanent link">&para;</a></h2>
+<h3 id="example-1">Example 1<a class="headerlink" href="#example-1" 
title="Permanent link">&para;</a></h3>
+<p>Create a server on port 3330, that provides the default set of endpoints 
for an RDF
+dataset that can be updated via HTTP.</p>
+<div class="codehilite"><pre><span class="n">DatasetGraph</span> <span 
class="n">ds</span> <span class="p">=</span> <span 
class="n">DatasetFactory</span><span class="p">.</span><span 
class="n">createTxnMem</span><span class="p">()</span> <span class="p">;</span>
+<span class="n">FusekiServer</span> <span class="n">server</span> <span 
class="p">=</span> <span class="n">FusekiServer</span><span 
class="p">.</span><span class="n">create</span><span class="p">()</span>
+    <span class="p">.</span><span class="n">add</span><span 
class="p">(</span>&quot;<span class="o">/</span><span 
class="n">ds</span>&quot;<span class="p">,</span> <span 
class="n">ds</span><span class="p">)</span>
+    <span class="p">.</span><span class="n">build</span><span 
class="p">()</span> <span class="p">;</span>
+<span class="n">server</span><span class="p">.</span><span 
class="n">start</span><span class="p">()</span> <span class="p">;</span>
+<span class="p">...</span>
+<span class="n">server</span><span class="p">.</span><span 
class="n">stop</span><span class="p">()</span> <span class="p">;</span>
+</pre></div>
+
+
+<p>URLs:</p>
+<table class="table">
+<thead>
+<tr>
+<th>Service</th>
+<th>Endpoint</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>SPARQL Query</td>
+<td><code>http://host:3330/ds/query</code></td>
+</tr>
+<tr>
+<td>SPARQL Query</td>
+<td><code>http://host:3330/ds/sparql</code></td>
+</tr>
+<tr>
+<td>SPARQL Update</td>
+<td><code>http://host:3330/ds/update</code></td>
+</tr>
+<tr>
+<td>File upload</td>
+<td><code>http://host:3330/ds/update</code></td>
+</tr>
+<tr>
+<td>GSP read-write</td>
+<td><code>http://host:3330/ds/data</code></td>
+</tr>
+<tr>
+<td>Read-write quads</td>
+<td><code>http://host:3330/ds</code></td>
+</tr>
+</tbody>
+</table>
+<p>"GSP" = SPARQL Graph Store Protocol</p>
+<h3 id="example-2">Example 2<a class="headerlink" href="#example-2" 
title="Permanent link">&para;</a></h3>
+<p>Create a server on port 3332, that provides the default set of endpoints 
for a data
+set that is read-only over HTTP. The application can still update the 
dataset.</p>
+<div class="codehilite"><pre><span class="n">Dataset</span> <span 
class="n">ds</span> <span class="p">=</span> <span class="p">...</span> <span 
class="p">;</span>
+<span class="n">FusekiServer</span> <span class="n">server</span> <span 
class="p">=</span> <span class="n">FusekiServer</span><span 
class="p">.</span><span class="n">create</span><span class="p">()</span>
+    <span class="p">.</span><span class="n">setPort</span><span 
class="p">(</span>3332<span class="p">)</span>
+    <span class="p">.</span><span class="n">add</span><span 
class="p">(</span>&quot;<span class="o">/</span><span 
class="n">ds</span>&quot;<span class="p">,</span> <span 
class="n">ds</span><span class="p">,</span> <span class="n">true</span><span 
class="p">)</span>
+    <span class="p">.</span><span class="n">build</span><span 
class="p">()</span> <span class="p">;</span>
+<span class="n">server</span><span class="p">.</span><span 
class="n">start</span><span class="p">()</span> <span class="p">;</span>
+</pre></div>
+
+
+<table class="table">
+<thead>
+<tr>
+<th>Service</th>
+<th>Endpoint</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>SPARQL Query</td>
+<td><code>http://host:3332/ds/query</code></td>
+</tr>
+<tr>
+<td>SPARQL Query</td>
+<td><code>http://host:3332/ds/sparql</code></td>
+</tr>
+<tr>
+<td>GSP read-only</td>
+<td><code>http://host:3332/ds/data</code></td>
+</tr>
+<tr>
+<td>GET quads</td>
+<td><code>http://host:3332/ds</code></td>
+</tr>
+</tbody>
+</table>
+<h3 id="example-3">Example 3<a class="headerlink" href="#example-3" 
title="Permanent link">&para;</a></h3>
+<p>Different combinations of services and endpoint names can be given using a 
<code>DataService</code>.</p>
+<div class="codehilite"><pre><span class="n">DatasetGraph</span> <span 
class="n">dsg</span> <span class="p">=</span> <span class="p">...</span> <span 
class="p">;</span>
+<span class="n">DataService</span> <span class="n">dataService</span> <span 
class="p">=</span> <span class="n">new</span> <span 
class="n">DataService</span><span class="p">(</span><span 
class="n">dsg</span><span class="p">)</span> <span class="p">;</span>
+<span class="n">dataService</span><span class="p">.</span><span 
class="n">addEndpoint</span><span class="p">(</span><span 
class="n">OperationName</span><span class="p">.</span><span 
class="n">Quads_RW</span><span class="p">,</span> &quot;&quot;<span 
class="p">);</span>
+<span class="n">dataService</span><span class="p">.</span><span 
class="n">addEndpoint</span><span class="p">(</span><span 
class="n">OperationName</span><span class="p">.</span><span 
class="n">Query</span><span class="p">,</span> &quot;&quot;<span 
class="p">);</span>
+<span class="n">dataService</span><span class="p">.</span><span 
class="n">addEndpoint</span><span class="p">(</span><span 
class="n">OperationName</span><span class="p">.</span><span 
class="n">Update</span><span class="p">,</span> &quot;&quot;<span 
class="p">);</span>
+
+<span class="n">FusekiServer</span> <span class="n">server</span> <span 
class="p">=</span> <span class="n">FusekiServer</span><span 
class="p">.</span><span class="n">create</span><span class="p">()</span>
+   <span class="p">.</span><span class="n">setPort</span><span 
class="p">(</span>3332<span class="p">)</span>
+   <span class="p">.</span><span class="n">add</span><span 
class="p">(</span>&quot;<span class="o">/</span><span 
class="n">data</span>&quot;<span class="p">,</span> <span 
class="n">dataService</span><span class="p">)</span>
+   <span class="p">.</span><span class="n">build</span><span 
class="p">()</span> <span class="p">;</span>
+<span class="n">server</span><span class="p">.</span><span 
class="n">start</span><span class="p">()</span> <span class="p">;</span>
+</pre></div>
+
+
+<p>This setup puts all the operation on the datset URL. The 
<code>Content-type</code> and any query
+string is used to determine the operation.</p>
+<table class="table">
+<thead>
+<tr>
+<th>Service</th>
+<th>Endpoint</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>SPARQL Query</td>
+<td><code>http://host:3332/ds</code></td>
+</tr>
+<tr>
+<td>SPARQL Update</td>
+<td><code>http://host:3332/ds</code></td>
+</tr>
+<tr>
+<td>GSP read-only</td>
+<td><code>http://host:3332/ds</code></td>
+</tr>
+<tr>
+<td>GET/POST quads</td>
+<td><code>http://host:3332/ds</code></td>
+</tr>
+</tbody>
+</table>
+<h3 id="example-4">Example 4<a class="headerlink" href="#example-4" 
title="Permanent link">&para;</a></h3>
+<p>Multiple datasets can be served by one server.</p>
+<div class="codehilite"><pre><span class="n">Dataset</span> <span 
class="n">ds1</span> <span class="p">=</span> <span class="p">...</span>
+<span class="n">Dataset</span> <span class="n">ds2</span> <span 
class="p">=</span> <span class="p">...</span>
+<span class="n">FusekiServer</span> <span class="n">server</span> <span 
class="p">=</span> <span class="n">FusekiServer</span><span 
class="p">.</span><span class="n">create</span><span class="p">()</span>
+    <span class="p">.</span><span class="n">add</span><span 
class="p">(</span>&quot;<span class="o">/</span><span 
class="n">data1</span>&quot;<span class="p">,</span> <span 
class="n">ds1</span><span class="p">)</span>
+    <span class="p">.</span><span class="n">add</span><span 
class="p">(</span>&quot;<span class="o">/</span><span 
class="n">data1</span><span class="o">-</span><span 
class="n">readonly</span>&quot;<span class="p">,</span> <span 
class="n">ds1</span><span class="p">,</span> <span class="n">true</span><span 
class="p">)</span>
+    <span class="p">.</span><span class="n">add</span><span 
class="p">(</span>&quot;<span class="o">/</span><span 
class="n">data2</span>&quot;<span class="p">,</span> <span 
class="n">ds2</span><span class="p">)</span>
+    <span class="p">.</span><span class="n">build</span><span 
class="p">()</span> <span class="p">;</span>
+<span class="n">server</span><span class="p">.</span><span 
class="n">start</span><span class="p">()</span> <span class="p">;</span>
+</pre></div>
+  </div>
+</div>
+
+</div><!--/.container -->
+
+    <footer class="footer">
+      <div class="container">
+        <p>Copyright &copy; 2011&ndash;2018 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>
+
+  <!-- for marking links as active in the navbar-menu -->
+  <script type="text/javascript">
+    var link = $('a[href="' + this.location.pathname + '"]');
+    if (link != undefined)
+      link.parents('li,ul').addClass('active');
+  </script>
+
+</body>
+</html>

Modified: 
websites/staging/jena/trunk/content/documentation/fuseki2/fuseki-run.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/fuseki2/fuseki-run.html 
(original)
+++ websites/staging/jena/trunk/content/documentation/fuseki2/fuseki-run.html 
Sat Sep 29 12:46:39 2018
@@ -165,8 +165,8 @@ h2:hover > .headerlink, h3:hover > .head
 <li><a href="#fuseki-service">As a service</a> run by the operation system, 
for example, started when the machine</li>
 <li><a href="#fuseki-web-application">As a Web Application</a> inside a 
container such as Apache Tomcat or Jetty
 boots.</li>
-<li><a href="#fuseki-embedded">As an embedded SPARQL server</a></li>
-<li><a href="#fuseki-basic">As a simple development standalone server</a></li>
+<li><a href="#fuseki-main">As a configurable SPARQL server</a></li>
+<li><a href="#fuseki-server">As a deployment and development standalone 
server</a></li>
 </ul>
 <p>See "<a href="fuseki-configuration.html">Fuseki Configuration</a>" for 
information on
 how to provide datasets and configure services.</p>
@@ -212,7 +212,7 @@ directory.  It is initialised the first
 <a href="http://shiro.apache.org/";>Apache Shiro</a> security file but this is 
only
 intended as a starting point.  It restricts use of the admin UI to the
 local machine.</p>
-<h2 id="fuseki-embedded">Fuseki as an Embedded SPARQL Server<a 
class="headerlink" href="#fuseki-embedded" title="Permanent 
link">&para;</a></h2>
+<h2 id="fuseki-main">Fuseki as Configuable and Embeddable SPARQL Server<a 
class="headerlink" href="#fuseki-main" title="Permanent link">&para;</a></h2>
 <p>Fuseki can be run from inside an Java application to provide SPARQL
 services to application data. The application can continue to access and
 update the datasets served by the server.</p>
@@ -225,14 +225,14 @@ update the datasets served by the server
 </pre></div>
 
 
-<p>See the <a href="fuseki-embedded.html">full documentation</a> for details of
-configuration and working with data shared with the <a 
href="fuseki-embedded.html">embedded
-Fuseki</a> instance.</p>
-<h2 id="fuseki-basic">Simple Development Standalone Server<a 
class="headerlink" href="#fuseki-basic" title="Permanent link">&para;</a></h2>
-<p>The artifact <code>org.apache.jena:jena-fuseki-basic</code> is a packaging 
of
-the embedded server that runs from the command line.  Unlike the full
+<p>See the <a href="fuseki-main.html">full documentation</a> for details of
+configuration and working with data shared with the
+<a href="fuseki-main.html">Fuseki main server</a> instance.</p>
+<h2 id="fuseki-server">Fuseki-Server (no UI)<a class="headerlink" 
href="#fuseki-server" title="Permanent link">&para;</a></h2>
+<p>The artifact <code>org.apache.jena:jena-fuseki-server</code> is a packaging 
of
+the "main" server that runs from the command line.  Unlike the full
 Fuseki server, it is only configured from the command line and has no
-persistent work area on-disk.</p>
+persistent work area on-disk. It has full SPARQL and all storage options.</p>
   </div>
 </div>
 

Modified: websites/staging/jena/trunk/content/documentation/fuseki2/index.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/fuseki2/index.html 
(original)
+++ websites/staging/jena/trunk/content/documentation/fuseki2/index.html Sat 
Sep 29 12:46:39 2018
@@ -182,7 +182,7 @@ storage systems.</p>
 <li><a href="fuseki-run.html#fuseki-standalone-server">As a standalone 
server</a></li>
 <li><a href="fuseki-run.html#fuseki-service">As a service</a></li>
 <li><a href="fuseki-run.html#fuseki-web-application">As a web 
application</a></li>
-<li><a href="fuseki-embedded.html">As an embedded SPARQL server</a></li>
+<li><a href="fuseki-main.html">As an standalone SPARQL server</a></li>
 </ul>
 </li>
 <li>Architecture<ul>


Reply via email to