This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/jena-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 5c29383e3 Updated site from main
(978c5808613ab89c61573be88a06d8e9027b2ded)
5c29383e3 is described below
commit 5c29383e395b3d9ee016edf80f111bb706b5c4e5
Author: jenkins <[email protected]>
AuthorDate: Tue Jan 3 10:25:12 2023 +0000
Updated site from main (978c5808613ab89c61573be88a06d8e9027b2ded)
---
content/documentation/notes/jena-repack.html | 48 +++++++++++++++-------------
content/documentation/shex/index.html | 6 ++--
content/sitemap.xml | 4 +--
3 files changed, 31 insertions(+), 27 deletions(-)
diff --git a/content/documentation/notes/jena-repack.html
b/content/documentation/notes/jena-repack.html
index cb128666a..a9edb2a87 100644
--- a/content/documentation/notes/jena-repack.html
+++ b/content/documentation/notes/jena-repack.html
@@ -194,41 +194,45 @@ documentation for process in Jena is <a
href="system-initialization.html">availa
dependencies and application code, the contents of the Jena files must
be combined and be present in the combined jar as a java resource of the
same name.</p>
+<h4 id="maven">Maven</h4>
<p>The
<a href="https://maven.apache.org/plugins/maven-shade-plugin/">maven shade
plugin</a>
is capable of doing this process in a build using a
“transformer”.</p>
<p>The Apache Jena uses the shade plugin technique itself to make the combined
jar
for Fuseki. It uses the maven shade plugin with a
<code>transformer</code>.</p>
<p>This is an extract from the POM:</p>
-<pre><code><plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <configuration>
+<div class="highlight"><pre
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code
class="language-xml" data-lang="xml"><span
style="color:#008000;font-weight:bold"><plugin></span>
+ <span
style="color:#008000;font-weight:bold"><groupId></span>org.apache.maven.plugins<span
style="color:#008000;font-weight:bold"></groupId></span>
+ <span
style="color:#008000;font-weight:bold"><artifactId></span>maven-shade-plugin<span
style="color:#008000;font-weight:bold"></artifactId></span>
+ <span style="color:#008000;font-weight:bold"><configuration></span>
...
- <transformers>
- <transformer
-
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
+ <span style="color:#008000;font-weight:bold"><transformers></span>
+ <span style="color:#008000;font-weight:bold"><transformer</span>
+ <span style="color:#b44">implementation=</span><span
style="color:#b44">"org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"</span><span
style="color:#008000;font-weight:bold">/></span>
... other transformers ...
- </transformers>
-</code></pre>
-<p>See
+ <span style="color:#008000;font-weight:bold"></transformers></span>
+ <span style="color:#008000;font-weight:bold"></configuration></span>
+<span style="color:#008000;font-weight:bold"></plugin></span>
+</code></pre></div><p>See
<a
href="https://github.com/apache/jena/blob/main/jena-fuseki2/jena-fuseki-server/pom.xml">jena-fuseki2/jena-fuseki-server/pom.xml</a>
for the complete shade plugin setup used by Fuseki.</p>
-<p>If doing manually, create a single file in your application jar the
-all lines of all the services resource files. The order does not matter</p>
-<ul>
-<li>Jena calls modules in the right order.</li>
-</ul>
-<p>For Gradle, the <a
href="https://imperceptiblethoughts.com/shadow/">shadowJar plugin</a>
+<h4 id="gradle">Gradle</h4>
+<p>For Gradle, the <a
href="https://plugins.gradle.org/plugin/com.github.johnrengelman.shadow">shadowJar
plugin</a>
has the
<a
href="https://imperceptiblethoughts.com/shadow/configuration/merging/#merging-service-descriptor-files">mergeServiceFiles</a>
operation.</p>
-<pre><code>// Merging Service Files
-shadowJar {
- mergeServiceFiles()
- . . .
-}
-</code></pre>
+<div class="highlight"><pre
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code
class="language-groovy" data-lang="groovy">plugins <span
style="color:#666">{</span>
+ <span style="color:#666">...</span>
+ id <span style="color:#b44">"com.github.johnrengelman.shadow"</span>
version <span style="color:#b44">"7.1.2"</span>
+<span style="color:#666">}</span>
+shadowJar <span style="color:#666">{</span>
+ mergeServiceFiles<span style="color:#666">()</span>
+<span style="color:#666">}</span>
+<span style="color:#666">...</span>
+</code></pre></div><h4 id="manual-assembling">Manual assembling</h4>
+<p>If doing manually, create a single file
(<code>META-INF/services/org.apache.jena.sys.JenaSubsystemLifecycle</code>) in
your application jar containing the
+lines of all the services resource files. The order does not matter.
+Jena calls modules in the right order.</p>
</div>
diff --git a/content/documentation/shex/index.html
b/content/documentation/shex/index.html
index bda53ac75..e9fdc2be0 100644
--- a/content/documentation/shex/index.html
+++ b/content/documentation/shex/index.html
@@ -197,8 +197,8 @@ scoped to the file, and not retained after the file has
been read.</p>
<p>The command <code>shex</code> introduces shex operations; it takes a
sub-command
argument.</p>
<p>To validate:</p>
-<pre>shex validate --schema SCHEMA.shex --map MAP.shexmap --data DATA.ttl</pre>
-<pre>shex v -s SCHEMA.shex -m MAp.shexmap -d data.ttl</pre>
+<pre>shex validate --schema SCHEMA.shex --map MAP.smap --data DATA.ttl</pre>
+<pre>shex v -s SCHEMA.shex -m MAP.smap -d data.ttl</pre>
<p>To parse a file:</p>
<pre>shex parse <i>FILE</i></pre>
<pre>shex p <i>FILE</i></pre>
@@ -230,7 +230,7 @@ can be given, separated by "," and format `all` outputs all
3 formats.
// Shapes map.
System.out.println("Read shapes map");
- ShexMap shapeMap = Shex.readShapeMap(SHAPES_MAP);
+ ShapeMap shapeMap = Shex.readShapeMap(SHAPES_MAP);
// ShexReport
System.out.println("Validate");
diff --git a/content/sitemap.xml b/content/sitemap.xml
index 46629a846..9535c8d13 100644
--- a/content/sitemap.xml
+++ b/content/sitemap.xml
@@ -104,7 +104,7 @@
<url>
<loc>https://jena.apache.org/documentation/shex/</loc>
- <lastmod>2021-11-15T19:40:46+00:00</lastmod>
+ <lastmod>2022-10-28T12:50:41+02:00</lastmod>
</url>
<url>
@@ -279,7 +279,7 @@
<url>
<loc>https://jena.apache.org/documentation/notes/jena-repack.html</loc>
- <lastmod>2021-02-19T15:39:55+13:00</lastmod>
+ <lastmod>2022-09-28T15:55:54+03:00</lastmod>
</url>
<url>