commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1006435 [12/18] - in /websites/production/commons/content/proper/commons-rdf-parent: ./ apidocs/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apache/commons/rdf/api/class-use/ apidocs/org/apache/commons/rdf/jena/ apidocs/org/apache/comm...
Date Thu, 09 Feb 2017 00:35:29 GMT
Added: websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jena/DefaultGraphInQuadTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jena/DefaultGraphInQuadTest.html (added)
+++ websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jena/DefaultGraphInQuadTest.html Thu Feb  9 00:35:28 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-parent/xref-test/org/apache/commons/rdf/jena/GeneralizedRDFQuadTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jena/GeneralizedRDFQuadTest.html (added)
+++ websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jena/GeneralizedRDFQuadTest.html Thu Feb  9 00:35:28 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-parent/xref-test/org/apache/commons/rdf/jena/GeneralizedRDFTripleTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jena/GeneralizedRDFTripleTest.html (added)
+++ websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jena/GeneralizedRDFTripleTest.html Thu Feb  9 00:35:28 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-parent/xref-test/org/apache/commons/rdf/jena/JenaRDFTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jena/JenaRDFTest.html (original)
+++ websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jena/JenaRDFTest.html Thu Feb  9 00:35:28 2017
@@ -23,20 +23,19 @@
 <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;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jena/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jena/package-frame.html (original)
+++ websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jena/package-frame.html Thu Feb  9 00:35:28 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-parent/xref-test/org/apache/commons/rdf/jena/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jena/package-summary.html (original)
+++ websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jena/package-summary.html Thu Feb  9 00:35:28 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>

Added: websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jsonldjava/JsonLdComparisonTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jsonldjava/JsonLdComparisonTest.html (added)
+++ websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jsonldjava/JsonLdComparisonTest.html Thu Feb  9 00:35:28 2017
@@ -0,0 +1,154 @@
+<!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>JsonLdComparisonTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/commons/rdf/jsonldjava/JsonLdComparisonTest.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.jsonldjava;
+<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> java.util.Optional;
+<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.simple.Types;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <em class="jxr_javadoccomment"> * COMMONSRDF-56: Test Literal comparisons with JSONLD-Java</em>
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/rdf/jsonldjava/JsonLdComparisonTest.html">JsonLdComparisonTest</a> {
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>      
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>      JsonLdRDF rdf = <strong class="jxr_keyword">new</strong> JsonLdRDF();
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      @Test
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> literalEqual() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>          JsonLdLiteral lit1 = rdf.createLiteral(<span class="jxr_string">"Hello"</span>);
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>          JsonLdLiteral lit2 = rdf.createLiteral(<span class="jxr_string">"Hello"</span>);
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          JsonLdLiteral lit3 = rdf.createLiteral(<span class="jxr_string">"Hello"</span>, Types.XSD_STRING);
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>          assertEquals(lit1, lit2);
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          assertEquals(lit1, lit3);
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>      }
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>  
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>      @Test
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> literalNotEqual() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          JsonLdLiteral lit1 = rdf.createLiteral(<span class="jxr_string">"Hello"</span>);
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          JsonLdLiteral lit2 = rdf.createLiteral(<span class="jxr_string">"Hello there"</span>);
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          assertNotEquals(lit1, lit2);
+<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> literalEqualLang() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          JsonLdLiteral lit1 = rdf.createLiteral(<span class="jxr_string">"Allo Allo"</span>, <span class="jxr_string">"fr"</span>);
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>          JsonLdLiteral lit2 = rdf.createLiteral(<span class="jxr_string">"Allo Allo"</span>, <span class="jxr_string">"fr"</span>);
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>          assertEquals(lit1, lit2);
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>      }
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>      
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>      @Test
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> literalNotEqualLang() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>          JsonLdLiteral lit1 = rdf.createLiteral(<span class="jxr_string">"Hello"</span>, <span class="jxr_string">"en"</span>);
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>          JsonLdLiteral lit2 = rdf.createLiteral(<span class="jxr_string">"Hello"</span>, <span class="jxr_string">"en-us"</span>);
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>          assertNotEquals(lit1, lit2);
+<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> literalEqualType() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>          JsonLdLiteral lit1 = rdf.createLiteral(<span class="jxr_string">"1"</span>, Types.XSD_INTEGER);
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>          JsonLdLiteral lit2 = rdf.createLiteral(<span class="jxr_string">"1"</span>, Types.XSD_INTEGER);
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>          assertEquals(lit1, lit2);
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>      }
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>  
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>      
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>      @Test
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> literalNotEqualType() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>          JsonLdLiteral lit1 = rdf.createLiteral(<span class="jxr_string">"1"</span>, Types.XSD_INTEGER);
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>          JsonLdLiteral lit2 = rdf.createLiteral(<span class="jxr_string">"2"</span>, Types.XSD_INTEGER);
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>          JsonLdLiteral lit3 = rdf.createLiteral(<span class="jxr_string">"1"</span>, Types.XSD_STRING);
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>  
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>          assertNotEquals(lit1, lit2);
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>          assertNotEquals(lit1, lit3);
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>      }
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>  
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>  
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>      @Test
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> grahContains() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>          JsonLdGraph graph = rdf.createGraph();
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>          JsonLdIRI s = rdf.createIRI(<span class="jxr_string">"http://example.com/s"</span>);
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>          JsonLdIRI p = rdf.createIRI(<span class="jxr_string">"http://example.com/p"</span>);
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>          JsonLdLiteral lit1 = rdf.createLiteral(<span class="jxr_string">"Hello"</span>);
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>          
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>          graph.add(s, p, lit1);
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>          assertTrue(graph.contains(s, p, rdf.createLiteral(<span class="jxr_string">"Hello"</span>)));
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>          assertTrue(graph.contains(s, p, rdf.createLiteral(<span class="jxr_string">"Hello"</span>, Types.XSD_STRING)));
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>          assertFalse(graph.contains(s, p, rdf.createLiteral(<span class="jxr_string">"Hello"</span>, Types.XSD_NORMALIZEDSTRING)));
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>          assertFalse(graph.contains(s, p, rdf.createLiteral(<span class="jxr_string">"Hello"</span>, <span class="jxr_string">"en"</span>)));
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>          assertFalse(graph.contains(s, p, rdf.createLiteral(<span class="jxr_string">"Other"</span>)));
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>      }
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>      
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>      @Test
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> datasetContains() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>         JsonLdDataset dataset = rdf.createDataset();
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>         JsonLdIRI s = rdf.createIRI(<span class="jxr_string">"http://example.com/s"</span>);
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>         JsonLdIRI p = rdf.createIRI(<span class="jxr_string">"http://example.com/p"</span>);
+<a class="jxr_linenumber" name="L103" href="#L103">103</a>         JsonLdLiteral lit1 = rdf.createLiteral(<span class="jxr_string">"Hello"</span>);
+<a class="jxr_linenumber" name="L104" href="#L104">104</a>         
+<a class="jxr_linenumber" name="L105" href="#L105">105</a>         dataset.add(<strong class="jxr_keyword">null</strong>, s, p, lit1);
+<a class="jxr_linenumber" name="L106" href="#L106">106</a>         assertTrue(dataset.contains(Optional.empty(), s, p, rdf.createLiteral(<span class="jxr_string">"Hello"</span>)));
+<a class="jxr_linenumber" name="L107" href="#L107">107</a>         assertTrue(dataset.contains(Optional.empty(), s, p, rdf.createLiteral(<span class="jxr_string">"Hello"</span>, Types.XSD_STRING)));
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>         assertFalse(dataset.contains(Optional.empty(), s, p, rdf.createLiteral(<span class="jxr_string">"Hello"</span>, Types.XSD_NORMALIZEDSTRING)));
+<a class="jxr_linenumber" name="L109" href="#L109">109</a>         assertFalse(dataset.contains(Optional.empty(), s, p, rdf.createLiteral(<span class="jxr_string">"Hello"</span>, <span class="jxr_string">"en"</span>)));
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>         assertFalse(dataset.contains(Optional.empty(), s, p, rdf.createLiteral(<span class="jxr_string">"Other"</span>)));
+<a class="jxr_linenumber" name="L111" href="#L111">111</a>     }
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>     
+<a class="jxr_linenumber" name="L113" href="#L113">113</a>     @Test
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> datasetRemove() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L115" href="#L115">115</a>         JsonLdDataset dataset = rdf.createDataset();
+<a class="jxr_linenumber" name="L116" href="#L116">116</a>         JsonLdIRI s = rdf.createIRI(<span class="jxr_string">"http://example.com/s"</span>);
+<a class="jxr_linenumber" name="L117" href="#L117">117</a>         JsonLdIRI p = rdf.createIRI(<span class="jxr_string">"http://example.com/p"</span>);
+<a class="jxr_linenumber" name="L118" href="#L118">118</a>         JsonLdLiteral lit1 = rdf.createLiteral(<span class="jxr_string">"Hello"</span>);
+<a class="jxr_linenumber" name="L119" href="#L119">119</a>         
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>         dataset.add(<strong class="jxr_keyword">null</strong>, s, p, lit1);
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>         assertTrue(dataset.contains(Optional.empty(), s, p, lit1));
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>         dataset.remove(<strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>, rdf.createLiteral(<span class="jxr_string">"Other"</span>)); <em class="jxr_comment">// should NOT match</em>
+<a class="jxr_linenumber" name="L123" href="#L123">123</a>         assertTrue(dataset.contains(Optional.empty(), s, p, lit1));
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>         dataset.remove(<strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>, rdf.createLiteral(<span class="jxr_string">"Hello"</span>, Types.XSD_STRING)); <em class="jxr_comment">// SHOULD  match</em>
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>         assertFalse(dataset.contains(Optional.empty(), s, p, lit1));
+<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> datasetStream() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L130" href="#L130">130</a>         JsonLdDataset dataset = rdf.createDataset();
+<a class="jxr_linenumber" name="L131" href="#L131">131</a>         JsonLdIRI s = rdf.createIRI(<span class="jxr_string">"http://example.com/s"</span>);
+<a class="jxr_linenumber" name="L132" href="#L132">132</a>         JsonLdIRI p = rdf.createIRI(<span class="jxr_string">"http://example.com/p"</span>);
+<a class="jxr_linenumber" name="L133" href="#L133">133</a>         JsonLdLiteral lit1 = rdf.createLiteral(<span class="jxr_string">"Hello"</span>);
+<a class="jxr_linenumber" name="L134" href="#L134">134</a>         JsonLdLiteral lit2 = rdf.createLiteral(<span class="jxr_string">"Other"</span>);
+<a class="jxr_linenumber" name="L135" href="#L135">135</a>         
+<a class="jxr_linenumber" name="L136" href="#L136">136</a>         dataset.add(<strong class="jxr_keyword">null</strong>, s, p, lit1);
+<a class="jxr_linenumber" name="L137" href="#L137">137</a>         assertTrue(dataset.stream(Optional.empty(), s, p, lit1).findAny().isPresent());        
+<a class="jxr_linenumber" name="L138" href="#L138">138</a>         assertFalse(dataset.stream(Optional.empty(), s, p, lit2).findAny().isPresent());        
+<a class="jxr_linenumber" name="L139" href="#L139">139</a>     }
+<a class="jxr_linenumber" name="L140" href="#L140">140</a>     
+<a class="jxr_linenumber" name="L141" href="#L141">141</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-parent/xref-test/org/apache/commons/rdf/jsonldjava/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jsonldjava/package-frame.html (original)
+++ websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jsonldjava/package-frame.html Thu Feb  9 00:35:28 2017
@@ -19,6 +19,9 @@
             	<a href="JsonLdBlankNodeTest.html" target="classFrame">JsonLdBlankNodeTest</a>
           	</li>
           	          	<li>
+            	<a href="JsonLdComparisonTest.html" target="classFrame">JsonLdComparisonTest</a>
+          	</li>
+          	          	<li>
             	<a href="JsonLdDatasetTest.html" target="classFrame">JsonLdDatasetTest</a>
           	</li>
           	          	<li>

Modified: websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jsonldjava/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jsonldjava/package-summary.html (original)
+++ websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/jsonldjava/package-summary.html Thu Feb  9 00:35:28 2017
@@ -42,6 +42,11 @@
             	</tr>
 				            	<tr>
               		<td>
+                		<a href="JsonLdComparisonTest.html" target="classFrame">JsonLdComparisonTest</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
                 		<a href="JsonLdDatasetTest.html" target="classFrame">JsonLdDatasetTest</a>
               		</td>
             	</tr>

Added: websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/rdf4j/RDF4JMethodOverloadsTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/rdf4j/RDF4JMethodOverloadsTest.html (added)
+++ websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/rdf4j/RDF4JMethodOverloadsTest.html Thu Feb  9 00:35:28 2017
@@ -0,0 +1,63 @@
+<!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>RDF4JMethodOverloadsTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/commons/rdf/rdf4j/RDF4JMethodOverloadsTest.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.rdf4j;
+<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.eclipse.rdf4j.model.BNode;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> org.eclipse.rdf4j.model.IRI;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> org.eclipse.rdf4j.model.Literal;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> org.eclipse.rdf4j.model.Resource;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.eclipse.rdf4j.model.Value;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> org.eclipse.rdf4j.model.ValueFactory;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong> org.eclipse.rdf4j.model.impl.SimpleValueFactory;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertEquals;
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JMethodOverloadsTest.html">RDF4JMethodOverloadsTest</a> {
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      @Test
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testAsRDFTermOverloads() {
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>          RDF4J rdf4J = <strong class="jxr_keyword">new</strong> RDF4J();
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>  
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          <strong class="jxr_keyword">final</strong> ValueFactory valueFactory = SimpleValueFactory.getInstance();
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>  
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          <strong class="jxr_keyword">final</strong> Value bNode = valueFactory.createBNode(<span class="jxr_string">"b1"</span>);
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>          <strong class="jxr_keyword">final</strong> Value iri = valueFactory.createIRI(<span class="jxr_string">"http://ex.org"</span>);
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>          <strong class="jxr_keyword">final</strong> Value literal = valueFactory.createLiteral(<span class="jxr_string">"b1"</span>);
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>  
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          assertEquals(rdf4J.asRDFTerm(bNode), rdf4J.asRDFTerm((BNode) bNode));
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          assertEquals(rdf4J.asRDFTerm(iri), rdf4J.asRDFTerm((IRI) iri));
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          assertEquals(rdf4J.asRDFTerm(literal), rdf4J.asRDFTerm((Literal) literal));
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          assertEquals(rdf4J.asRDFTerm(bNode), rdf4J.asRDFTerm((Resource) bNode));
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          assertEquals(rdf4J.asRDFTerm(iri), rdf4J.asRDFTerm((Resource) iri));
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>      }
+<a class="jxr_linenumber" name="L50" href="#L50">50</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-parent/xref-test/org/apache/commons/rdf/rdf4j/package-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/rdf4j/package-frame.html (original)
+++ websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/rdf4j/package-frame.html Thu Feb  9 00:35:28 2017
@@ -40,6 +40,9 @@
             	<a href="NativeStoreGraphTest.html" target="classFrame">NativeStoreRDF</a>
           	</li>
           	          	<li>
+            	<a href="RDF4JMethodOverloadsTest.html" target="classFrame">RDF4JMethodOverloadsTest</a>
+          	</li>
+          	          	<li>
             	<a href="RDF4JServiceLoaderTest.html" target="classFrame">RDF4JServiceLoaderTest</a>
           	</li>
           	          	<li>

Modified: websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/rdf4j/package-summary.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/rdf4j/package-summary.html (original)
+++ websites/production/commons/content/proper/commons-rdf-parent/xref-test/org/apache/commons/rdf/rdf4j/package-summary.html Thu Feb  9 00:35:28 2017
@@ -77,6 +77,11 @@
             	</tr>
 				            	<tr>
               		<td>
+                		<a href="RDF4JMethodOverloadsTest.html" target="classFrame">RDF4JMethodOverloadsTest</a>
+              		</td>
+            	</tr>
+				            	<tr>
+              		<td>
                 		<a href="RDF4JServiceLoaderTest.html" target="classFrame">RDF4JServiceLoaderTest</a>
               		</td>
             	</tr>

Modified: websites/production/commons/content/proper/commons-rdf-parent/xref/allclasses-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-rdf-parent/xref/allclasses-frame.html (original)
+++ websites/production/commons/content/proper/commons-rdf-parent/xref/allclasses-frame.html Thu Feb  9 00:35:28 2017
@@ -66,6 +66,9 @@
 				<a href="org/apache/commons/rdf/simple/DatasetImpl.html" target="classFrame">DatasetImpl</a>
 			</li>
 						<li>
+				<a href="org/apache/commons/rdf/jena/impl/AbstractQuadLike.html" target="classFrame">DefaultGraphChecker</a>
+			</li>
+						<li>
 				<a href="org/apache/commons/rdf/api/Graph.html" target="classFrame">Graph</a>
 			</li>
 						<li>



Mime
View raw message