commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1001193 [14/36] - in /websites/production/commonsrdf/content: ./ apidocs/ apidocs/org/apache/commons/rdf/rdf4j/ apidocs/org/apache/commons/rdf/rdf4j/class-use/ apidocs/org/apache/commons/rdf/rdf4j/experimental/ apidocs/org/apache/commons/r...
Date Wed, 16 Nov 2016 11:00:18 GMT
Added: websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JGraph.html
==============================================================================
--- websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JGraph.html (added)
+++ websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JGraph.html Wed Nov 16 11:00:15 2016
@@ -0,0 +1,229 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements. See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership. The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.commons.rdf.rdf4j;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import java.util.ConcurrentModificationException;<a name="line.20"></a>
+<span class="sourceLineNo">021</span>import java.util.Set;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import java.util.stream.Stream;<a name="line.22"></a>
+<span class="sourceLineNo">023</span><a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.commons.rdf.api.BlankNodeOrIRI;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.commons.rdf.api.Graph;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.apache.commons.rdf.api.IRI;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.apache.commons.rdf.api.RDFTerm;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.apache.commons.rdf.api.Triple;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.eclipse.rdf4j.model.Model;<a name="line.29"></a>
+<span class="sourceLineNo">030</span>import org.eclipse.rdf4j.repository.Repository;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>import org.apache.commons.rdf.rdf4j.RDF4J.Option;<a name="line.31"></a>
+<span class="sourceLineNo">032</span><a name="line.32"></a>
+<span class="sourceLineNo">033</span>/**<a name="line.33"></a>
+<span class="sourceLineNo">034</span> * Marker interface for RDF4J implementations of Graph.<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * <a name="line.35"></a>
+<span class="sourceLineNo">036</span> * @see RDF4J#createGraph()<a name="line.36"></a>
+<span class="sourceLineNo">037</span> * @see RDF4J#asGraph(Model)<a name="line.37"></a>
+<span class="sourceLineNo">038</span> * @see RDF4J#asGraph(Repository, Option...)<a name="line.38"></a>
+<span class="sourceLineNo">039</span> * @see RDF4J#asGraphUnion(Repository, Option...)<a name="line.39"></a>
+<span class="sourceLineNo">040</span> * @see RDF4JDataset#getGraph()<a name="line.40"></a>
+<span class="sourceLineNo">041</span> * @see RDF4JDataset#getGraph(BlankNodeOrIRI)<a name="line.41"></a>
+<span class="sourceLineNo">042</span> */<a name="line.42"></a>
+<span class="sourceLineNo">043</span>public interface RDF4JGraph extends Graph, RDF4JGraphLike&lt;Triple&gt; {<a name="line.43"></a>
+<span class="sourceLineNo">044</span><a name="line.44"></a>
+<span class="sourceLineNo">045</span>    /**<a name="line.45"></a>
+<span class="sourceLineNo">046</span>     * Return a copy of the context mask as a {@link Set} of<a name="line.46"></a>
+<span class="sourceLineNo">047</span>     * {@link RDF4JBlankNodeOrIRI} graph names.<a name="line.47"></a>
+<span class="sourceLineNo">048</span>     * &lt;p&gt;<a name="line.48"></a>
+<span class="sourceLineNo">049</span>     * If the set is not {@link Set#isEmpty()}, the mask determines which<a name="line.49"></a>
+<span class="sourceLineNo">050</span>     * &lt;em&gt;contexts&lt;/em&gt; in the corresponding RDF4J {@link Model} or<a name="line.50"></a>
+<span class="sourceLineNo">051</span>     * {@link Repository} that this graph reflect. Modifications to the graph<a name="line.51"></a>
+<span class="sourceLineNo">052</span>     * (e.g. {@link #add(Triple)} will be performed for all the specified<a name="line.52"></a>
+<span class="sourceLineNo">053</span>     * contexts, while retrieval (e.g. {@link #contains(Triple)}) will succeed<a name="line.53"></a>
+<span class="sourceLineNo">054</span>     * if the triple is in at least one of the specified contexts.<a name="line.54"></a>
+<span class="sourceLineNo">055</span>     * &lt;p&gt;<a name="line.55"></a>
+<span class="sourceLineNo">056</span>     * The context mask array may contain &lt;code&gt;null&lt;/code&gt;, indicating the<a name="line.56"></a>
+<span class="sourceLineNo">057</span>     * default context (the &lt;em&gt;default graph&lt;/em&gt; in RDF datasets).<a name="line.57"></a>
+<span class="sourceLineNo">058</span>     * &lt;p&gt;<a name="line.58"></a>
+<span class="sourceLineNo">059</span>     * If the context mask is {@link Set#isEmpty()}, then this is a &lt;em&gt;union<a name="line.59"></a>
+<span class="sourceLineNo">060</span>     * graph&lt;/em&gt; which triples reflect statements in any contexts. Triples<a name="line.60"></a>
+<span class="sourceLineNo">061</span>     * added to the graph will be added in the default context, e.g. equivalent<a name="line.61"></a>
+<span class="sourceLineNo">062</span>     * to &lt;code&gt;new Resource[1]{null}&lt;/code&gt;) in RDF4J.<a name="line.62"></a>
+<span class="sourceLineNo">063</span>     * &lt;p&gt;<a name="line.63"></a>
+<span class="sourceLineNo">064</span>     * Note that the context mask itself cannot be &lt;code&gt;null&lt;/code&gt;.<a name="line.64"></a>
+<span class="sourceLineNo">065</span>     * &lt;p&gt;<a name="line.65"></a>
+<span class="sourceLineNo">066</span>     * The returned set is an immutable copy; to specify a different mask, use<a name="line.66"></a>
+<span class="sourceLineNo">067</span>     * {@link RDF4J#asGraph(Repository, Set, Option...)}<a name="line.67"></a>
+<span class="sourceLineNo">068</span>     *<a name="line.68"></a>
+<span class="sourceLineNo">069</span>     * @return The context mask as a set of {@link BlankNodeOrIRI} graph names,<a name="line.69"></a>
+<span class="sourceLineNo">070</span>     *         which may contain the value &lt;code&gt;null&lt;/code&gt;.<a name="line.70"></a>
+<span class="sourceLineNo">071</span>     */<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    public Set&lt;RDF4JBlankNodeOrIRI&gt; getContextMask();<a name="line.72"></a>
+<span class="sourceLineNo">073</span><a name="line.73"></a>
+<span class="sourceLineNo">074</span>    /**<a name="line.74"></a>
+<span class="sourceLineNo">075</span>     * {@inheritDoc}<a name="line.75"></a>
+<span class="sourceLineNo">076</span>     * &lt;p&gt;<a name="line.76"></a>
+<span class="sourceLineNo">077</span>     * Note that for graphs backed by a repository ({@link #asRepository()} is<a name="line.77"></a>
+<span class="sourceLineNo">078</span>     * present), the stream &lt;strong&gt;must be closed&lt;/strong&gt; with<a name="line.78"></a>
+<span class="sourceLineNo">079</span>     * {@link Stream#close()}.<a name="line.79"></a>
+<span class="sourceLineNo">080</span>     * &lt;p&gt;<a name="line.80"></a>
+<span class="sourceLineNo">081</span>     * This can generally achieved using a try-with-resources block, e.g.:<a name="line.81"></a>
+<span class="sourceLineNo">082</span>     * <a name="line.82"></a>
+<span class="sourceLineNo">083</span>     * &lt;pre&gt;<a name="line.83"></a>
+<span class="sourceLineNo">084</span>     * int subjects;<a name="line.84"></a>
+<span class="sourceLineNo">085</span>     * try (Stream&amp;lt;RDF4JTriple&amp;gt; s : graph.stream()) {<a name="line.85"></a>
+<span class="sourceLineNo">086</span>     *   subjects = s.map(RDF4JTriple::getSubject).distinct().count()<a name="line.86"></a>
+<span class="sourceLineNo">087</span>     * }<a name="line.87"></a>
+<span class="sourceLineNo">088</span>     * &lt;/pre&gt;<a name="line.88"></a>
+<span class="sourceLineNo">089</span>     */<a name="line.89"></a>
+<span class="sourceLineNo">090</span>    @Override<a name="line.90"></a>
+<span class="sourceLineNo">091</span>    Stream&lt;RDF4JTriple&gt; stream();<a name="line.91"></a>
+<span class="sourceLineNo">092</span><a name="line.92"></a>
+<span class="sourceLineNo">093</span>    /**<a name="line.93"></a>
+<span class="sourceLineNo">094</span>     * {@inheritDoc}<a name="line.94"></a>
+<span class="sourceLineNo">095</span>     * &lt;p&gt;<a name="line.95"></a>
+<span class="sourceLineNo">096</span>     * Note that for graphs backed by a repository ({@link #asRepository()} is<a name="line.96"></a>
+<span class="sourceLineNo">097</span>     * present), the stream &lt;strong&gt;must be closed&lt;/strong&gt; with<a name="line.97"></a>
+<span class="sourceLineNo">098</span>     * {@link Stream#close()}.<a name="line.98"></a>
+<span class="sourceLineNo">099</span>     * &lt;p&gt;<a name="line.99"></a>
+<span class="sourceLineNo">100</span>     * This can generally achieved using a try-with-resources block, e.g.:<a name="line.100"></a>
+<span class="sourceLineNo">101</span>     * <a name="line.101"></a>
+<span class="sourceLineNo">102</span>     * &lt;pre&gt;<a name="line.102"></a>
+<span class="sourceLineNo">103</span>     * int subjects;<a name="line.103"></a>
+<span class="sourceLineNo">104</span>     * try (Stream&amp;lt;RDF4JTriple&amp;gt; s : graph.stream(s,p,o)) {<a name="line.104"></a>
+<span class="sourceLineNo">105</span>     *   subjects = s.map(RDF4JTriple::getSubject).distinct().count()<a name="line.105"></a>
+<span class="sourceLineNo">106</span>     * }<a name="line.106"></a>
+<span class="sourceLineNo">107</span>     * &lt;/pre&gt;<a name="line.107"></a>
+<span class="sourceLineNo">108</span>     */<a name="line.108"></a>
+<span class="sourceLineNo">109</span>    @Override<a name="line.109"></a>
+<span class="sourceLineNo">110</span>    Stream&lt;RDF4JTriple&gt; stream(BlankNodeOrIRI subject, IRI predicate, RDFTerm object);<a name="line.110"></a>
+<span class="sourceLineNo">111</span><a name="line.111"></a>
+<span class="sourceLineNo">112</span>    /**<a name="line.112"></a>
+<span class="sourceLineNo">113</span>     * {@inheritDoc}<a name="line.113"></a>
+<span class="sourceLineNo">114</span>     * &lt;p&gt;<a name="line.114"></a>
+<span class="sourceLineNo">115</span>     * Note that for graphs backed by a repository ({@link #asRepository()} is<a name="line.115"></a>
+<span class="sourceLineNo">116</span>     * present), the iterable &lt;strong&gt;must be closed&lt;/strong&gt; with<a name="line.116"></a>
+<span class="sourceLineNo">117</span>     * {@link ClosableIterable#close()}.<a name="line.117"></a>
+<span class="sourceLineNo">118</span>     * &lt;p&gt;<a name="line.118"></a>
+<span class="sourceLineNo">119</span>     * This can generally achieved using a try-with-resources block, e.g.:<a name="line.119"></a>
+<span class="sourceLineNo">120</span>     * <a name="line.120"></a>
+<span class="sourceLineNo">121</span>     * &lt;pre&gt;<a name="line.121"></a>
+<span class="sourceLineNo">122</span>     * try (ClosableIterable&amp;lt;Triple&amp;gt; s : graph.iterate()) {<a name="line.122"></a>
+<span class="sourceLineNo">123</span>     *   for (Triple t : triples) {<a name="line.123"></a>
+<span class="sourceLineNo">124</span>     *       return t; // OK to terminate for-loop early<a name="line.124"></a>
+<span class="sourceLineNo">125</span>     *   }<a name="line.125"></a>
+<span class="sourceLineNo">126</span>     * }<a name="line.126"></a>
+<span class="sourceLineNo">127</span>     * &lt;/pre&gt;<a name="line.127"></a>
+<span class="sourceLineNo">128</span>     * <a name="line.128"></a>
+<span class="sourceLineNo">129</span>     * If you don't use a try-with-resources block, the iterator will attempt to<a name="line.129"></a>
+<span class="sourceLineNo">130</span>     * close the ClosableIterable when reaching the end of the iteration.<a name="line.130"></a>
+<span class="sourceLineNo">131</span>     */<a name="line.131"></a>
+<span class="sourceLineNo">132</span>    @Override<a name="line.132"></a>
+<span class="sourceLineNo">133</span>    ClosableIterable&lt;Triple&gt; iterate() throws ConcurrentModificationException, IllegalStateException;<a name="line.133"></a>
+<span class="sourceLineNo">134</span><a name="line.134"></a>
+<span class="sourceLineNo">135</span>    /**<a name="line.135"></a>
+<span class="sourceLineNo">136</span>     * {@inheritDoc}<a name="line.136"></a>
+<span class="sourceLineNo">137</span>     * &lt;p&gt;<a name="line.137"></a>
+<span class="sourceLineNo">138</span>     * Note that for graphs backed by a repository ({@link #asRepository()} is<a name="line.138"></a>
+<span class="sourceLineNo">139</span>     * present), the iterable &lt;strong&gt;must be closed&lt;/strong&gt; with<a name="line.139"></a>
+<span class="sourceLineNo">140</span>     * {@link ClosableIterable#close()}.<a name="line.140"></a>
+<span class="sourceLineNo">141</span>     * &lt;p&gt;<a name="line.141"></a>
+<span class="sourceLineNo">142</span>     * This can generally achieved using a try-with-resources block, e.g.:<a name="line.142"></a>
+<span class="sourceLineNo">143</span>     * <a name="line.143"></a>
+<span class="sourceLineNo">144</span>     * &lt;pre&gt;<a name="line.144"></a>
+<span class="sourceLineNo">145</span>     * try (ClosableIterable&amp;lt;Triple&amp;gt; s : graph.iterate(s,p,o)) {<a name="line.145"></a>
+<span class="sourceLineNo">146</span>     *   for (Triple t : triples) {<a name="line.146"></a>
+<span class="sourceLineNo">147</span>     *       return t; // OK to terminate for-loop early<a name="line.147"></a>
+<span class="sourceLineNo">148</span>     *   }<a name="line.148"></a>
+<span class="sourceLineNo">149</span>     * }<a name="line.149"></a>
+<span class="sourceLineNo">150</span>     * &lt;/pre&gt;<a name="line.150"></a>
+<span class="sourceLineNo">151</span>     * <a name="line.151"></a>
+<span class="sourceLineNo">152</span>     * If you don't use a try-with-resources block, the iterator will attempt to<a name="line.152"></a>
+<span class="sourceLineNo">153</span>     * close the ClosableIterable when reaching the end of the iteration.<a name="line.153"></a>
+<span class="sourceLineNo">154</span>     */<a name="line.154"></a>
+<span class="sourceLineNo">155</span>    @Override<a name="line.155"></a>
+<span class="sourceLineNo">156</span>    ClosableIterable&lt;Triple&gt; iterate(BlankNodeOrIRI subject, IRI predicate, RDFTerm object);<a name="line.156"></a>
+<span class="sourceLineNo">157</span>}<a name="line.157"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JGraphLike.html
==============================================================================
--- websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JGraphLike.html (added)
+++ websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JGraphLike.html Wed Nov 16 11:00:15 2016
@@ -0,0 +1,138 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements. See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership. The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.commons.rdf.rdf4j;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import java.util.Optional;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.apache.commons.rdf.api.GraphLike;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import org.apache.commons.rdf.api.TripleLike;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.eclipse.rdf4j.model.Model;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.eclipse.rdf4j.repository.Repository;<a name="line.25"></a>
+<span class="sourceLineNo">026</span><a name="line.26"></a>
+<span class="sourceLineNo">027</span>/**<a name="line.27"></a>
+<span class="sourceLineNo">028</span> * Marker interface for RDF4J implementations of GraphLike.<a name="line.28"></a>
+<span class="sourceLineNo">029</span> * &lt;p&gt;<a name="line.29"></a>
+<span class="sourceLineNo">030</span> * This is a common interface for {@link RDF4JGraph} and {@link RDF4JDataset}<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * which provides access to the underlying RDF4J {@link Model} and/or<a name="line.31"></a>
+<span class="sourceLineNo">032</span> * {@link Repository}.<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * &lt;p&gt;<a name="line.33"></a>
+<span class="sourceLineNo">034</span> * At least one of {@link #asModel()} or {@link #asRepository()} will always be<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * {@link Optional#isPresent()}.<a name="line.35"></a>
+<span class="sourceLineNo">036</span> * <a name="line.36"></a>
+<span class="sourceLineNo">037</span> * @see RDF4JDataset<a name="line.37"></a>
+<span class="sourceLineNo">038</span> * @see RDF4JGraph<a name="line.38"></a>
+<span class="sourceLineNo">039</span> */<a name="line.39"></a>
+<span class="sourceLineNo">040</span>public interface RDF4JGraphLike&lt;T extends TripleLike&gt; extends GraphLike&lt;T&gt;, AutoCloseable {<a name="line.40"></a>
+<span class="sourceLineNo">041</span><a name="line.41"></a>
+<span class="sourceLineNo">042</span>    /**<a name="line.42"></a>
+<span class="sourceLineNo">043</span>     * Return the corresponding RDF4J {@link Model}, if present.<a name="line.43"></a>
+<span class="sourceLineNo">044</span>     * &lt;p&gt;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>     * The return value is {@link Optional#isPresent()} if this is backed by a<a name="line.45"></a>
+<span class="sourceLineNo">046</span>     * Model.<a name="line.46"></a>
+<span class="sourceLineNo">047</span>     * &lt;p&gt;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>     * Changes to the Model are reflected in both directions.<a name="line.48"></a>
+<span class="sourceLineNo">049</span>     * <a name="line.49"></a>
+<span class="sourceLineNo">050</span>     * @return The corresponding RDF4J Model.<a name="line.50"></a>
+<span class="sourceLineNo">051</span>     */<a name="line.51"></a>
+<span class="sourceLineNo">052</span>    public Optional&lt;Model&gt; asModel();<a name="line.52"></a>
+<span class="sourceLineNo">053</span><a name="line.53"></a>
+<span class="sourceLineNo">054</span>    /**<a name="line.54"></a>
+<span class="sourceLineNo">055</span>     * Return the corresponding RDF4J {@link Repository}, if present.<a name="line.55"></a>
+<span class="sourceLineNo">056</span>     * &lt;p&gt;<a name="line.56"></a>
+<span class="sourceLineNo">057</span>     * The return value is {@link Optional#isPresent()} if this is backed by a<a name="line.57"></a>
+<span class="sourceLineNo">058</span>     * Repository.<a name="line.58"></a>
+<span class="sourceLineNo">059</span>     * &lt;p&gt;<a name="line.59"></a>
+<span class="sourceLineNo">060</span>     * Changes to the Repository are reflected in both directions.<a name="line.60"></a>
+<span class="sourceLineNo">061</span>     * <a name="line.61"></a>
+<span class="sourceLineNo">062</span>     * @return The corresponding RDF4J Repository.<a name="line.62"></a>
+<span class="sourceLineNo">063</span>     */<a name="line.63"></a>
+<span class="sourceLineNo">064</span>    public Optional&lt;Repository&gt; asRepository();<a name="line.64"></a>
+<span class="sourceLineNo">065</span><a name="line.65"></a>
+<span class="sourceLineNo">066</span>}<a name="line.66"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JIRI.html
==============================================================================
--- websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JIRI.html (added)
+++ websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JIRI.html Wed Nov 16 11:00:15 2016
@@ -0,0 +1,106 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements. See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership. The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.commons.rdf.rdf4j;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>/**<a name="line.20"></a>
+<span class="sourceLineNo">021</span> * Marker interface for RDF4J implementations of Commons RDF<a name="line.21"></a>
+<span class="sourceLineNo">022</span> * {@link org.apache.commons.rdf.api.IRI}.<a name="line.22"></a>
+<span class="sourceLineNo">023</span> * &lt;p&gt;<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * The underlying RDF4J {@link org.eclipse.rdf4j.model.IRI} instance can be<a name="line.24"></a>
+<span class="sourceLineNo">025</span> * retrieved with {@link #asValue()}.<a name="line.25"></a>
+<span class="sourceLineNo">026</span> * <a name="line.26"></a>
+<span class="sourceLineNo">027</span> * @see RDF4J#createIRI(String)<a name="line.27"></a>
+<span class="sourceLineNo">028</span> */<a name="line.28"></a>
+<span class="sourceLineNo">029</span>public interface RDF4JIRI extends RDF4JBlankNodeOrIRI, org.apache.commons.rdf.api.IRI {<a name="line.29"></a>
+<span class="sourceLineNo">030</span><a name="line.30"></a>
+<span class="sourceLineNo">031</span>    @Override<a name="line.31"></a>
+<span class="sourceLineNo">032</span>    org.eclipse.rdf4j.model.IRI asValue();<a name="line.32"></a>
+<span class="sourceLineNo">033</span><a name="line.33"></a>
+<span class="sourceLineNo">034</span>}<a name="line.34"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JLiteral.html
==============================================================================
--- websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JLiteral.html (added)
+++ websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JLiteral.html Wed Nov 16 11:00:15 2016
@@ -0,0 +1,102 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements. See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership. The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.commons.rdf.rdf4j;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>/**<a name="line.20"></a>
+<span class="sourceLineNo">021</span> * Marker interface for RDF4J implementations of Commons RDF<a name="line.21"></a>
+<span class="sourceLineNo">022</span> * {@link org.apache.commons.rdf.api.Literal}.<a name="line.22"></a>
+<span class="sourceLineNo">023</span> * &lt;p&gt;<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * The underlying RDF4J {@link org.eclipse.rdf4j.model.Literal} instance can be<a name="line.24"></a>
+<span class="sourceLineNo">025</span> * retrieved with {@link #asValue()}.<a name="line.25"></a>
+<span class="sourceLineNo">026</span> * <a name="line.26"></a>
+<span class="sourceLineNo">027</span> * @see RDF4J#createLiteral(String)<a name="line.27"></a>
+<span class="sourceLineNo">028</span> */<a name="line.28"></a>
+<span class="sourceLineNo">029</span>public interface RDF4JLiteral extends RDF4JTerm, org.apache.commons.rdf.api.Literal {<a name="line.29"></a>
+<span class="sourceLineNo">030</span>}<a name="line.30"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JQuad.html
==============================================================================
--- websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JQuad.html (added)
+++ websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JQuad.html Wed Nov 16 11:00:15 2016
@@ -0,0 +1,103 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements. See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership. The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.commons.rdf.rdf4j;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import org.apache.commons.rdf.api.Quad;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>/**<a name="line.22"></a>
+<span class="sourceLineNo">023</span> * Marker interface for RDF4J implementations of Quad.<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * <a name="line.24"></a>
+<span class="sourceLineNo">025</span> * @see RDF4J#createQuad(org.apache.commons.rdf.api.BlankNodeOrIRI,<a name="line.25"></a>
+<span class="sourceLineNo">026</span> *      org.apache.commons.rdf.api.BlankNodeOrIRI,<a name="line.26"></a>
+<span class="sourceLineNo">027</span> *      org.apache.commons.rdf.api.IRI, org.apache.commons.rdf.api.RDFTerm)<a name="line.27"></a>
+<span class="sourceLineNo">028</span> */<a name="line.28"></a>
+<span class="sourceLineNo">029</span>public interface RDF4JQuad extends Quad, RDF4JTripleLike {<a name="line.29"></a>
+<span class="sourceLineNo">030</span><a name="line.30"></a>
+<span class="sourceLineNo">031</span>}<a name="line.31"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JTerm.html
==============================================================================
--- websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JTerm.html (added)
+++ websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JTerm.html Wed Nov 16 11:00:15 2016
@@ -0,0 +1,111 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements. See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership. The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.commons.rdf.rdf4j;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import org.apache.commons.rdf.api.RDFTerm;<a name="line.20"></a>
+<span class="sourceLineNo">021</span>import org.eclipse.rdf4j.model.BNode;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.eclipse.rdf4j.model.IRI;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import org.eclipse.rdf4j.model.Literal;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.eclipse.rdf4j.model.Value;<a name="line.24"></a>
+<span class="sourceLineNo">025</span><a name="line.25"></a>
+<span class="sourceLineNo">026</span>/**<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * Marker interface for RDF4J implementations of RDFTerm.<a name="line.27"></a>
+<span class="sourceLineNo">028</span> * <a name="line.28"></a>
+<span class="sourceLineNo">029</span> */<a name="line.29"></a>
+<span class="sourceLineNo">030</span>public interface RDF4JTerm extends RDFTerm {<a name="line.30"></a>
+<span class="sourceLineNo">031</span><a name="line.31"></a>
+<span class="sourceLineNo">032</span>    /**<a name="line.32"></a>
+<span class="sourceLineNo">033</span>     * Return the RDF4J {@link Value} that this RDFTerm represents.<a name="line.33"></a>
+<span class="sourceLineNo">034</span>     * <a name="line.34"></a>
+<span class="sourceLineNo">035</span>     * @return The wrapped {@link Value} (e.g. a {@link Literal}, {@link IRI} or<a name="line.35"></a>
+<span class="sourceLineNo">036</span>     *         {@link BNode}.<a name="line.36"></a>
+<span class="sourceLineNo">037</span>     */<a name="line.37"></a>
+<span class="sourceLineNo">038</span>    public Value asValue();<a name="line.38"></a>
+<span class="sourceLineNo">039</span>}<a name="line.39"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JTriple.html
==============================================================================
--- websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JTriple.html (added)
+++ websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JTriple.html Wed Nov 16 11:00:15 2016
@@ -0,0 +1,102 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements. See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership. The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.commons.rdf.rdf4j;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import org.apache.commons.rdf.api.Triple;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>/**<a name="line.22"></a>
+<span class="sourceLineNo">023</span> * Marker interface for RDF4J implementations of Triple.<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * <a name="line.24"></a>
+<span class="sourceLineNo">025</span> * @see RDF4J#createTriple(org.apache.commons.rdf.api.BlankNodeOrIRI,<a name="line.25"></a>
+<span class="sourceLineNo">026</span> *      org.apache.commons.rdf.api.IRI, org.apache.commons.rdf.api.RDFTerm)<a name="line.26"></a>
+<span class="sourceLineNo">027</span> */<a name="line.27"></a>
+<span class="sourceLineNo">028</span>public interface RDF4JTriple extends Triple, RDF4JTripleLike {<a name="line.28"></a>
+<span class="sourceLineNo">029</span><a name="line.29"></a>
+<span class="sourceLineNo">030</span>}<a name="line.30"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JTripleLike.html
==============================================================================
--- websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JTripleLike.html (added)
+++ websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/RDF4JTripleLike.html Wed Nov 16 11:00:15 2016
@@ -0,0 +1,115 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements. See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership. The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.commons.rdf.rdf4j;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import org.apache.commons.rdf.api.TripleLike;<a name="line.20"></a>
+<span class="sourceLineNo">021</span>import org.eclipse.rdf4j.model.Statement;<a name="line.21"></a>
+<span class="sourceLineNo">022</span><a name="line.22"></a>
+<span class="sourceLineNo">023</span>/**<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * Marker interface for RDF4J implementations of {@link TripleLike} statements.<a name="line.24"></a>
+<span class="sourceLineNo">025</span> * &lt;p&gt;<a name="line.25"></a>
+<span class="sourceLineNo">026</span> * This interface is in common with the more specific {@link RDF4JTriple} or<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * {@link RDF4JQuad}.<a name="line.27"></a>
+<span class="sourceLineNo">028</span> * &lt;p&gt;<a name="line.28"></a>
+<span class="sourceLineNo">029</span> * This is backed by a {@link Statement} retrievable with<a name="line.29"></a>
+<span class="sourceLineNo">030</span> * {@link #asStatement()}.<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * <a name="line.31"></a>
+<span class="sourceLineNo">032</span> * @see RDF4JTriple<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * @see RDF4JQuad<a name="line.33"></a>
+<span class="sourceLineNo">034</span> */<a name="line.34"></a>
+<span class="sourceLineNo">035</span>public interface RDF4JTripleLike extends TripleLike {<a name="line.35"></a>
+<span class="sourceLineNo">036</span><a name="line.36"></a>
+<span class="sourceLineNo">037</span>    /**<a name="line.37"></a>
+<span class="sourceLineNo">038</span>     * Return the corresponding RDF4J {@link Statement}.<a name="line.38"></a>
+<span class="sourceLineNo">039</span>     * <a name="line.39"></a>
+<span class="sourceLineNo">040</span>     * @return The corresponding RDF4J Statement.<a name="line.40"></a>
+<span class="sourceLineNo">041</span>     */<a name="line.41"></a>
+<span class="sourceLineNo">042</span>    public Statement asStatement();<a name="line.42"></a>
+<span class="sourceLineNo">043</span>}<a name="line.43"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/experimental/RDF4JParser.html
==============================================================================
--- websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/experimental/RDF4JParser.html (added)
+++ websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/rdf4j/experimental/RDF4JParser.html Wed Nov 16 11:00:15 2016
@@ -0,0 +1,308 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements. See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership. The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.commons.rdf.rdf4j.experimental;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import java.io.IOException;<a name="line.20"></a>
+<span class="sourceLineNo">021</span>import java.io.InputStream;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import java.net.MalformedURLException;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import java.net.URL;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import java.nio.file.Files;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import java.nio.file.Path;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import java.util.Optional;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import java.util.function.Consumer;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import java.util.stream.Stream;<a name="line.28"></a>
+<span class="sourceLineNo">029</span><a name="line.29"></a>
+<span class="sourceLineNo">030</span>import org.apache.commons.rdf.api.IRI;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>import org.apache.commons.rdf.api.Quad;<a name="line.31"></a>
+<span class="sourceLineNo">032</span>import org.apache.commons.rdf.api.RDFSyntax;<a name="line.32"></a>
+<span class="sourceLineNo">033</span>import org.apache.commons.rdf.experimental.RDFParser;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>import org.apache.commons.rdf.rdf4j.RDF4JBlankNodeOrIRI;<a name="line.34"></a>
+<span class="sourceLineNo">035</span>import org.apache.commons.rdf.rdf4j.RDF4JDataset;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import org.apache.commons.rdf.rdf4j.RDF4JGraph;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import org.apache.commons.rdf.rdf4j.RDF4J;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import org.apache.commons.rdf.simple.experimental.AbstractRDFParser;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>import org.eclipse.rdf4j.model.Model;<a name="line.39"></a>
+<span class="sourceLineNo">040</span>import org.eclipse.rdf4j.model.Resource;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>import org.eclipse.rdf4j.repository.util.RDFInserter;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import org.eclipse.rdf4j.repository.util.RDFLoader;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import org.eclipse.rdf4j.rio.ParserConfig;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import org.eclipse.rdf4j.rio.RDFFormat;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import org.eclipse.rdf4j.rio.RDFHandler;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import org.eclipse.rdf4j.rio.RDFHandlerException;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import org.eclipse.rdf4j.rio.Rio;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>import org.eclipse.rdf4j.rio.helpers.AbstractRDFHandler;<a name="line.48"></a>
+<span class="sourceLineNo">049</span><a name="line.49"></a>
+<span class="sourceLineNo">050</span>/**<a name="line.50"></a>
+<span class="sourceLineNo">051</span> * RDF4J-based parser.<a name="line.51"></a>
+<span class="sourceLineNo">052</span> * &lt;p&gt;<a name="line.52"></a>
+<span class="sourceLineNo">053</span> * This can handle the RDF syntaxes {@link RDFSyntax#JSONLD},<a name="line.53"></a>
+<span class="sourceLineNo">054</span> * {@link RDFSyntax#NQUADS}, {@link RDFSyntax#NTRIPLES},<a name="line.54"></a>
+<span class="sourceLineNo">055</span> * {@link RDFSyntax#RDFXML}, {@link RDFSyntax#TRIG} and {@link RDFSyntax#TURTLE}<a name="line.55"></a>
+<span class="sourceLineNo">056</span> * - additional syntaxes can be supported by including the corresponding<a name="line.56"></a>
+<span class="sourceLineNo">057</span> * &lt;em&gt;rdf4j-rio-*&lt;/em&gt; module on the classpath.<a name="line.57"></a>
+<span class="sourceLineNo">058</span> *<a name="line.58"></a>
+<span class="sourceLineNo">059</span> */<a name="line.59"></a>
+<span class="sourceLineNo">060</span>public class RDF4JParser extends AbstractRDFParser&lt;RDF4JParser&gt; implements RDFParser {<a name="line.60"></a>
+<span class="sourceLineNo">061</span><a name="line.61"></a>
+<span class="sourceLineNo">062</span>    private final class AddToQuadConsumer extends AbstractRDFHandler {<a name="line.62"></a>
+<span class="sourceLineNo">063</span>        private final Consumer&lt;Quad&gt; quadTarget;<a name="line.63"></a>
+<span class="sourceLineNo">064</span><a name="line.64"></a>
+<span class="sourceLineNo">065</span>        private AddToQuadConsumer(Consumer&lt;Quad&gt; quadTarget) {<a name="line.65"></a>
+<span class="sourceLineNo">066</span>            this.quadTarget = quadTarget;<a name="line.66"></a>
+<span class="sourceLineNo">067</span>        }<a name="line.67"></a>
+<span class="sourceLineNo">068</span><a name="line.68"></a>
+<span class="sourceLineNo">069</span>        public void handleStatement(org.eclipse.rdf4j.model.Statement st)<a name="line.69"></a>
+<span class="sourceLineNo">070</span>                throws org.eclipse.rdf4j.rio.RDFHandlerException {<a name="line.70"></a>
+<span class="sourceLineNo">071</span>            // TODO: if getRdfTermFactory() is a non-rdf4j factory, should<a name="line.71"></a>
+<span class="sourceLineNo">072</span>            // we use factory.createQuad() instead?<a name="line.72"></a>
+<span class="sourceLineNo">073</span>            // Unsure what is the promise of setting getRdfTermFactory() --<a name="line.73"></a>
+<span class="sourceLineNo">074</span>            // does it go all the way down to creating BlankNode, IRI and<a name="line.74"></a>
+<span class="sourceLineNo">075</span>            // Literal?<a name="line.75"></a>
+<span class="sourceLineNo">076</span>            quadTarget.accept(rdf4jTermFactory.asQuad(st));<a name="line.76"></a>
+<span class="sourceLineNo">077</span>            // Performance note:<a name="line.77"></a>
+<span class="sourceLineNo">078</span>            // Graph/Quad.add should pick up again our<a name="line.78"></a>
+<span class="sourceLineNo">079</span>            // RDF4JGraphLike.asStatement()<a name="line.79"></a>
+<span class="sourceLineNo">080</span>            // and avoid double conversion.<a name="line.80"></a>
+<span class="sourceLineNo">081</span>            // Additionally the RDF4JQuad and RDF4JTriple implementations<a name="line.81"></a>
+<span class="sourceLineNo">082</span>            // are lazily converting subj/obj/pred/graph.s<a name="line.82"></a>
+<span class="sourceLineNo">083</span>        }<a name="line.83"></a>
+<span class="sourceLineNo">084</span>    }<a name="line.84"></a>
+<span class="sourceLineNo">085</span><a name="line.85"></a>
+<span class="sourceLineNo">086</span>    private final static class AddToModel extends AbstractRDFHandler {<a name="line.86"></a>
+<span class="sourceLineNo">087</span>        private final Model model;<a name="line.87"></a>
+<span class="sourceLineNo">088</span><a name="line.88"></a>
+<span class="sourceLineNo">089</span>        public AddToModel(Model model) {<a name="line.89"></a>
+<span class="sourceLineNo">090</span>            this.model = model;<a name="line.90"></a>
+<span class="sourceLineNo">091</span>        }<a name="line.91"></a>
+<span class="sourceLineNo">092</span><a name="line.92"></a>
+<span class="sourceLineNo">093</span>        public void handleStatement(org.eclipse.rdf4j.model.Statement st)<a name="line.93"></a>
+<span class="sourceLineNo">094</span>                throws org.eclipse.rdf4j.rio.RDFHandlerException {<a name="line.94"></a>
+<span class="sourceLineNo">095</span>            model.add(st);<a name="line.95"></a>
+<span class="sourceLineNo">096</span>        }<a name="line.96"></a>
+<span class="sourceLineNo">097</span><a name="line.97"></a>
+<span class="sourceLineNo">098</span>        @Override<a name="line.98"></a>
+<span class="sourceLineNo">099</span>        public void handleNamespace(String prefix, String uri) throws RDFHandlerException {<a name="line.99"></a>
+<span class="sourceLineNo">100</span>            model.setNamespace(prefix, uri);<a name="line.100"></a>
+<span class="sourceLineNo">101</span>        }<a name="line.101"></a>
+<span class="sourceLineNo">102</span>    }<a name="line.102"></a>
+<span class="sourceLineNo">103</span><a name="line.103"></a>
+<span class="sourceLineNo">104</span>    private RDF4J rdf4jTermFactory;<a name="line.104"></a>
+<span class="sourceLineNo">105</span>    private ParserConfig parserConfig = new ParserConfig();<a name="line.105"></a>
+<span class="sourceLineNo">106</span><a name="line.106"></a>
+<span class="sourceLineNo">107</span>    @Override<a name="line.107"></a>
+<span class="sourceLineNo">108</span>    protected RDF4J createRDFTermFactory() {<a name="line.108"></a>
+<span class="sourceLineNo">109</span>        return new RDF4J();<a name="line.109"></a>
+<span class="sourceLineNo">110</span>    }<a name="line.110"></a>
+<span class="sourceLineNo">111</span><a name="line.111"></a>
+<span class="sourceLineNo">112</span>    @Override<a name="line.112"></a>
+<span class="sourceLineNo">113</span>    protected RDF4JParser prepareForParsing() throws IOException, IllegalStateException {<a name="line.113"></a>
+<span class="sourceLineNo">114</span>        RDF4JParser c = super.prepareForParsing();<a name="line.114"></a>
+<span class="sourceLineNo">115</span>        // Ensure we have an RDF4J for conversion.<a name="line.115"></a>
+<span class="sourceLineNo">116</span>        // We'll make a new one if user has provided a non-RDF4J factory<a name="line.116"></a>
+<span class="sourceLineNo">117</span>        c.rdf4jTermFactory = (RDF4J) getRdfTermFactory().filter(RDF4J.class::isInstance)<a name="line.117"></a>
+<span class="sourceLineNo">118</span>                .orElseGet(c::createRDFTermFactory);<a name="line.118"></a>
+<span class="sourceLineNo">119</span>        return c;<a name="line.119"></a>
+<span class="sourceLineNo">120</span>    }<a name="line.120"></a>
+<span class="sourceLineNo">121</span><a name="line.121"></a>
+<span class="sourceLineNo">122</span>    @Override<a name="line.122"></a>
+<span class="sourceLineNo">123</span>    protected void parseSynchronusly() throws IOException {<a name="line.123"></a>
+<span class="sourceLineNo">124</span>        Optional&lt;RDFFormat&gt; formatByMimeType = getContentType().flatMap(Rio::getParserFormatForMIMEType);<a name="line.124"></a>
+<span class="sourceLineNo">125</span>        String base = getBase().map(IRI::getIRIString).orElse(null);<a name="line.125"></a>
+<span class="sourceLineNo">126</span><a name="line.126"></a>
+<span class="sourceLineNo">127</span>        ParserConfig parserConfig = getParserConfig();<a name="line.127"></a>
+<span class="sourceLineNo">128</span>        // TODO: Should we need to set anything?<a name="line.128"></a>
+<span class="sourceLineNo">129</span>        RDFLoader loader = new RDFLoader(parserConfig, rdf4jTermFactory.getValueFactory());<a name="line.129"></a>
+<span class="sourceLineNo">130</span>        RDFHandler rdfHandler = makeRDFHandler();<a name="line.130"></a>
+<span class="sourceLineNo">131</span>        if (getSourceFile().isPresent()) {<a name="line.131"></a>
+<span class="sourceLineNo">132</span>            // NOTE: While we could have used<a name="line.132"></a>
+<span class="sourceLineNo">133</span>            // loader.load(sourcePath.toFile()<a name="line.133"></a>
+<span class="sourceLineNo">134</span>            // if the path fs provider == FileSystems.getDefault(),<a name="line.134"></a>
+<span class="sourceLineNo">135</span>            // that RDFLoader method does not use absolute path<a name="line.135"></a>
+<span class="sourceLineNo">136</span>            // as the base URI, so to be consistent<a name="line.136"></a>
+<span class="sourceLineNo">137</span>            // we'll always do it with our own input stream<a name="line.137"></a>
+<span class="sourceLineNo">138</span>            //<a name="line.138"></a>
+<span class="sourceLineNo">139</span>            // That means we may have to guess format by extensions:<a name="line.139"></a>
+<span class="sourceLineNo">140</span>            Optional&lt;RDFFormat&gt; formatByFilename = getSourceFile().map(Path::getFileName).map(Path::toString)<a name="line.140"></a>
+<span class="sourceLineNo">141</span>                    .flatMap(Rio::getParserFormatForFileName);<a name="line.141"></a>
+<span class="sourceLineNo">142</span>            // TODO: for the excited.. what about the extension after following<a name="line.142"></a>
+<span class="sourceLineNo">143</span>            // symlinks?<a name="line.143"></a>
+<span class="sourceLineNo">144</span><a name="line.144"></a>
+<span class="sourceLineNo">145</span>            RDFFormat format = formatByMimeType.orElse(formatByFilename.orElse(null));<a name="line.145"></a>
+<span class="sourceLineNo">146</span>            try (InputStream in = Files.newInputStream(getSourceFile().get())) {<a name="line.146"></a>
+<span class="sourceLineNo">147</span>                loader.load(in, base, format, rdfHandler);<a name="line.147"></a>
+<span class="sourceLineNo">148</span>            }<a name="line.148"></a>
+<span class="sourceLineNo">149</span>        } else if (getSourceIri().isPresent()) {<a name="line.149"></a>
+<span class="sourceLineNo">150</span>            try {<a name="line.150"></a>
+<span class="sourceLineNo">151</span>                // TODO: Handle international IRIs properly<a name="line.151"></a>
+<span class="sourceLineNo">152</span>                // (Unicode support for for hostname, path and query)<a name="line.152"></a>
+<span class="sourceLineNo">153</span>                URL url = new URL(getSourceIri().get().getIRIString());<a name="line.153"></a>
+<span class="sourceLineNo">154</span>                // TODO: This probably does not support https:// -&gt; http://<a name="line.154"></a>
+<span class="sourceLineNo">155</span>                // redirections<a name="line.155"></a>
+<span class="sourceLineNo">156</span>                loader.load(url, base, formatByMimeType.orElse(null), makeRDFHandler());<a name="line.156"></a>
+<span class="sourceLineNo">157</span>            } catch (MalformedURLException ex) {<a name="line.157"></a>
+<span class="sourceLineNo">158</span>                throw new IOException("Can't handle source URL: " + getSourceIri().get(), ex);<a name="line.158"></a>
+<span class="sourceLineNo">159</span>            }<a name="line.159"></a>
+<span class="sourceLineNo">160</span>        }<a name="line.160"></a>
+<span class="sourceLineNo">161</span>        // must be getSourceInputStream then, this is guaranteed by<a name="line.161"></a>
+<span class="sourceLineNo">162</span>        // super.checkSource();<a name="line.162"></a>
+<span class="sourceLineNo">163</span>        loader.load(getSourceInputStream().get(), base, formatByMimeType.orElse(null), rdfHandler);<a name="line.163"></a>
+<span class="sourceLineNo">164</span>    }<a name="line.164"></a>
+<span class="sourceLineNo">165</span><a name="line.165"></a>
+<span class="sourceLineNo">166</span>    /**<a name="line.166"></a>
+<span class="sourceLineNo">167</span>     * Get the RDF4J {@link ParserConfig} to use.<a name="line.167"></a>
+<span class="sourceLineNo">168</span>     * &lt;p&gt;<a name="line.168"></a>
+<span class="sourceLineNo">169</span>     * If no parser config is set, the default configuration is provided.<a name="line.169"></a>
+<span class="sourceLineNo">170</span>     * &lt;p&gt;<a name="line.170"></a>
+<span class="sourceLineNo">171</span>     * &lt;strong&gt;Note:&lt;/strong&gt; The parser config is mutable - changes in the<a name="line.171"></a>
+<span class="sourceLineNo">172</span>     * returned config is reflected in this instance of the parser. To avoid<a name="line.172"></a>
+<span class="sourceLineNo">173</span>     * mutation, create a new {@link ParserConfig} and set<a name="line.173"></a>
+<span class="sourceLineNo">174</span>     * {@link #setParserConfig(ParserConfig)}.<a name="line.174"></a>
+<span class="sourceLineNo">175</span>     * <a name="line.175"></a>
+<span class="sourceLineNo">176</span>     * @return The RDF4J {@link ParserConfig}<a name="line.176"></a>
+<span class="sourceLineNo">177</span>     */<a name="line.177"></a>
+<span class="sourceLineNo">178</span>    public ParserConfig getParserConfig() {<a name="line.178"></a>
+<span class="sourceLineNo">179</span>        return parserConfig;<a name="line.179"></a>
+<span class="sourceLineNo">180</span>    }<a name="line.180"></a>
+<span class="sourceLineNo">181</span><a name="line.181"></a>
+<span class="sourceLineNo">182</span>    /**<a name="line.182"></a>
+<span class="sourceLineNo">183</span>     * Set an RDF4J {@link ParserConfig} to use<a name="line.183"></a>
+<span class="sourceLineNo">184</span>     * <a name="line.184"></a>
+<span class="sourceLineNo">185</span>     * @param parserConfig<a name="line.185"></a>
+<span class="sourceLineNo">186</span>     *            Parser configuration<a name="line.186"></a>
+<span class="sourceLineNo">187</span>     */<a name="line.187"></a>
+<span class="sourceLineNo">188</span>    public void setParserConfig(ParserConfig parserConfig) {<a name="line.188"></a>
+<span class="sourceLineNo">189</span>        this.parserConfig = parserConfig;<a name="line.189"></a>
+<span class="sourceLineNo">190</span>    }<a name="line.190"></a>
+<span class="sourceLineNo">191</span><a name="line.191"></a>
+<span class="sourceLineNo">192</span>    protected RDFHandler makeRDFHandler() {<a name="line.192"></a>
+<span class="sourceLineNo">193</span><a name="line.193"></a>
+<span class="sourceLineNo">194</span>        // TODO: Can we join the below DF4JDataset and RDF4JGraph cases<a name="line.194"></a>
+<span class="sourceLineNo">195</span>        // using RDF4JGraphLike&lt;TripleLike&lt;BlankNodeOrIRI,IRI,RDFTerm&gt;&gt;<a name="line.195"></a>
+<span class="sourceLineNo">196</span>        // or will that need tricky generics types?<a name="line.196"></a>
+<span class="sourceLineNo">197</span><a name="line.197"></a>
+<span class="sourceLineNo">198</span>        if (getTargetDataset().filter(RDF4JDataset.class::isInstance).isPresent()) {<a name="line.198"></a>
+<span class="sourceLineNo">199</span>            // One of us, we can add them as Statements directly<a name="line.199"></a>
+<span class="sourceLineNo">200</span>            RDF4JDataset dataset = (RDF4JDataset) getTargetDataset().get();<a name="line.200"></a>
+<span class="sourceLineNo">201</span>            if (dataset.asRepository().isPresent()) {<a name="line.201"></a>
+<span class="sourceLineNo">202</span>                return new RDFInserter(dataset.asRepository().get().getConnection());<a name="line.202"></a>
+<span class="sourceLineNo">203</span>            }<a name="line.203"></a>
+<span class="sourceLineNo">204</span>            if (dataset.asModel().isPresent()) {<a name="line.204"></a>
+<span class="sourceLineNo">205</span>                Model model = dataset.asModel().get();<a name="line.205"></a>
+<span class="sourceLineNo">206</span>                return new AddToModel(model);<a name="line.206"></a>
+<span class="sourceLineNo">207</span>            }<a name="line.207"></a>
+<span class="sourceLineNo">208</span>            // Not backed by Repository or Model?<a name="line.208"></a>
+<span class="sourceLineNo">209</span>            // Third-party RDF4JDataset subclass, so we'll fall through to the<a name="line.209"></a>
+<span class="sourceLineNo">210</span>            // getTarget() handling further down<a name="line.210"></a>
+<span class="sourceLineNo">211</span>        } else if (getTargetGraph().filter(RDF4JGraph.class::isInstance).isPresent()) {<a name="line.211"></a>
+<span class="sourceLineNo">212</span>            RDF4JGraph graph = (RDF4JGraph) getTargetGraph().get();<a name="line.212"></a>
+<span class="sourceLineNo">213</span><a name="line.213"></a>
+<span class="sourceLineNo">214</span>            if (graph.asRepository().isPresent()) {<a name="line.214"></a>
+<span class="sourceLineNo">215</span>                RDFInserter inserter = new RDFInserter(graph.asRepository().get().getConnection());<a name="line.215"></a>
+<span class="sourceLineNo">216</span>                if (!graph.getContextMask().isEmpty()) {<a name="line.216"></a>
+<span class="sourceLineNo">217</span>                    Stream&lt;RDF4JBlankNodeOrIRI&gt; b = graph.getContextMask().stream();<a name="line.217"></a>
+<span class="sourceLineNo">218</span>                    Stream&lt;Resource&gt; c = b.map(RDF4JBlankNodeOrIRI::asValue);<a name="line.218"></a>
+<span class="sourceLineNo">219</span>                    Resource[] contexts = c.toArray(Resource[]::new);<a name="line.219"></a>
+<span class="sourceLineNo">220</span>                    inserter.enforceContext(contexts);<a name="line.220"></a>
+<span class="sourceLineNo">221</span>                }<a name="line.221"></a>
+<span class="sourceLineNo">222</span>                return inserter;<a name="line.222"></a>
+<span class="sourceLineNo">223</span>            }<a name="line.223"></a>
+<span class="sourceLineNo">224</span>            if (graph.asModel().isPresent() &amp;&amp; graph.getContextMask().isEmpty()) {<a name="line.224"></a>
+<span class="sourceLineNo">225</span>                // the model accepts any quad<a name="line.225"></a>
+<span class="sourceLineNo">226</span>                Model model = graph.asModel().get();<a name="line.226"></a>
+<span class="sourceLineNo">227</span>                return new AddToModel(model);<a name="line.227"></a>
+<span class="sourceLineNo">228</span>            }<a name="line.228"></a>
+<span class="sourceLineNo">229</span>            // else - fall through<a name="line.229"></a>
+<span class="sourceLineNo">230</span>        }<a name="line.230"></a>
+<span class="sourceLineNo">231</span><a name="line.231"></a>
+<span class="sourceLineNo">232</span>        // Fall thorough: let target() consume our converted quads.<a name="line.232"></a>
+<span class="sourceLineNo">233</span>        return new AddToQuadConsumer(getTarget());<a name="line.233"></a>
+<span class="sourceLineNo">234</span>    }<a name="line.234"></a>
+<span class="sourceLineNo">235</span><a name="line.235"></a>
+<span class="sourceLineNo">236</span>}<a name="line.236"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file



Mime
View raw message