commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wik...@apache.org
Subject svn commit: r1001470 [30/36] - in /websites/production/commonsrdf/content: ./ apidocs/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apache/commons/rdf/api/class-use/ apidocs/org/apache/commons/rdf/experimental/ apidocs/org/apache/commons/rdf/experim...
Date Tue, 22 Nov 2016 07:55:40 GMT
Modified: websites/production/commonsrdf/content/xref/org/apache/commons/rdf/rdf4j/RDF4J.html
==============================================================================
--- websites/production/commonsrdf/content/xref/org/apache/commons/rdf/rdf4j/RDF4J.html (original)
+++ websites/production/commonsrdf/content/xref/org/apache/commons/rdf/rdf4j/RDF4J.html Tue
Nov 22 07:55:35 2016
@@ -150,7 +150,7 @@
 <a class="jxr_linenumber" name="L142" href="#L142">142</a> <em class="jxr_javadoccomment">
    * @param valueFactory</em>
 <a class="jxr_linenumber" name="L143" href="#L143">143</a> <em class="jxr_javadoccomment">
    *            The RDF4J {@link ValueFactory} to use</em>
 <a class="jxr_linenumber" name="L144" href="#L144">144</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L145" href="#L145">145</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4J.html">RDF4J</a>(ValueFactory
valueFactory) {
+<a class="jxr_linenumber" name="L145" href="#L145">145</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4J.html">RDF4J</a>(<strong
class="jxr_keyword">final</strong> ValueFactory valueFactory) {
 <a class="jxr_linenumber" name="L146" href="#L146">146</a>         <strong
class="jxr_keyword">this</strong>(valueFactory, UUID.randomUUID());
 <a class="jxr_linenumber" name="L147" href="#L147">147</a>     }
 <a class="jxr_linenumber" name="L148" href="#L148">148</a> 
@@ -165,7 +165,7 @@
 <a class="jxr_linenumber" name="L157" href="#L157">157</a> <em class="jxr_javadoccomment">
    *            {@link BlankNode}s for the purpose of</em>
 <a class="jxr_linenumber" name="L158" href="#L158">158</a> <em class="jxr_javadoccomment">
    *            {@link BlankNode#uniqueReference()}</em>
 <a class="jxr_linenumber" name="L159" href="#L159">159</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L160" href="#L160">160</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4J.html">RDF4J</a>(UUID
salt) {
+<a class="jxr_linenumber" name="L160" href="#L160">160</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4J.html">RDF4J</a>(<strong
class="jxr_keyword">final</strong> UUID salt) {
 <a class="jxr_linenumber" name="L161" href="#L161">161</a>         <strong
class="jxr_keyword">this</strong>(SimpleValueFactory.getInstance(), salt);
 <a class="jxr_linenumber" name="L162" href="#L162">162</a>     }
 <a class="jxr_linenumber" name="L163" href="#L163">163</a> 
@@ -182,7 +182,7 @@
 <a class="jxr_linenumber" name="L174" href="#L174">174</a> <em class="jxr_javadoccomment">
    *            {@link BlankNode}s for the purpose of</em>
 <a class="jxr_linenumber" name="L175" href="#L175">175</a> <em class="jxr_javadoccomment">
    *            {@link BlankNode#uniqueReference()}</em>
 <a class="jxr_linenumber" name="L176" href="#L176">176</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L177" href="#L177">177</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4J.html">RDF4J</a>(ValueFactory
valueFactory, UUID salt) {
+<a class="jxr_linenumber" name="L177" href="#L177">177</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4J.html">RDF4J</a>(<strong
class="jxr_keyword">final</strong> ValueFactory valueFactory, <strong class="jxr_keyword">final</strong>
UUID salt) {
 <a class="jxr_linenumber" name="L178" href="#L178">178</a>         <strong
class="jxr_keyword">this</strong>.valueFactory = valueFactory;
 <a class="jxr_linenumber" name="L179" href="#L179">179</a>         <strong
class="jxr_keyword">this</strong>.salt = salt;
 <a class="jxr_linenumber" name="L180" href="#L180">180</a>     }
@@ -236,7 +236,7 @@
 <a class="jxr_linenumber" name="L228" href="#L228">228</a> <em class="jxr_javadoccomment">
    * @throws IllegalArgumentException</em>
 <a class="jxr_linenumber" name="L229" href="#L229">229</a> <em class="jxr_javadoccomment">
    *             if the value is not a BNode, Literal or IRI</em>
 <a class="jxr_linenumber" name="L230" href="#L230">230</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L231" href="#L231">231</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTerm.html">RDF4JTerm</a>
asRDFTerm(Value value) {
+<a class="jxr_linenumber" name="L231" href="#L231">231</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTerm.html">RDF4JTerm</a>
asRDFTerm(<strong class="jxr_keyword">final</strong> Value value) {
 <a class="jxr_linenumber" name="L232" href="#L232">232</a>         <strong
class="jxr_keyword">return</strong> asRDFTerm(value, salt);
 <a class="jxr_linenumber" name="L233" href="#L233">233</a>     }
 <a class="jxr_linenumber" name="L234" href="#L234">234</a> 
@@ -263,7 +263,7 @@
 <a class="jxr_linenumber" name="L255" href="#L255">255</a> <em class="jxr_javadoccomment">
    * @throws IllegalArgumentException</em>
 <a class="jxr_linenumber" name="L256" href="#L256">256</a> <em class="jxr_javadoccomment">
    *             if the value is not a BNode, Literal or IRI</em>
 <a class="jxr_linenumber" name="L257" href="#L257">257</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L258" href="#L258">258</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTerm.html">RDF4JTerm</a>
asRDFTerm(<strong class="jxr_keyword">final</strong> Value value, UUID salt) {
+<a class="jxr_linenumber" name="L258" href="#L258">258</a>     <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTerm.html">RDF4JTerm</a>
asRDFTerm(<strong class="jxr_keyword">final</strong> Value value, <strong class="jxr_keyword">final</strong>
UUID salt) {
 <a class="jxr_linenumber" name="L259" href="#L259">259</a>         <strong
class="jxr_keyword">if</strong> (value instanceof BNode) {
 <a class="jxr_linenumber" name="L260" href="#L260">260</a>             <strong
class="jxr_keyword">return</strong> rdf4j.createBlankNodeImpl((BNode) value, salt);
 <a class="jxr_linenumber" name="L261" href="#L261">261</a>         }
@@ -292,8 +292,8 @@
 <a class="jxr_linenumber" name="L284" href="#L284">284</a> <em class="jxr_javadoccomment">
    *            Zero or more {@link Option}</em>
 <a class="jxr_linenumber" name="L285" href="#L285">285</a> <em class="jxr_javadoccomment">
    * @return A {@link Dataset} backed by the RDF4J repository.</em>
 <a class="jxr_linenumber" name="L286" href="#L286">286</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L287" href="#L287">287</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JDataset.html">RDF4JDataset</a>
asDataset(Repository repository, Option... options) {
-<a class="jxr_linenumber" name="L288" href="#L288">288</a>         EnumSet&lt;Option&gt;
opts = optionSet(options);
+<a class="jxr_linenumber" name="L287" href="#L287">287</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JDataset.html">RDF4JDataset</a>
asDataset(<strong class="jxr_keyword">final</strong> Repository repository, <strong
class="jxr_keyword">final</strong> Option... options) {
+<a class="jxr_linenumber" name="L288" href="#L288">288</a>         <strong
class="jxr_keyword">final</strong> EnumSet&lt;Option&gt; opts = optionSet(options);
 <a class="jxr_linenumber" name="L289" href="#L289">289</a>         <strong
class="jxr_keyword">return</strong> rdf4j.createRepositoryDatasetImpl(repository,
opts.contains(Option.handleInitAndShutdown),
 <a class="jxr_linenumber" name="L290" href="#L290">290</a>                 opts.contains(Option.includeInferred));
 <a class="jxr_linenumber" name="L291" href="#L291">291</a>     }
@@ -307,7 +307,7 @@
 <a class="jxr_linenumber" name="L299" href="#L299">299</a> <em class="jxr_javadoccomment">
    *            RDF4J {@link Model} to adapt.</em>
 <a class="jxr_linenumber" name="L300" href="#L300">300</a> <em class="jxr_javadoccomment">
    * @return Adapted {@link Graph}.</em>
 <a class="jxr_linenumber" name="L301" href="#L301">301</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L302" href="#L302">302</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html">RDF4JGraph</a>
asGraph(Model model) {
+<a class="jxr_linenumber" name="L302" href="#L302">302</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html">RDF4JGraph</a>
asGraph(<strong class="jxr_keyword">final</strong> Model model) {
 <a class="jxr_linenumber" name="L303" href="#L303">303</a>         <strong
class="jxr_keyword">return</strong> rdf4j.createModelGraphImpl(model, <strong
class="jxr_keyword">this</strong>);
 <a class="jxr_linenumber" name="L304" href="#L304">304</a>     }
 <a class="jxr_linenumber" name="L305" href="#L305">305</a> 
@@ -330,8 +330,8 @@
 <a class="jxr_linenumber" name="L322" href="#L322">322</a> <em class="jxr_javadoccomment">
    *            Zero or more {@link Option}</em>
 <a class="jxr_linenumber" name="L323" href="#L323">323</a> <em class="jxr_javadoccomment">
    * @return A {@link Graph} backed by the RDF4J repository.</em>
 <a class="jxr_linenumber" name="L324" href="#L324">324</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L325" href="#L325">325</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html">RDF4JGraph</a>
asGraph(Repository repository, Option... options) {
-<a class="jxr_linenumber" name="L326" href="#L326">326</a>         EnumSet&lt;Option&gt;
opts = optionSet(options);
+<a class="jxr_linenumber" name="L325" href="#L325">325</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html">RDF4JGraph</a>
asGraph(<strong class="jxr_keyword">final</strong> Repository repository, <strong
class="jxr_keyword">final</strong> Option... options) {
+<a class="jxr_linenumber" name="L326" href="#L326">326</a>         <strong
class="jxr_keyword">final</strong> EnumSet&lt;Option&gt; opts = optionSet(options);
 <a class="jxr_linenumber" name="L327" href="#L327">327</a>         <strong
class="jxr_keyword">return</strong> rdf4j.createRepositoryGraphImpl(repository, opts.contains(Option.handleInitAndShutdown),
 <a class="jxr_linenumber" name="L328" href="#L328">328</a>                 opts.contains(Option.includeInferred),
<strong class="jxr_keyword">new</strong> Resource[] { <strong class="jxr_keyword">null</strong>
}); <em class="jxr_comment">// default</em>
 <a class="jxr_linenumber" name="L329" href="#L329">329</a>                  
                                                               <em class="jxr_comment">//
graph</em>
@@ -350,8 +350,8 @@
 <a class="jxr_linenumber" name="L342" href="#L342">342</a> <em class="jxr_javadoccomment">
    *            Zero or more {@link Option}</em>
 <a class="jxr_linenumber" name="L343" href="#L343">343</a> <em class="jxr_javadoccomment">
    * @return A union {@link Graph} backed by the RDF4J repository.</em>
 <a class="jxr_linenumber" name="L344" href="#L344">344</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L345" href="#L345">345</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html">RDF4JGraph</a>
asGraphUnion(Repository repository, Option... options) {
-<a class="jxr_linenumber" name="L346" href="#L346">346</a>         EnumSet&lt;Option&gt;
opts = optionSet(options);
+<a class="jxr_linenumber" name="L345" href="#L345">345</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html">RDF4JGraph</a>
asGraphUnion(<strong class="jxr_keyword">final</strong> Repository repository,
<strong class="jxr_keyword">final</strong> Option... options) {
+<a class="jxr_linenumber" name="L346" href="#L346">346</a>         <strong
class="jxr_keyword">final</strong> EnumSet&lt;Option&gt; opts = optionSet(options);
 <a class="jxr_linenumber" name="L347" href="#L347">347</a>         <strong
class="jxr_keyword">return</strong> rdf4j.createRepositoryGraphImpl(repository, opts.contains(Option.handleInitAndShutdown),
 <a class="jxr_linenumber" name="L348" href="#L348">348</a>                 opts.contains(Option.includeInferred),
<strong class="jxr_keyword">new</strong> Resource[] {}); <em class="jxr_comment">//
union</em>
 <a class="jxr_linenumber" name="L349" href="#L349">349</a>                  
                                                         <em class="jxr_comment">//
graph</em>
@@ -383,10 +383,10 @@
 <a class="jxr_linenumber" name="L375" href="#L375">375</a> <em class="jxr_javadoccomment">
    *            Zero or more {@link Option}s</em>
 <a class="jxr_linenumber" name="L376" href="#L376">376</a> <em class="jxr_javadoccomment">
    * @return A {@link Graph} backed by the RDF4J repository.</em>
 <a class="jxr_linenumber" name="L377" href="#L377">377</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L378" href="#L378">378</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html">RDF4JGraph</a>
asGraph(Repository repository, Set&lt;? <strong class="jxr_keyword">extends</strong>
BlankNodeOrIRI&gt; contexts, Option... option) {
-<a class="jxr_linenumber" name="L379" href="#L379">379</a>         EnumSet&lt;Option&gt;
opts = optionSet(option);
+<a class="jxr_linenumber" name="L378" href="#L378">378</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html">RDF4JGraph</a>
asGraph(<strong class="jxr_keyword">final</strong> Repository repository, <strong
class="jxr_keyword">final</strong> Set&lt;? <strong class="jxr_keyword">extends</strong>
BlankNodeOrIRI&gt; contexts, <strong class="jxr_keyword">final</strong> Option...
option) {
+<a class="jxr_linenumber" name="L379" href="#L379">379</a>         <strong
class="jxr_keyword">final</strong> EnumSet&lt;Option&gt; opts = optionSet(option);
 <a class="jxr_linenumber" name="L380" href="#L380">380</a>         <em class="jxr_javadoccomment">/**
NOTE: asValue() deliberately CAN handle &lt;code&gt;null&lt;/code&gt; */</em>
-<a class="jxr_linenumber" name="L381" href="#L381">381</a>         Resource[]
resources = contexts.stream().map(g -&gt; (Resource) asValue(g)).toArray(Resource[]::<strong
class="jxr_keyword">new</strong>);
+<a class="jxr_linenumber" name="L381" href="#L381">381</a>         <strong
class="jxr_keyword">final</strong> Resource[] resources = contexts.stream().map(g
-&gt; (Resource) asValue(g)).toArray(Resource[]::<strong class="jxr_keyword">new</strong>);
 <a class="jxr_linenumber" name="L382" href="#L382">382</a>         <strong
class="jxr_keyword">return</strong> rdf4j.createRepositoryGraphImpl(Objects.requireNonNull(repository),
 <a class="jxr_linenumber" name="L383" href="#L383">383</a>                 opts.contains(Option.handleInitAndShutdown),
opts.contains(Option.includeInferred), resources);
 <a class="jxr_linenumber" name="L384" href="#L384">384</a>     }
@@ -406,20 +406,20 @@
 <a class="jxr_linenumber" name="L398" href="#L398">398</a> <em class="jxr_javadoccomment">
    *            A {@link Triple} or {@link Quad} to adapt</em>
 <a class="jxr_linenumber" name="L399" href="#L399">399</a> <em class="jxr_javadoccomment">
    * @return A corresponding {@link Statement}</em>
 <a class="jxr_linenumber" name="L400" href="#L400">400</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L401" href="#L401">401</a>     <strong class="jxr_keyword">public</strong>
Statement asStatement(<a href="../../../../../org/apache/commons/rdf/api/TripleLike.html">TripleLike</a>
tripleLike) {
+<a class="jxr_linenumber" name="L401" href="#L401">401</a>     <strong class="jxr_keyword">public</strong>
Statement asStatement(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/rdf/api/TripleLike.html">TripleLike</a>
tripleLike) {
 <a class="jxr_linenumber" name="L402" href="#L402">402</a>         <strong
class="jxr_keyword">if</strong> (tripleLike instanceof RDF4JTripleLike) {
 <a class="jxr_linenumber" name="L403" href="#L403">403</a>             <em
class="jxr_comment">// Return original statement - this covers both RDF4JQuad and</em>
 <a class="jxr_linenumber" name="L404" href="#L404">404</a>             <em
class="jxr_comment">// RDF4JTriple</em>
 <a class="jxr_linenumber" name="L405" href="#L405">405</a>             <strong
class="jxr_keyword">return</strong> ((RDF4JTripleLike) tripleLike).asStatement();
 <a class="jxr_linenumber" name="L406" href="#L406">406</a>         }
 <a class="jxr_linenumber" name="L407" href="#L407">407</a> 
-<a class="jxr_linenumber" name="L408" href="#L408">408</a>         org.eclipse.rdf4j.model.Resource
subject = (org.eclipse.rdf4j.model.Resource) asValue(tripleLike.getSubject());
-<a class="jxr_linenumber" name="L409" href="#L409">409</a>         org.eclipse.rdf4j.model.IRI
predicate = (org.eclipse.rdf4j.model.IRI) asValue(tripleLike.getPredicate());
-<a class="jxr_linenumber" name="L410" href="#L410">410</a>         Value object
= asValue(tripleLike.getObject());
+<a class="jxr_linenumber" name="L408" href="#L408">408</a>         <strong
class="jxr_keyword">final</strong> org.eclipse.rdf4j.model.Resource subject = (org.eclipse.rdf4j.model.Resource)
asValue(tripleLike.getSubject());
+<a class="jxr_linenumber" name="L409" href="#L409">409</a>         <strong
class="jxr_keyword">final</strong> org.eclipse.rdf4j.model.IRI predicate = (org.eclipse.rdf4j.model.IRI)
asValue(tripleLike.getPredicate());
+<a class="jxr_linenumber" name="L410" href="#L410">410</a>         <strong
class="jxr_keyword">final</strong> Value object = asValue(tripleLike.getObject());
 <a class="jxr_linenumber" name="L411" href="#L411">411</a> 
 <a class="jxr_linenumber" name="L412" href="#L412">412</a>         org.eclipse.rdf4j.model.Resource
context = <strong class="jxr_keyword">null</strong>;
 <a class="jxr_linenumber" name="L413" href="#L413">413</a>         <strong
class="jxr_keyword">if</strong> (tripleLike instanceof Quad) {
-<a class="jxr_linenumber" name="L414" href="#L414">414</a>             <a
href="../../../../../org/apache/commons/rdf/api/Quad.html">Quad</a> quad = (Quad)
tripleLike;
+<a class="jxr_linenumber" name="L414" href="#L414">414</a>             <strong
class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/rdf/api/Quad.html">Quad</a>
quad = (Quad) tripleLike;
 <a class="jxr_linenumber" name="L415" href="#L415">415</a>             context
= (org.eclipse.rdf4j.model.Resource) asValue(quad.getGraphName().orElse(<strong class="jxr_keyword">null</strong>));
 <a class="jxr_linenumber" name="L416" href="#L416">416</a>         }
 <a class="jxr_linenumber" name="L417" href="#L417">417</a> 
@@ -470,7 +470,7 @@
 <a class="jxr_linenumber" name="L462" href="#L462">462</a> <em class="jxr_javadoccomment">
    *            RDFTerm to adapt to RDF4J Value</em>
 <a class="jxr_linenumber" name="L463" href="#L463">463</a> <em class="jxr_javadoccomment">
    * @return Adapted RDF4J {@link Value}</em>
 <a class="jxr_linenumber" name="L464" href="#L464">464</a> <em class="jxr_javadoccomment">
    */</em>
-<a class="jxr_linenumber" name="L465" href="#L465">465</a>     <strong class="jxr_keyword">public</strong>
Value asValue(<a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html">RDFTerm</a>
term) {
+<a class="jxr_linenumber" name="L465" href="#L465">465</a>     <strong class="jxr_keyword">public</strong>
Value asValue(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html">RDFTerm</a>
term) {
 <a class="jxr_linenumber" name="L466" href="#L466">466</a>         <strong
class="jxr_keyword">if</strong> (term == <strong class="jxr_keyword">null</strong>)
{
 <a class="jxr_linenumber" name="L467" href="#L467">467</a>             <strong
class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>;
 <a class="jxr_linenumber" name="L468" href="#L468">468</a>         }
@@ -480,22 +480,22 @@
 <a class="jxr_linenumber" name="L472" href="#L472">472</a>             <strong
class="jxr_keyword">return</strong> ((RDF4JTerm) term).asValue();
 <a class="jxr_linenumber" name="L473" href="#L473">473</a>         }
 <a class="jxr_linenumber" name="L474" href="#L474">474</a>         <strong
class="jxr_keyword">if</strong> (term instanceof org.apache.commons.rdf.api.IRI)
{
-<a class="jxr_linenumber" name="L475" href="#L475">475</a>             org.apache.commons.rdf.api.IRI
iri = (org.apache.commons.rdf.api.IRI) term;
+<a class="jxr_linenumber" name="L475" href="#L475">475</a>             <strong
class="jxr_keyword">final</strong> org.apache.commons.rdf.api.IRI iri = (org.apache.commons.rdf.api.IRI)
term;
 <a class="jxr_linenumber" name="L476" href="#L476">476</a>             <strong
class="jxr_keyword">return</strong> getValueFactory().createIRI(iri.getIRIString());
 <a class="jxr_linenumber" name="L477" href="#L477">477</a>         }
 <a class="jxr_linenumber" name="L478" href="#L478">478</a>         <strong
class="jxr_keyword">if</strong> (term instanceof org.apache.commons.rdf.api.Literal)
{
-<a class="jxr_linenumber" name="L479" href="#L479">479</a>             org.apache.commons.rdf.api.Literal
literal = (org.apache.commons.rdf.api.Literal) term;
-<a class="jxr_linenumber" name="L480" href="#L480">480</a>             String
label = literal.getLexicalForm();
+<a class="jxr_linenumber" name="L479" href="#L479">479</a>             <strong
class="jxr_keyword">final</strong> org.apache.commons.rdf.api.Literal literal = (org.apache.commons.rdf.api.Literal)
term;
+<a class="jxr_linenumber" name="L480" href="#L480">480</a>             <strong
class="jxr_keyword">final</strong> String label = literal.getLexicalForm();
 <a class="jxr_linenumber" name="L481" href="#L481">481</a>             <strong
class="jxr_keyword">if</strong> (literal.getLanguageTag().isPresent()) {
-<a class="jxr_linenumber" name="L482" href="#L482">482</a>                 String
lang = literal.getLanguageTag().get();
+<a class="jxr_linenumber" name="L482" href="#L482">482</a>                 <strong
class="jxr_keyword">final</strong> String lang = literal.getLanguageTag().get();
 <a class="jxr_linenumber" name="L483" href="#L483">483</a>                 <strong
class="jxr_keyword">return</strong> getValueFactory().createLiteral(label, lang);
 <a class="jxr_linenumber" name="L484" href="#L484">484</a>             }
-<a class="jxr_linenumber" name="L485" href="#L485">485</a>             org.eclipse.rdf4j.model.IRI
dataType = (org.eclipse.rdf4j.model.IRI) asValue(literal.getDatatype());
+<a class="jxr_linenumber" name="L485" href="#L485">485</a>             <strong
class="jxr_keyword">final</strong> org.eclipse.rdf4j.model.IRI dataType = (org.eclipse.rdf4j.model.IRI)
asValue(literal.getDatatype());
 <a class="jxr_linenumber" name="L486" href="#L486">486</a>             <strong
class="jxr_keyword">return</strong> getValueFactory().createLiteral(label, dataType);
 <a class="jxr_linenumber" name="L487" href="#L487">487</a>         }
 <a class="jxr_linenumber" name="L488" href="#L488">488</a>         <strong
class="jxr_keyword">if</strong> (term instanceof BlankNode) {
 <a class="jxr_linenumber" name="L489" href="#L489">489</a>             <em
class="jxr_comment">// This is where it gets tricky to support round trips!</em>
-<a class="jxr_linenumber" name="L490" href="#L490">490</a>             <a
href="../../../../../org/apache/commons/rdf/api/BlankNode.html">BlankNode</a> blankNode
= (BlankNode) term;
+<a class="jxr_linenumber" name="L490" href="#L490">490</a>             <strong
class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html">BlankNode</a>
blankNode = (BlankNode) term;
 <a class="jxr_linenumber" name="L491" href="#L491">491</a>             <em
class="jxr_comment">// FIXME: The uniqueReference might not be a valid BlankNode</em>
 <a class="jxr_linenumber" name="L492" href="#L492">492</a>             <em
class="jxr_comment">// identifier..</em>
 <a class="jxr_linenumber" name="L493" href="#L493">493</a>             <em
class="jxr_comment">// does it have to be in RDF4J?</em>
@@ -506,13 +506,13 @@
 <a class="jxr_linenumber" name="L498" href="#L498">498</a> 
 <a class="jxr_linenumber" name="L499" href="#L499">499</a>     @Override
 <a class="jxr_linenumber" name="L500" href="#L500">500</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JBlankNode.html">RDF4JBlankNode</a>
createBlankNode() {
-<a class="jxr_linenumber" name="L501" href="#L501">501</a>         BNode bnode
= getValueFactory().createBNode();
+<a class="jxr_linenumber" name="L501" href="#L501">501</a>         <strong
class="jxr_keyword">final</strong> BNode bnode = getValueFactory().createBNode();
 <a class="jxr_linenumber" name="L502" href="#L502">502</a>         <strong
class="jxr_keyword">return</strong> (RDF4JBlankNode) asRDFTerm(bnode);
 <a class="jxr_linenumber" name="L503" href="#L503">503</a>     }
 <a class="jxr_linenumber" name="L504" href="#L504">504</a> 
 <a class="jxr_linenumber" name="L505" href="#L505">505</a>     @Override
-<a class="jxr_linenumber" name="L506" href="#L506">506</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JBlankNode.html">RDF4JBlankNode</a>
createBlankNode(String name) {
-<a class="jxr_linenumber" name="L507" href="#L507">507</a>         BNode bnode
= getValueFactory().createBNode(name);
+<a class="jxr_linenumber" name="L506" href="#L506">506</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JBlankNode.html">RDF4JBlankNode</a>
createBlankNode(<strong class="jxr_keyword">final</strong> String name) {
+<a class="jxr_linenumber" name="L507" href="#L507">507</a>         <strong
class="jxr_keyword">final</strong> BNode bnode = getValueFactory().createBNode(name);
 <a class="jxr_linenumber" name="L508" href="#L508">508</a>         <strong
class="jxr_keyword">return</strong> (RDF4JBlankNode) asRDFTerm(bnode);
 <a class="jxr_linenumber" name="L509" href="#L509">509</a>     }
 <a class="jxr_linenumber" name="L510" href="#L510">510</a> 
@@ -527,8 +527,8 @@
 <a class="jxr_linenumber" name="L519" href="#L519">519</a> <em class="jxr_javadoccomment">
    */</em>
 <a class="jxr_linenumber" name="L520" href="#L520">520</a>     @Override
 <a class="jxr_linenumber" name="L521" href="#L521">521</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JDataset.html">RDF4JDataset</a>
createDataset() {
-<a class="jxr_linenumber" name="L522" href="#L522">522</a>         Sail sail
= <strong class="jxr_keyword">new</strong> MemoryStore();
-<a class="jxr_linenumber" name="L523" href="#L523">523</a>         Repository
repository = <strong class="jxr_keyword">new</strong> SailRepository(sail);
+<a class="jxr_linenumber" name="L522" href="#L522">522</a>         <strong
class="jxr_keyword">final</strong> Sail sail = <strong class="jxr_keyword">new</strong>
MemoryStore();
+<a class="jxr_linenumber" name="L523" href="#L523">523</a>         <strong
class="jxr_keyword">final</strong> Repository repository = <strong class="jxr_keyword">new</strong>
SailRepository(sail);
 <a class="jxr_linenumber" name="L524" href="#L524">524</a>         <strong
class="jxr_keyword">return</strong> rdf4j.createRepositoryDatasetImpl(repository,
<strong class="jxr_keyword">true</strong>, false);
 <a class="jxr_linenumber" name="L525" href="#L525">525</a>     }
 <a class="jxr_linenumber" name="L526" href="#L526">526</a> 
@@ -538,33 +538,33 @@
 <a class="jxr_linenumber" name="L530" href="#L530">530</a>     }
 <a class="jxr_linenumber" name="L531" href="#L531">531</a> 
 <a class="jxr_linenumber" name="L532" href="#L532">532</a>     @Override
-<a class="jxr_linenumber" name="L533" href="#L533">533</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JIRI.html">RDF4JIRI</a>
createIRI(String iri) <strong class="jxr_keyword">throws</strong> IllegalArgumentException
{
+<a class="jxr_linenumber" name="L533" href="#L533">533</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JIRI.html">RDF4JIRI</a>
createIRI(<strong class="jxr_keyword">final</strong> String iri) <strong class="jxr_keyword">throws</strong>
IllegalArgumentException {
 <a class="jxr_linenumber" name="L534" href="#L534">534</a>         <strong
class="jxr_keyword">return</strong> (RDF4JIRI) asRDFTerm(getValueFactory().createIRI(iri));
 <a class="jxr_linenumber" name="L535" href="#L535">535</a>     }
 <a class="jxr_linenumber" name="L536" href="#L536">536</a> 
 <a class="jxr_linenumber" name="L537" href="#L537">537</a>     @Override
-<a class="jxr_linenumber" name="L538" href="#L538">538</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JLiteral.html">RDF4JLiteral</a>
createLiteral(String lexicalForm) <strong class="jxr_keyword">throws</strong>
IllegalArgumentException {
-<a class="jxr_linenumber" name="L539" href="#L539">539</a>         org.eclipse.rdf4j.model.Literal
lit = getValueFactory().createLiteral(lexicalForm);
+<a class="jxr_linenumber" name="L538" href="#L538">538</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JLiteral.html">RDF4JLiteral</a>
createLiteral(<strong class="jxr_keyword">final</strong> String lexicalForm) <strong
class="jxr_keyword">throws</strong> IllegalArgumentException {
+<a class="jxr_linenumber" name="L539" href="#L539">539</a>         <strong
class="jxr_keyword">final</strong> org.eclipse.rdf4j.model.Literal lit = getValueFactory().createLiteral(lexicalForm);
 <a class="jxr_linenumber" name="L540" href="#L540">540</a>         <strong
class="jxr_keyword">return</strong> (RDF4JLiteral) asRDFTerm(lit);
 <a class="jxr_linenumber" name="L541" href="#L541">541</a>     }
 <a class="jxr_linenumber" name="L542" href="#L542">542</a> 
 <a class="jxr_linenumber" name="L543" href="#L543">543</a>     @Override
-<a class="jxr_linenumber" name="L544" href="#L544">544</a>     <strong class="jxr_keyword">public</strong>
org.apache.commons.rdf.api.Literal createLiteral(String lexicalForm, org.apache.commons.rdf.api.IRI
dataType)
+<a class="jxr_linenumber" name="L544" href="#L544">544</a>     <strong class="jxr_keyword">public</strong>
org.apache.commons.rdf.api.Literal createLiteral(<strong class="jxr_keyword">final</strong>
String lexicalForm, <strong class="jxr_keyword">final</strong> org.apache.commons.rdf.api.IRI
dataType)
 <a class="jxr_linenumber" name="L545" href="#L545">545</a>             <strong
class="jxr_keyword">throws</strong> IllegalArgumentException {
-<a class="jxr_linenumber" name="L546" href="#L546">546</a>         org.eclipse.rdf4j.model.IRI
iri = getValueFactory().createIRI(dataType.getIRIString());
-<a class="jxr_linenumber" name="L547" href="#L547">547</a>         org.eclipse.rdf4j.model.Literal
lit = getValueFactory().createLiteral(lexicalForm, iri);
+<a class="jxr_linenumber" name="L546" href="#L546">546</a>         <strong
class="jxr_keyword">final</strong> org.eclipse.rdf4j.model.IRI iri = getValueFactory().createIRI(dataType.getIRIString());
+<a class="jxr_linenumber" name="L547" href="#L547">547</a>         <strong
class="jxr_keyword">final</strong> org.eclipse.rdf4j.model.Literal lit = getValueFactory().createLiteral(lexicalForm,
iri);
 <a class="jxr_linenumber" name="L548" href="#L548">548</a>         <strong
class="jxr_keyword">return</strong> (org.apache.commons.rdf.api.Literal) asRDFTerm(lit);
 <a class="jxr_linenumber" name="L549" href="#L549">549</a>     }
 <a class="jxr_linenumber" name="L550" href="#L550">550</a> 
 <a class="jxr_linenumber" name="L551" href="#L551">551</a>     @Override
-<a class="jxr_linenumber" name="L552" href="#L552">552</a>     <strong class="jxr_keyword">public</strong>
org.apache.commons.rdf.api.Literal createLiteral(String lexicalForm, String languageTag)
+<a class="jxr_linenumber" name="L552" href="#L552">552</a>     <strong class="jxr_keyword">public</strong>
org.apache.commons.rdf.api.Literal createLiteral(<strong class="jxr_keyword">final</strong>
String lexicalForm, <strong class="jxr_keyword">final</strong> String languageTag)
 <a class="jxr_linenumber" name="L553" href="#L553">553</a>             <strong
class="jxr_keyword">throws</strong> IllegalArgumentException {
-<a class="jxr_linenumber" name="L554" href="#L554">554</a>         org.eclipse.rdf4j.model.Literal
lit = getValueFactory().createLiteral(lexicalForm, languageTag);
+<a class="jxr_linenumber" name="L554" href="#L554">554</a>         <strong
class="jxr_keyword">final</strong> org.eclipse.rdf4j.model.Literal lit = getValueFactory().createLiteral(lexicalForm,
languageTag);
 <a class="jxr_linenumber" name="L555" href="#L555">555</a>         <strong
class="jxr_keyword">return</strong> (org.apache.commons.rdf.api.Literal) asRDFTerm(lit);
 <a class="jxr_linenumber" name="L556" href="#L556">556</a>     }
 <a class="jxr_linenumber" name="L557" href="#L557">557</a> 
 <a class="jxr_linenumber" name="L558" href="#L558">558</a>     @Override
-<a class="jxr_linenumber" name="L559" href="#L559">559</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTriple.html">RDF4JTriple</a>
createTriple(<a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html">BlankNodeOrIRI</a>
subject, org.apache.commons.rdf.api.IRI predicate, <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html">RDFTerm</a>
object)
+<a class="jxr_linenumber" name="L559" href="#L559">559</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTriple.html">RDF4JTriple</a>
createTriple(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html">BlankNodeOrIRI</a>
subject, <strong class="jxr_keyword">final</strong> org.apache.commons.rdf.api.IRI
predicate, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html">RDFTerm</a>
object)
 <a class="jxr_linenumber" name="L560" href="#L560">560</a>             <strong
class="jxr_keyword">throws</strong> IllegalArgumentException {
 <a class="jxr_linenumber" name="L561" href="#L561">561</a>         <strong
class="jxr_keyword">final</strong> Statement statement = getValueFactory().createStatement(
 <a class="jxr_linenumber" name="L562" href="#L562">562</a>                 (org.eclipse.rdf4j.model.Resource)
asValue(subject), (org.eclipse.rdf4j.model.IRI) asValue(predicate),
@@ -573,8 +573,8 @@
 <a class="jxr_linenumber" name="L565" href="#L565">565</a>     }
 <a class="jxr_linenumber" name="L566" href="#L566">566</a> 
 <a class="jxr_linenumber" name="L567" href="#L567">567</a>     @Override
-<a class="jxr_linenumber" name="L568" href="#L568">568</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/api/Quad.html">Quad</a> createQuad(<a
href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html">BlankNodeOrIRI</a>
graphName, <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html">BlankNodeOrIRI</a>
subject, org.apache.commons.rdf.api.IRI predicate,
-<a class="jxr_linenumber" name="L569" href="#L569">569</a>             <a
href="../../../../../org/apache/commons/rdf/api/RDFTerm.html">RDFTerm</a> object)
<strong class="jxr_keyword">throws</strong> IllegalArgumentException {
+<a class="jxr_linenumber" name="L568" href="#L568">568</a>     <strong class="jxr_keyword">public</strong>
<a href="../../../../../org/apache/commons/rdf/api/Quad.html">Quad</a> createQuad(<strong
class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html">BlankNodeOrIRI</a>
graphName, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html">BlankNodeOrIRI</a>
subject, <strong class="jxr_keyword">final</strong> org.apache.commons.rdf.api.IRI
predicate,
+<a class="jxr_linenumber" name="L569" href="#L569">569</a>             <strong
class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html">RDFTerm</a>
object) <strong class="jxr_keyword">throws</strong> IllegalArgumentException {
 <a class="jxr_linenumber" name="L570" href="#L570">570</a>         <strong
class="jxr_keyword">final</strong> Statement statement = getValueFactory().createStatement(
 <a class="jxr_linenumber" name="L571" href="#L571">571</a>                 (org.eclipse.rdf4j.model.Resource)
asValue(subject), (org.eclipse.rdf4j.model.IRI) asValue(predicate),
 <a class="jxr_linenumber" name="L572" href="#L572">572</a>                 asValue(object),
(org.eclipse.rdf4j.model.Resource) asValue(graphName));
@@ -585,8 +585,8 @@
 <a class="jxr_linenumber" name="L577" href="#L577">577</a>         <strong
class="jxr_keyword">return</strong> valueFactory;
 <a class="jxr_linenumber" name="L578" href="#L578">578</a>     }
 <a class="jxr_linenumber" name="L579" href="#L579">579</a> 
-<a class="jxr_linenumber" name="L580" href="#L580">580</a>     <strong class="jxr_keyword">private</strong>
EnumSet&lt;Option&gt; optionSet(Option... options) {
-<a class="jxr_linenumber" name="L581" href="#L581">581</a>         EnumSet&lt;Option&gt;
opts = EnumSet.noneOf(Option.<strong class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="L580" href="#L580">580</a>     <strong class="jxr_keyword">private</strong>
EnumSet&lt;Option&gt; optionSet(<strong class="jxr_keyword">final</strong>
Option... options) {
+<a class="jxr_linenumber" name="L581" href="#L581">581</a>         <strong
class="jxr_keyword">final</strong> EnumSet&lt;Option&gt; opts = EnumSet.noneOf(Option.<strong
class="jxr_keyword">class</strong>);
 <a class="jxr_linenumber" name="L582" href="#L582">582</a>         opts.addAll(Arrays.asList(options));
 <a class="jxr_linenumber" name="L583" href="#L583">583</a>         <strong
class="jxr_keyword">return</strong> opts;
 <a class="jxr_linenumber" name="L584" href="#L584">584</a>     }




Mime
View raw message