commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1006438 [15/23] - in /websites/production/commons/content/proper/commons-rdf: ./ apidocs/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apache/commons/rdf/api/class-use/ apidocs/org/apache/commons/rdf/experimental/ apidocs/org/apache/com...
Date Thu, 09 Feb 2017 01:59:10 GMT
Added: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/integrationtests/JSONLDParsingTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/integrationtests/JSONLDParsingTest.html (added)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/integrationtests/JSONLDParsingTest.html Thu Feb  9 01:59:06 2017
@@ -0,0 +1,177 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>JSONLDParsingTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/commons/rdf/integrationtests/JSONLDParsingTest.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements.  See the NOTICE file</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership.  The ASF licenses this file</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_javadoccomment"> *     <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.rdf.integrationtests;
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertTrue;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> java.io.IOException;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> java.io.InputStream;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> java.net.URL;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.Graph;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.IRI;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.Literal;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.RDF;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.jena.JenaDataset;
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.jena.JenaRDF;
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.jsonldjava.JsonLdGraph;
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.jsonldjava.JsonLdRDF;
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.rdf4j.RDF4J;
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.rdf4j.RDF4JGraph;
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.simple.SimpleRDF;
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>  <strong class="jxr_keyword">import</strong> org.apache.jena.riot.RDFDataMgr;
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>  <strong class="jxr_keyword">import</strong> org.eclipse.rdf4j.model.Model;
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>  <strong class="jxr_keyword">import</strong> org.eclipse.rdf4j.rio.RDFFormat;
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>  <strong class="jxr_keyword">import</strong> org.eclipse.rdf4j.rio.Rio;
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>  <strong class="jxr_keyword">import</strong> org.junit.Before;
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>  
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>  <strong class="jxr_keyword">import</strong> com.fasterxml.jackson.core.JsonParseException;
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>  <strong class="jxr_keyword">import</strong> com.github.jsonldjava.core.JsonLdError;
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>  <strong class="jxr_keyword">import</strong> com.github.jsonldjava.core.JsonLdOptions;
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>  <strong class="jxr_keyword">import</strong> com.github.jsonldjava.core.JsonLdProcessor;
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>  <strong class="jxr_keyword">import</strong> com.github.jsonldjava.core.RDFDataset;
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>  <strong class="jxr_keyword">import</strong> com.github.jsonldjava.utils.JsonUtils;
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>  
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>  <em class="jxr_javadoccomment"> * COMMONSRDF-57 etc: For upgrades, ensure JSONLD-Java parses well in all</em>
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>  <em class="jxr_javadoccomment"> * implementations even if they might have slightly incompatible versions of</em>
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>  <em class="jxr_javadoccomment"> * their dependencies.</em>
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>  <em class="jxr_javadoccomment"> * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>  <em class="jxr_javadoccomment"> * The &lt;code&gt;*Embedded&lt;/code&gt; tests parse &lt;code&gt;alice-embedded.jsonld&lt;/code&gt;</em>
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>  <em class="jxr_javadoccomment"> * from the test classpath through Jena, RDF4J and JSONLD-Java and verifies it</em>
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>  <em class="jxr_javadoccomment"> * contains the expected triples using {@link #checkGraph(Graph)}. This ensures</em>
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>  <em class="jxr_javadoccomment"> * that the versions of JSONLD-Java and Jackson are compatible with Jena and</em>
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>  <em class="jxr_javadoccomment"> * RDF4J.</em>
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>  <em class="jxr_javadoccomment"> * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>  <em class="jxr_javadoccomment"> * The &lt;code&gt;*Cached&lt;/code&gt; tests parse &lt;code&gt;alice-cached.jsonld&lt;/code&gt;, which</em>
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>  <em class="jxr_javadoccomment"> * references an external &lt;code&gt;@context&lt;/code&gt; of <a href="http://example.com/context" target="alexandria_uri">http://example.com/context</a> -</em>
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>  <em class="jxr_javadoccomment"> * but using the &lt;a href=</em>
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>  <em class="jxr_javadoccomment"> * "https://github.com/jsonld-java/jsonld-java#loading-contexts-from-classpathjar"&gt;jarcache.json&lt;/a&gt;</em>
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>  <em class="jxr_javadoccomment"> * mechanism of JSONLD-Java, this context will be loaded from</em>
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>  <em class="jxr_javadoccomment"> * &lt;code&gt;contexts/example.jsonld&lt;/code&gt; on the test classpath instead. This</em>
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>  <em class="jxr_javadoccomment"> * ensures that the versions of HTTPClient is compatible with JSONLD-Java</em>
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>  <em class="jxr_javadoccomment"> * (however it does not check that it is compatible with Jena and</em>
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>  <em class="jxr_javadoccomment"> * RDF4J's external fetching of RDF documents).</em>
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>  <em class="jxr_javadoccomment"> * </em>
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/rdf/integrationtests/JSONLDParsingTest.html">JSONLDParsingTest</a> {
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>  
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>      <strong class="jxr_keyword">static</strong> RDF rdf = <strong class="jxr_keyword">new</strong> SimpleRDF();
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>      <strong class="jxr_keyword">static</strong> IRI alice = rdf.createIRI(<span class="jxr_string">"http://example.com/Alice"</span>);
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>      <strong class="jxr_keyword">static</strong> IRI name = rdf.createIRI(<span class="jxr_string">"http://schema.org/name"</span>);
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>      <strong class="jxr_keyword">static</strong> IRI type = rdf.createIRI(<span class="jxr_string">"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"</span>);
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>      <strong class="jxr_keyword">static</strong> IRI person = rdf.createIRI(<span class="jxr_string">"http://schema.org/Person"</span>);
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>      <strong class="jxr_keyword">static</strong> Literal aliceWLand = rdf.createLiteral(<span class="jxr_string">"Alice W. Land"</span>);
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>  
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>      URL aliceCached = getClass().getResource(<span class="jxr_string">"/alice-cached.jsonld"</span>);
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>      URL aliceEmbedded = getClass().getResource(<span class="jxr_string">"/alice-embedded.jsonld"</span>);
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>  
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>  <em class="jxr_javadoccomment">     * Pre-test that src/test/resources files are on the classpath</em>
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>  <em class="jxr_javadoccomment">     * </em>
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>      @Before
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> checkTestResources() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>          aliceCached.openStream().close();
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>          aliceEmbedded.openStream().close();
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>          <em class="jxr_comment">// Used by JSONLD-Java to avoid external dependencies. See</em>
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>          <em class="jxr_comment">// https://github.com/jsonld-java/jsonld-java#loading-contexts-from-classpathjar</em>
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>          getClass().getResourceAsStream(<span class="jxr_string">"/jarcache.json"</span>).close();
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>          getClass().getResourceAsStream(<span class="jxr_string">"/contexts/example.jsonld"</span>).close();
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>          <em class="jxr_comment">// (We'll use these to ensure our HTTPClient dependency works)</em>
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>      }
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>  
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> checkGraph(Graph g) {
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>         assertTrue(g.contains(alice, name, aliceWLand));
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>         assertTrue(g.contains(alice, type, person));
+<a class="jxr_linenumber" name="L103" href="#L103">103</a>     }
+<a class="jxr_linenumber" name="L104" href="#L104">104</a> 
+<a class="jxr_linenumber" name="L105" href="#L105">105</a>     @Test
+<a class="jxr_linenumber" name="L106" href="#L106">106</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> jenaParseEmbedded() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L107" href="#L107">107</a>         jenaParse(aliceEmbedded);
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>     }
+<a class="jxr_linenumber" name="L109" href="#L109">109</a> 
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>     @Test
+<a class="jxr_linenumber" name="L111" href="#L111">111</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> jenaParseCached() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>         <em class="jxr_comment">// Check if HTTPClient cache is used from </em>
+<a class="jxr_linenumber" name="L113" href="#L113">113</a>         <em class="jxr_comment">// jarcache.json</em>
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>         jenaParse(aliceCached);
+<a class="jxr_linenumber" name="L115" href="#L115">115</a>     }
+<a class="jxr_linenumber" name="L116" href="#L116">116</a> 
+<a class="jxr_linenumber" name="L117" href="#L117">117</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> jenaParse(URL url) {
+<a class="jxr_linenumber" name="L118" href="#L118">118</a>         JenaDataset dataset = <strong class="jxr_keyword">new</strong> JenaRDF().createDataset();
+<a class="jxr_linenumber" name="L119" href="#L119">119</a>         RDFDataMgr.read(dataset.asJenaDatasetGraph(), url.toExternalForm());
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>         checkGraph(dataset.getGraph());
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>     }
+<a class="jxr_linenumber" name="L122" href="#L122">122</a> 
+<a class="jxr_linenumber" name="L123" href="#L123">123</a>     @Test
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> rdf4jParseEmbedded() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>         rdf4jParse(aliceEmbedded);
+<a class="jxr_linenumber" name="L126" href="#L126">126</a>     }
+<a class="jxr_linenumber" name="L127" href="#L127">127</a> 
+<a class="jxr_linenumber" name="L128" href="#L128">128</a>     @Test
+<a class="jxr_linenumber" name="L129" href="#L129">129</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> rdf4jParseCached() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L130" href="#L130">130</a>         <em class="jxr_comment">// Check if HTTPClient cache is used from </em>
+<a class="jxr_linenumber" name="L131" href="#L131">131</a>         <em class="jxr_comment">// jarcache.json</em>
+<a class="jxr_linenumber" name="L132" href="#L132">132</a>         rdf4jParse(aliceCached);
+<a class="jxr_linenumber" name="L133" href="#L133">133</a>     }
+<a class="jxr_linenumber" name="L134" href="#L134">134</a> 
+<a class="jxr_linenumber" name="L135" href="#L135">135</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> rdf4jParse(URL url) <strong class="jxr_keyword">throws</strong> IOException {
+<a class="jxr_linenumber" name="L136" href="#L136">136</a>         Model model;
+<a class="jxr_linenumber" name="L137" href="#L137">137</a>         <strong class="jxr_keyword">try</strong> (InputStream in = url.openStream()) {
+<a class="jxr_linenumber" name="L138" href="#L138">138</a>             model = Rio.parse(in, url.toExternalForm(), RDFFormat.JSONLD);
+<a class="jxr_linenumber" name="L139" href="#L139">139</a>         }
+<a class="jxr_linenumber" name="L140" href="#L140">140</a>         RDF4JGraph graph = <strong class="jxr_keyword">new</strong> RDF4J().asGraph(model);
+<a class="jxr_linenumber" name="L141" href="#L141">141</a>         checkGraph(graph);
+<a class="jxr_linenumber" name="L142" href="#L142">142</a>     }
+<a class="jxr_linenumber" name="L143" href="#L143">143</a> 
+<a class="jxr_linenumber" name="L144" href="#L144">144</a>     @Test
+<a class="jxr_linenumber" name="L145" href="#L145">145</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> jsonldParseEmbedded() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L146" href="#L146">146</a>         jsonldParse(aliceEmbedded);
+<a class="jxr_linenumber" name="L147" href="#L147">147</a>     }
+<a class="jxr_linenumber" name="L148" href="#L148">148</a> 
+<a class="jxr_linenumber" name="L149" href="#L149">149</a>     @Test
+<a class="jxr_linenumber" name="L150" href="#L150">150</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> jsonldParseCached() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L151" href="#L151">151</a>         <em class="jxr_comment">// Check if HTTPClient cache is used from </em>
+<a class="jxr_linenumber" name="L152" href="#L152">152</a>         <em class="jxr_comment">// jarcache.json</em>
+<a class="jxr_linenumber" name="L153" href="#L153">153</a>         jsonldParse(aliceCached);
+<a class="jxr_linenumber" name="L154" href="#L154">154</a>     }
+<a class="jxr_linenumber" name="L155" href="#L155">155</a> 
+<a class="jxr_linenumber" name="L156" href="#L156">156</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> jsonldParse(URL url) <strong class="jxr_keyword">throws</strong> JsonParseException, IOException, JsonLdError {
+<a class="jxr_linenumber" name="L157" href="#L157">157</a>         Object aliceJson = JsonUtils.fromURL(url, JsonUtils.getDefaultHttpClient());
+<a class="jxr_linenumber" name="L158" href="#L158">158</a>         JsonLdOptions options = <strong class="jxr_keyword">new</strong> JsonLdOptions();
+<a class="jxr_linenumber" name="L159" href="#L159">159</a>         options.setBase(url.toExternalForm());
+<a class="jxr_linenumber" name="L160" href="#L160">160</a>         RDFDataset ds = (RDFDataset) JsonLdProcessor.toRDF(aliceJson);
+<a class="jxr_linenumber" name="L161" href="#L161">161</a>         JsonLdGraph graph = <strong class="jxr_keyword">new</strong> JsonLdRDF().asGraph(ds);
+<a class="jxr_linenumber" name="L162" href="#L162">162</a>         checkGraph(graph);
+<a class="jxr_linenumber" name="L163" href="#L163">163</a>     }
+<a class="jxr_linenumber" name="L164" href="#L164">164</a> }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

Modified: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/integrationtests/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/integrationtests/package-frame.html (original)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/integrationtests/package-frame.html Thu Feb  9 01:59:06 2017
@@ -18,6 +18,9 @@
       		          	<li>
             	<a href="AllToAllTest.html" target="classFrame">AllToAllTest</a>
           	</li>
+          	          	<li>
+            	<a href="JSONLDParsingTest.html" target="classFrame">JSONLDParsingTest</a>
+          	</li>
           	      	</ul>
 
 	</body>

Modified: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/integrationtests/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/integrationtests/package-summary.html (original)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/integrationtests/package-summary.html Thu Feb  9 01:59:06 2017
@@ -40,6 +40,11 @@
                 		<a href="AllToAllTest.html" target="classFrame">AllToAllTest</a>
               		</td>
             	</tr>
+				            	<tr>
+              		<td>
+                		<a href="JSONLDParsingTest.html" target="classFrame">JSONLDParsingTest</a>
+              		</td>
+            	</tr>
 				        	</tbody>
       	</table>
 		
@@ -63,7 +68,7 @@
       	</div>
 				<hr />
 		<div id="footer">
-			Copyright &#169; 2015&#x2013;2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.
+			Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.
 		</div>
 	</body>
 </html>
\ No newline at end of file

Modified: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/DatasetJenaTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/DatasetJenaTest.html (original)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/DatasetJenaTest.html Thu Feb  9 01:59:06 2017
@@ -39,6 +39,6 @@
 <a class="jxr_linenumber" name="L31" href="#L31">31</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2015&#x2013;2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>
\ No newline at end of file

Added: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/DefaultGraphInQuadTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/DefaultGraphInQuadTest.html (added)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/DefaultGraphInQuadTest.html Thu Feb  9 01:59:06 2017
@@ -0,0 +1,149 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>DefaultGraphInQuadTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/commons/rdf/jena/DefaultGraphInQuadTest.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements.  See the NOTICE file</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership.  The ASF licenses this file</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_javadoccomment"> *     <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.rdf.jena;
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertEquals;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertFalse;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertTrue;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.IRI;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.simple.SimpleRDF;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong> org.apache.jena.graph.Node;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">import</strong> org.apache.jena.graph.NodeFactory;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <strong class="jxr_keyword">import</strong> org.apache.jena.sparql.core.Quad;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  <em class="jxr_javadoccomment"> * COMMONSRDF-55: Handling of </em>
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  <em class="jxr_javadoccomment"> * Jena's default graph IRI urn:x-arq:DefaultGraph</em>
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/rdf/jena/DefaultGraphInQuadTest.html">DefaultGraphInQuadTest</a> {
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>      
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>      JenaRDF rdf = <strong class="jxr_keyword">new</strong> JenaRDF();
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>      SimpleRDF simpleRDF = <strong class="jxr_keyword">new</strong> SimpleRDF();
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>      IRI example = rdf.createIRI(<span class="jxr_string">"http://example.com/"</span>);
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>      Node exampleJena = NodeFactory.createURI(<span class="jxr_string">"http://example.com/"</span>);
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>      
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>      @Test
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> createFromNull() <strong class="jxr_keyword">throws</strong> Exception {        
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          JenaQuad q = rdf.createQuad(<strong class="jxr_keyword">null</strong>, example, example, example);
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          assertFalse(q.getGraphName().isPresent());
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          assertTrue(q.asJenaQuad().isDefaultGraph());
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          assertEquals(Quad.defaultGraphIRI,  q.asJenaQuad().getGraph());
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>      }
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>  
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>      @Test
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> createFromDefaultGraphIRI() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          JenaIRI defaultGraph = (JenaIRI) rdf.asRDFTerm(Quad.defaultGraphIRI);        
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>          JenaQuad q = rdf.createQuad(defaultGraph, example, example, example);
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>          <em class="jxr_comment">// NOTE: JenaRDF specially recognize this JenaIRI constant, </em>
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          <em class="jxr_comment">// even if this breaks the SHOULD of RDF.createQuad()</em>
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>          assertTrue(q.asJenaQuad().isDefaultGraph());
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>          assertEquals(Quad.defaultGraphIRI,  q.asJenaQuad().getGraph());
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>          assertFalse(q.getGraphName().isPresent());
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>          <em class="jxr_comment">// thus we can't require </em>
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>          <em class="jxr_comment">//assertEquals(defaultGraph, q.getGraphName().get());</em>
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>      }
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>  
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>      @Test
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> createFromForeignDefaultGraph() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          <em class="jxr_comment">// What if &lt;urn:x-arq:DefaultGraph&gt; appear in a non-Jena IRI?</em>
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>          IRI foreignDefaultGraph = simpleRDF.createIRI(Quad.defaultGraphIRI.getURI());
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>          JenaQuad q = rdf.createQuad(foreignDefaultGraph, example, example, example);
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>          <em class="jxr_comment">// As the IRI was NOT a JenaIRI we preserve it as-is,</em>
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>          <em class="jxr_comment">// rather than replacing it with Optional.empty()        </em>
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>          assertTrue(q.asJenaQuad().isDefaultGraph());
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>          assertTrue(q.getGraphName().isPresent()); <em class="jxr_comment">// INCONSISTENT with above</em>
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>          assertEquals(Quad.defaultGraphIRI,  q.asJenaQuad().getGraph());
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>          assertEquals(foreignDefaultGraph, q.getGraphName().get());
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>          <em class="jxr_comment">// Note that adding such a quad to a Dataset would still "convert" it to</em>
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>          <em class="jxr_comment">// Optional.empty() </em>
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>      }
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>      
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>  
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>      @Test
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> createFromDefaultGraphNodeGeneratedIRINode() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>          <em class="jxr_comment">// What if &lt;urn:x-arq:DefaultGraphNode&gt; appear as an IRI instance?</em>
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>          IRI foreignDefaultGraph = rdf.createIRI(Quad.defaultGraphNodeGenerated.getURI());
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>          JenaQuad q = rdf.createQuad(foreignDefaultGraph, example, example, example);
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>          <em class="jxr_comment">// NOTE: JenaRDF specially recognize this JenaIRI constant, </em>
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>          <em class="jxr_comment">// even if this breaks the SHOULD of RDF.createQuad()</em>
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>          assertTrue(q.asJenaQuad().isDefaultGraph());
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>          assertFalse(q.getGraphName().isPresent()); <em class="jxr_comment">// CONSISTENT with above </em>
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>          <em class="jxr_comment">// Unfortunately Quad.defaultGraphNodeGenerated is not preserved:</em>
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>          <em class="jxr_comment">//assertEquals(Quad.defaultGraphNodeGenerated, q.asJenaQuad().getGraph());</em>
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>      }
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>  
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>      @Test
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> createFromDefaultGraphNodeGeneratedIRIString() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>          <em class="jxr_comment">// What if &lt;urn:x-arq:DefaultGraphNode&gt; appear in a non-Jena IRI?</em>
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>          IRI foreignDefaultGraph = (IRI) simpleRDF.createIRI(Quad.defaultGraphNodeGenerated.getURI());
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>          JenaQuad q = rdf.createQuad(foreignDefaultGraph, example, example, example);
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>          <em class="jxr_comment">// We'll expect JenaRDF to preserve the graph IRI as-is        </em>
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>          assertTrue(q.asJenaQuad().isDefaultGraph()); 
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>          assertTrue(q.getGraphName().isPresent()); <em class="jxr_comment">// INCONSISTENT WITH above</em>
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>         <em class="jxr_comment">// Now Quad.defaultGraphNodeGenerated is preserved at both ends</em>
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>         assertEquals(Quad.defaultGraphNodeGenerated,  q.asJenaQuad().getGraph());
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>         assertEquals(foreignDefaultGraph, q.getGraphName().get());
+<a class="jxr_linenumber" name="L103" href="#L103">103</a>     }
+<a class="jxr_linenumber" name="L104" href="#L104">104</a> 
+<a class="jxr_linenumber" name="L105" href="#L105">105</a>     
+<a class="jxr_linenumber" name="L106" href="#L106">106</a>     @Test
+<a class="jxr_linenumber" name="L107" href="#L107">107</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> defaultGraphIRI() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>         Quad jenaQuad = Quad.create(Quad.defaultGraphIRI, exampleJena, exampleJena, exampleJena);
+<a class="jxr_linenumber" name="L109" href="#L109">109</a>         JenaQuad q = rdf.asQuad(jenaQuad);        
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>         assertFalse(q.getGraphName().isPresent());
+<a class="jxr_linenumber" name="L111" href="#L111">111</a>         assertTrue(q.asJenaQuad().isDefaultGraph());
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>     }
+<a class="jxr_linenumber" name="L113" href="#L113">113</a> 
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>     @Test
+<a class="jxr_linenumber" name="L115" href="#L115">115</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> defaultGraphNodeGenerated() <strong class="jxr_keyword">throws</strong> Exception {        
+<a class="jxr_linenumber" name="L116" href="#L116">116</a>         <em class="jxr_comment">// &lt;urn:x-arq:DefaultGraphNode&gt; might appear in parser output</em>
+<a class="jxr_linenumber" name="L117" href="#L117">117</a>         Quad jenaQuad = Quad.create(Quad.defaultGraphNodeGenerated, exampleJena, exampleJena, exampleJena);
+<a class="jxr_linenumber" name="L118" href="#L118">118</a>         JenaQuad q = rdf.asQuad(jenaQuad);        
+<a class="jxr_linenumber" name="L119" href="#L119">119</a>         assertFalse(q.getGraphName().isPresent());
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>         assertTrue(q.asJenaQuad().isDefaultGraph());
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>         <em class="jxr_comment">// Preserves &lt;urn:x-arq:DefaultGraphNode&gt;</em>
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>         assertEquals(Quad.defaultGraphNodeGenerated, q.asJenaQuad().getGraph());
+<a class="jxr_linenumber" name="L123" href="#L123">123</a>     }
+<a class="jxr_linenumber" name="L124" href="#L124">124</a> 
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>     @Test
+<a class="jxr_linenumber" name="L126" href="#L126">126</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> unionGraph() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L127" href="#L127">127</a>         <em class="jxr_comment">// unionGraph shouldn't really appear as a quad except</em>
+<a class="jxr_linenumber" name="L128" href="#L128">128</a>         <em class="jxr_comment">// in a pattern</em>
+<a class="jxr_linenumber" name="L129" href="#L129">129</a>         Quad jenaQuad = Quad.create(Quad.unionGraph, exampleJena, exampleJena, exampleJena);
+<a class="jxr_linenumber" name="L130" href="#L130">130</a>         JenaQuad q = rdf.asQuad(jenaQuad);
+<a class="jxr_linenumber" name="L131" href="#L131">131</a>         <em class="jxr_comment">// But at least we can agree it is NOT (necessarily) in the</em>
+<a class="jxr_linenumber" name="L132" href="#L132">132</a>         <em class="jxr_comment">// default graph</em>
+<a class="jxr_linenumber" name="L133" href="#L133">133</a>         assertFalse(q.asJenaQuad().isDefaultGraph());
+<a class="jxr_linenumber" name="L134" href="#L134">134</a>         assertTrue(q.getGraphName().isPresent());
+<a class="jxr_linenumber" name="L135" href="#L135">135</a>     }
+<a class="jxr_linenumber" name="L136" href="#L136">136</a> }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/GeneralizedRDFQuadTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/GeneralizedRDFQuadTest.html (added)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/GeneralizedRDFQuadTest.html Thu Feb  9 01:59:06 2017
@@ -0,0 +1,140 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>GeneralizedRDFQuadTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/commons/rdf/jena/GeneralizedRDFQuadTest.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements.  See the NOTICE file</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership.  The ASF licenses this file</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_javadoccomment"> *     <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.rdf.jena;
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.*;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.BlankNode;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.RDFTerm;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.jena.graph.Node;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.jena.graph.NodeFactory;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong> org.apache.jena.sparql.core.Quad;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/rdf/jena/GeneralizedRDFQuadTest.html">GeneralizedRDFQuadTest</a> {
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>      <strong class="jxr_keyword">private</strong> JenaRDF jena = <strong class="jxr_keyword">new</strong> JenaRDF();
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>      
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      @Test
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> bnodeProperty() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>          BlankNode b1 = jena.createBlankNode(<span class="jxr_string">"b1"</span>);
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>          JenaIRI ex1 = jena.createIRI(<span class="jxr_string">"http://example.com/ex1"</span>);
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>          JenaIRI ex2 = jena.createIRI(<span class="jxr_string">"http://example.com/ex2"</span>);
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          JenaIRI ex3 = jena.createIRI(<span class="jxr_string">"http://example.com/ex3"</span>);
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>          
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          JenaGeneralizedQuadLike q = jena.createGeneralizedQuad(ex1, b1, ex2, ex3);
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>          assertEquals(ex1, q.getSubject());
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>          assertEquals(ex2, q.getObject());
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>          assertEquals(b1, q.getPredicate()); <em class="jxr_comment">// it's a bnode!</em>
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          assertEquals(ex3, q.getGraphName().get());
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          assertTrue(q.asJenaQuad().getPredicate().isBlank());
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>      }
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>  
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>      @Test
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> literalPredicate() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>          JenaIRI ex1 = jena.createIRI(<span class="jxr_string">"http://example.com/ex1"</span>);
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>          JenaIRI ex2 = jena.createIRI(<span class="jxr_string">"http://example.com/ex2"</span>);
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          JenaIRI ex3 = jena.createIRI(<span class="jxr_string">"http://example.com/ex3"</span>);
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>          JenaLiteral lit = jena.createLiteral(<span class="jxr_string">"Hello"</span>);
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>          
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          JenaGeneralizedQuadLike q = jena.createGeneralizedQuad(ex1, lit, ex2, ex3);
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>          assertEquals(ex1, q.getSubject());
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>          assertEquals(ex2, q.getObject());
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>          assertEquals(lit, q.getPredicate()); <em class="jxr_comment">// it's a literal!</em>
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>          assertEquals(ex3, q.getGraphName().get());
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>          assertTrue(q.asJenaQuad().getPredicate().isLiteral());
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>      }
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>  
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>  
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>      @Test
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> literalSubject() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>          JenaIRI ex1 = jena.createIRI(<span class="jxr_string">"http://example.com/ex1"</span>);
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>          JenaIRI ex2 = jena.createIRI(<span class="jxr_string">"http://example.com/ex2"</span>);
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>          JenaIRI ex3 = jena.createIRI(<span class="jxr_string">"http://example.com/ex3"</span>);
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>          JenaLiteral lit = jena.createLiteral(<span class="jxr_string">"Hello"</span>);
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>          
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>          JenaGeneralizedQuadLike q = jena.createGeneralizedQuad(lit, ex1, ex2, ex3);
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>          assertEquals(lit, q.getSubject()); <em class="jxr_comment">// it's a literal!</em>
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>          assertEquals(ex1, q.getPredicate());
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>          assertEquals(ex2, q.getObject());
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>          assertEquals(ex3, q.getGraphName().get());
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>          assertTrue(q.asJenaQuad().getSubject().isLiteral());
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>      }
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>      
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>      @Test
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> literalSubjectDefaultGraphGen() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>          JenaIRI ex1 = jena.createIRI(<span class="jxr_string">"http://example.com/ex1"</span>);
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>          JenaIRI ex2 = jena.createIRI(<span class="jxr_string">"http://example.com/ex2"</span>);
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>          <em class="jxr_comment">// No need to cast to JenaIRI</em>
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>          JenaRDFTerm defG = jena.asRDFTerm(Quad.defaultGraphNodeGenerated); 
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>          JenaLiteral lit = jena.createLiteral(<span class="jxr_string">"Hello"</span>);
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>          
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>          JenaGeneralizedQuadLike q = jena.createGeneralizedQuad(lit, ex1, ex2, defG);
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>          assertEquals(lit, q.getSubject()); <em class="jxr_comment">// it's a literal!</em>
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>          assertEquals(ex1, q.getPredicate());
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>          assertEquals(ex2, q.getObject());
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>          assertTrue(q.asJenaQuad().getSubject().isLiteral());
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>          assertFalse(q.getGraphName().isPresent());
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>          assertTrue(q.asJenaQuad().isDefaultGraph());
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>      }
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>  
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>      @Test
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> asGeneralizedQuad() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>          Node s = NodeFactory.createLiteral(<span class="jxr_string">"Hello"</span>);
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>          Node p = NodeFactory.createBlankNode();
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>         Node o = NodeFactory.createURI(<span class="jxr_string">"http://example.com/ex"</span>);
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>         Node g = Quad.defaultGraphIRI;
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>         Quad jq = Quad.create(g, s, p, o);
+<a class="jxr_linenumber" name="L103" href="#L103">103</a>         JenaQuadLike&lt;RDFTerm&gt; q = jena.asGeneralizedQuad(jq);
+<a class="jxr_linenumber" name="L104" href="#L104">104</a>         assertEquals(jena.createLiteral(<span class="jxr_string">"Hello"</span>), q.getSubject());
+<a class="jxr_linenumber" name="L105" href="#L105">105</a>         assertEquals(jena.asRDFTerm(p), q.getPredicate());
+<a class="jxr_linenumber" name="L106" href="#L106">106</a>         assertEquals(jena.createIRI(<span class="jxr_string">"http://example.com/ex"</span>), q.getObject());
+<a class="jxr_linenumber" name="L107" href="#L107">107</a>         assertFalse(q.getGraphName().isPresent());
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>     }
+<a class="jxr_linenumber" name="L109" href="#L109">109</a>     
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>     @Test
+<a class="jxr_linenumber" name="L111" href="#L111">111</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> literalGraph() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>         JenaIRI ex1 = jena.createIRI(<span class="jxr_string">"http://example.com/ex1"</span>);
+<a class="jxr_linenumber" name="L113" href="#L113">113</a>         JenaIRI ex2 = jena.createIRI(<span class="jxr_string">"http://example.com/ex2"</span>);
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>         JenaIRI ex3 = jena.createIRI(<span class="jxr_string">"http://example.com/ex3"</span>);
+<a class="jxr_linenumber" name="L115" href="#L115">115</a>         JenaLiteral lit = jena.createLiteral(<span class="jxr_string">"Hello"</span>);
+<a class="jxr_linenumber" name="L116" href="#L116">116</a>         
+<a class="jxr_linenumber" name="L117" href="#L117">117</a>         JenaGeneralizedQuadLike q = jena.createGeneralizedQuad(ex1, ex2, ex3, lit);
+<a class="jxr_linenumber" name="L118" href="#L118">118</a>         assertEquals(ex1, q.getSubject()); 
+<a class="jxr_linenumber" name="L119" href="#L119">119</a>         assertEquals(ex2, q.getPredicate());
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>         assertEquals(ex3, q.getObject());
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>         assertEquals(lit, q.getGraphName().get()); <em class="jxr_comment">// it's a literal!</em>
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>         assertTrue(q.asJenaQuad().getGraph().isLiteral());
+<a class="jxr_linenumber" name="L123" href="#L123">123</a>     }
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>     
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>     
+<a class="jxr_linenumber" name="L126" href="#L126">126</a>     
+<a class="jxr_linenumber" name="L127" href="#L127">127</a> }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/GeneralizedRDFTripleTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/GeneralizedRDFTripleTest.html (added)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/GeneralizedRDFTripleTest.html Thu Feb  9 01:59:06 2017
@@ -0,0 +1,98 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>GeneralizedRDFTripleTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/commons/rdf/jena/GeneralizedRDFTripleTest.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements.  See the NOTICE file</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership.  The ASF licenses this file</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_javadoccomment"> *     <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.rdf.jena;
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertEquals;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertTrue;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.BlankNode;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.jena.graph.Node;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.jena.graph.NodeFactory;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong> org.apache.jena.graph.Triple;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/rdf/jena/GeneralizedRDFTripleTest.html">GeneralizedRDFTripleTest</a> {
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>      <strong class="jxr_keyword">private</strong> JenaRDF jena = <strong class="jxr_keyword">new</strong> JenaRDF();
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>      
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      @Test
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> bnodeProperty() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>          BlankNode b1 = jena.createBlankNode(<span class="jxr_string">"b1"</span>);
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>          JenaIRI ex1 = jena.createIRI(<span class="jxr_string">"http://example.com/ex1"</span>);
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>          JenaIRI ex2 = jena.createIRI(<span class="jxr_string">"http://example.com/ex2"</span>);
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>          JenaGeneralizedTripleLike t = jena.createGeneralizedTriple(ex1, b1, ex2);
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          assertEquals(ex1, t.getSubject());
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>          assertEquals(ex2, t.getObject());
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>          assertEquals(b1, t.getPredicate()); <em class="jxr_comment">// it's a bnode!</em>
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>          assertTrue(t.asJenaTriple().getPredicate().isBlank());
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>      }
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>  
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>      @Test
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> literalPredicate() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          JenaIRI ex1 = jena.createIRI(<span class="jxr_string">"http://example.com/ex1"</span>);
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>          JenaIRI ex2 = jena.createIRI(<span class="jxr_string">"http://example.com/ex2"</span>);
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>          JenaLiteral lit = jena.createLiteral(<span class="jxr_string">"Hello"</span>);
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>          
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          JenaGeneralizedTripleLike t = jena.createGeneralizedTriple(ex1, lit, ex2);
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>          assertEquals(ex1, t.getSubject());
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>          assertEquals(ex2, t.getObject());
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          assertEquals(lit, t.getPredicate()); <em class="jxr_comment">// it's a literal!</em>
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>          assertTrue(t.asJenaTriple().getPredicate().isLiteral());
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>      }
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>  
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>  
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>      @Test
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> literalSubject() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>          JenaIRI ex1 = jena.createIRI(<span class="jxr_string">"http://example.com/ex1"</span>);
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>          JenaIRI ex2 = jena.createIRI(<span class="jxr_string">"http://example.com/ex2"</span>);
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>          JenaLiteral lit = jena.createLiteral(<span class="jxr_string">"Hello"</span>);
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>          JenaGeneralizedTripleLike t = jena.createGeneralizedTriple(lit, ex1, ex2);
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>          assertEquals(lit, t.getSubject()); <em class="jxr_comment">// it's a literal!</em>
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>          assertEquals(ex1, t.getPredicate());
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>          assertEquals(ex2, t.getObject());
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>          assertTrue(t.asJenaTriple().getSubject().isLiteral());
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>      }
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>      
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>      @Test
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> asGeneralizedTriple() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>          Node s = NodeFactory.createLiteral(<span class="jxr_string">"Hello"</span>);
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>          Node p = NodeFactory.createBlankNode();
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>          Node o = NodeFactory.createURI(<span class="jxr_string">"http://example.com/ex"</span>);
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>          Triple jt = Triple.create(s, p, o);
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>          JenaTripleLike t = jena.asGeneralizedTriple(jt);
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>          assertEquals(jena.createLiteral(<span class="jxr_string">"Hello"</span>), t.getSubject());
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>          assertEquals(jena.asRDFTerm(p), t.getPredicate());
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>          assertEquals(jena.createIRI(<span class="jxr_string">"http://example.com/ex"</span>), t.getObject());
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>      }
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>      
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

Modified: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/JenaRDFTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/JenaRDFTest.html (original)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/JenaRDFTest.html Thu Feb  9 01:59:06 2017
@@ -23,22 +23,21 @@
 <a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
 <a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_javadoccomment"> * limitations under the License.</em>
 <a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="L18" href="#L18">18</a>  
-<a class="jxr_linenumber" name="L19" href="#L19">19</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.rdf.jena;
-<a class="jxr_linenumber" name="L20" href="#L20">20</a>  
-<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.AbstractRDFTest;
-<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.RDF;
-<a class="jxr_linenumber" name="L23" href="#L23">23</a>  
-<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/rdf/jena/JenaRDFTest.html">JenaRDFTest</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/commons/rdf/api/AbstractRDFTest.html">AbstractRDFTest</a> {
-<a class="jxr_linenumber" name="L25" href="#L25">25</a>  
-<a class="jxr_linenumber" name="L26" href="#L26">26</a>      @Override
-<a class="jxr_linenumber" name="L27" href="#L27">27</a>      <strong class="jxr_keyword">public</strong> RDF createFactory() {
-<a class="jxr_linenumber" name="L28" href="#L28">28</a>          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> JenaRDF();
-<a class="jxr_linenumber" name="L29" href="#L29">29</a>      }
-<a class="jxr_linenumber" name="L30" href="#L30">30</a>  
-<a class="jxr_linenumber" name="L31" href="#L31">31</a>  }
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.rdf.jena;
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.AbstractRDFTest;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.RDF;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/rdf/jena/JenaRDFTest.html">JenaRDFTest</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/commons/rdf/api/AbstractRDFTest.html">AbstractRDFTest</a> {
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>      @Override
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>      <strong class="jxr_keyword">public</strong> RDF createFactory() {
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> JenaRDF();
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>      }
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2015&#x2013;2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>
\ No newline at end of file

Modified: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/JenaServiceLoaderTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/JenaServiceLoaderTest.html (original)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/JenaServiceLoaderTest.html Thu Feb  9 01:59:06 2017
@@ -48,6 +48,6 @@
 <a class="jxr_linenumber" name="L40" href="#L40">40</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2015&#x2013;2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>
\ No newline at end of file

Modified: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/TestBlankNodeJena.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/TestBlankNodeJena.html (original)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/TestBlankNodeJena.html Thu Feb  9 01:59:06 2017
@@ -54,6 +54,6 @@
 <a class="jxr_linenumber" name="L46" href="#L46">46</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2015&#x2013;2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>
\ No newline at end of file

Modified: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/TestGraphJena.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/TestGraphJena.html (original)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/TestGraphJena.html Thu Feb  9 01:59:06 2017
@@ -39,6 +39,6 @@
 <a class="jxr_linenumber" name="L31" href="#L31">31</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2015&#x2013;2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>
\ No newline at end of file

Modified: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/TestJenaGraphToCommonsRDFGraph.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/TestJenaGraphToCommonsRDFGraph.html (original)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/TestJenaGraphToCommonsRDFGraph.html Thu Feb  9 01:59:06 2017
@@ -131,6 +131,6 @@
 <a class="jxr_linenumber" name="L123" href="#L123">123</a> }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2015&#x2013;2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>
\ No newline at end of file

Modified: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/TestRDFParserBuilder.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/TestRDFParserBuilder.html (original)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/TestRDFParserBuilder.html Thu Feb  9 01:59:06 2017
@@ -71,6 +71,6 @@
 <a class="jxr_linenumber" name="L63" href="#L63">63</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2015&#x2013;2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>
\ No newline at end of file

Modified: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/package-frame.html (original)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/package-frame.html Thu Feb  9 01:59:06 2017
@@ -19,6 +19,15 @@
             	<a href="DatasetJenaTest.html" target="classFrame">DatasetJenaTest</a>
           	</li>
           	          	<li>
+            	<a href="DefaultGraphInQuadTest.html" target="classFrame">DefaultGraphInQuadTest</a>
+          	</li>
+          	          	<li>
+            	<a href="GeneralizedRDFQuadTest.html" target="classFrame">GeneralizedRDFQuadTest</a>
+          	</li>
+          	          	<li>
+            	<a href="GeneralizedRDFTripleTest.html" target="classFrame">GeneralizedRDFTripleTest</a>
+          	</li>
+          	          	<li>
             	<a href="JenaRDFTest.html" target="classFrame">JenaRDFTest</a>
           	</li>
           	          	<li>

Modified: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/package-summary.html (original)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jena/package-summary.html Thu Feb  9 01:59:06 2017
@@ -42,6 +42,21 @@
             	</tr>
 				            	<tr>
               		<td>
+                		<a href="DefaultGraphInQuadTest.html" target="classFrame">DefaultGraphInQuadTest</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="GeneralizedRDFQuadTest.html" target="classFrame">GeneralizedRDFQuadTest</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
+                		<a href="GeneralizedRDFTripleTest.html" target="classFrame">GeneralizedRDFTripleTest</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
                 		<a href="JenaRDFTest.html" target="classFrame">JenaRDFTest</a>
               		</td>
             	</tr>
@@ -93,7 +108,7 @@
       	</div>
 				<hr />
 		<div id="footer">
-			Copyright &#169; 2015&#x2013;2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.
+			Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.
 		</div>
 	</body>
 </html>
\ No newline at end of file

Modified: websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jsonldjava/JsonLdBlankNodeTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jsonldjava/JsonLdBlankNodeTest.html (original)
+++ websites/production/commons/content/proper/commons-rdf/xref-test/org/apache/commons/rdf/jsonldjava/JsonLdBlankNodeTest.html Thu Feb  9 01:59:06 2017
@@ -49,6 +49,6 @@
 <a class="jxr_linenumber" name="L41" href="#L41">41</a>  }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2015&#x2013;2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2015&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>
\ No newline at end of file



Mime
View raw message