You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juneau.apache.org by ja...@apache.org on 2018/12/15 14:24:48 UTC
[juneau-website] branch asf-site updated: New article,
marshall examples, website github link.
This is an automated email from the ASF dual-hosted git repository.
jamesbognar pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/juneau-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 544de07 New article, marshall examples, website github link.
544de07 is described below
commit 544de0705cd2e9e111b58db740f326f8039ef7e1
Author: JamesBognar <ja...@apache.org>
AuthorDate: Sat Dec 15 09:24:36 2018 -0500
New article, marshall examples, website github link.
---
content/articles.html | 1 +
content/marshall.html | 30 +++++++++++++++++++-----------
content/sourceCode.html | 1 +
templates/articles.html | 1 +
templates/sourceCode.html | 1 +
5 files changed, 23 insertions(+), 11 deletions(-)
diff --git a/content/articles.html b/content/articles.html
index 5c1dec3..e110fad 100644
--- a/content/articles.html
+++ b/content/articles.html
@@ -26,6 +26,7 @@
</p>
<ul class='spaced-list'>
<li><a class='doclink' href='https://medium.com/@shalithasuranga/serializing-and-deserializing-pojos-in-to-many-formats-using-apache-juneau-6b68d97aee6c' target="_top">11-12-18 - Serializing and deserializing POJOs in to many formats using Apache Juneau</a>
+ <li><a class='doclink' href='https://medium.com/@ayeshmanthaperera/construct-html-fragments-as-java-objects-using-apache-juneau-aeb9a9c5c2ca' target="_top">12-15-18 - Construct HTML fragments Atom feeds Swagger documents using Apache Juneau</a>
</ul>
</body>
</html>
diff --git a/content/marshall.html b/content/marshall.html
index e05d88f..4c05bc0 100644
--- a/content/marshall.html
+++ b/content/marshall.html
@@ -480,8 +480,8 @@
<p class='bcode w800'>
<jc>// A simple bean</jc>
<jk>public class</jk> Person {
- <jk>public</jk> String name = <js>"John Smith"</js>;
- <jk>public int</jk> age = 21;
+ <jk>public</jk> String name = <js>"This is RDF format."</js>;
+ <jk>public</jk> String id = "rdf";
}
<jc>// Serialize a bean to JSON, XML, or HTML</jc>
@@ -493,27 +493,35 @@
// xmlns:jp="http://www.apache.org/juneaubp/"
// xmlns:j="http://www.apache.org/juneau/">
// <rdf:Description>
- // <jp:name>John Smith</jp:name>
- // <jp:age>21</jp:age>
+ // <jp:name>This is RDF format.</jp:name>
+ // <jp:id>rdf</jp:id>
// </rdf:Description>
// </rdf:RDF></jc>
- String rdfXml = RdfSerializer.<jsf>DEFAULT_XMLABBREV</jsf>.serialize(p);
+ String rdfXml = RdfXmlAbbrevSerializer.<jsf>DEFAULT</jsf>.serialize(p);
<jc>// Produces:
// @prefix jp: <http://www.apache.org/juneaubp/> .
// @prefix j: <http://www.apache.org/juneau/> .
- // [] jp:age "21" ;
- // jp:name "John Smith" .</jc>
- String rdfN3 = RdfSerializer.<jsf>DEFAULT_N3</jsf>.serialize(p);
+ // [] jp:id "rdf" ;
+ // jp:name "This is RDF format." .</jc>
+ String rdfN3 = N3Serializer.<jsf>DEFAULT</jsf>.serialize(p);
+
+ <jc>// Produces:
+ // _:A3bf53c85X3aX157cf407e2dX3aXX2dX7ffd <http://www.apache.org/juneaubp/name> "This is RDF format." .
+ // _:A3bf53c85X3aX157cf407e2dX3aXX2dX7ffd <http://www.apache.org/juneaubp/age> "rdf" .</jc>
+ String rdfNTriple = NTripleSerializer.<jsf>DEFAULT</jsf>.serialize(p);
<jc>// Produces:
- // _:A3bf53c85X3aX157cf407e2dX3aXX2dX7ffd <http://www.apache.org/juneaubp/name> "John Smith" .
- // _:A3bf53c85X3aX157cf407e2dX3aXX2dX7ffd <http://www.apache.org/juneaubp/age> "21" .</jc>
- String rdfNTriple = RdfSerializer.<jsf>DEFAULT_NTRIPLE</jsf>.serialize(p);
+ // @prefix jp: <http://www.apache.org/juneaubp/> .
+ // @prefix j: <http://www.apache.org/juneau/> .
+ // [] jp:id "rdf" ;
+ // jp:name "This is RDF format." .</jc>
+ String rdfTurtle = TurtleSerializer.<jsf>DEFAULT</jsf>.serialize(p);
</p>
<h5 class='section'>More Information:</h5>
<ul class='doctree'>
+
<li><a class='doclink' href='http://juneau.apache.org/site/apidocs-7.2.2/overview-summary.html#juneau-marshall-rdf'>juneau-marshall-rdf</a>
</ul>
</div>
diff --git a/content/sourceCode.html b/content/sourceCode.html
index 28d2b75..cb1d40f 100644
--- a/content/sourceCode.html
+++ b/content/sourceCode.html
@@ -27,6 +27,7 @@
</p>
<ul class='spaced-list'>
<li><a class='doclink' href='https://github.com/apache/juneau' target="_top">GitHub repository</a>
+ <li><a class='doclink' href='https://github.com/apache/juneau-website' target="_top">GitHub repository for this website</a>
<li><a class='doclink' href='https://gitbox.apache.org/repos/asf/juneau.git' target="_top">Apache GitBox repository</a>
<li><a class='doclink' href='https://gitbox.apache.org/repos/asf/juneau-website.git' target="_top">GitBox repository for this website</a>
<li><a class='doclink' href='https://cwiki.apache.org/confluence/display/JUNEAU/Setting+up+your+Eclipse+workspace' target="_top">Workspace setup instructions</a>
diff --git a/templates/articles.html b/templates/articles.html
index 5c1dec3..e110fad 100644
--- a/templates/articles.html
+++ b/templates/articles.html
@@ -26,6 +26,7 @@
</p>
<ul class='spaced-list'>
<li><a class='doclink' href='https://medium.com/@shalithasuranga/serializing-and-deserializing-pojos-in-to-many-formats-using-apache-juneau-6b68d97aee6c' target="_top">11-12-18 - Serializing and deserializing POJOs in to many formats using Apache Juneau</a>
+ <li><a class='doclink' href='https://medium.com/@ayeshmanthaperera/construct-html-fragments-as-java-objects-using-apache-juneau-aeb9a9c5c2ca' target="_top">12-15-18 - Construct HTML fragments Atom feeds Swagger documents using Apache Juneau</a>
</ul>
</body>
</html>
diff --git a/templates/sourceCode.html b/templates/sourceCode.html
index 28d2b75..cb1d40f 100644
--- a/templates/sourceCode.html
+++ b/templates/sourceCode.html
@@ -27,6 +27,7 @@
</p>
<ul class='spaced-list'>
<li><a class='doclink' href='https://github.com/apache/juneau' target="_top">GitHub repository</a>
+ <li><a class='doclink' href='https://github.com/apache/juneau-website' target="_top">GitHub repository for this website</a>
<li><a class='doclink' href='https://gitbox.apache.org/repos/asf/juneau.git' target="_top">Apache GitBox repository</a>
<li><a class='doclink' href='https://gitbox.apache.org/repos/asf/juneau-website.git' target="_top">GitBox repository for this website</a>
<li><a class='doclink' href='https://cwiki.apache.org/confluence/display/JUNEAU/Setting+up+your+Eclipse+workspace' target="_top">Workspace setup instructions</a>