commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1001278 [14/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apach...
Date Thu, 17 Nov 2016 14:45:36 GMT
Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/Dataset.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/Dataset.html (added)
+++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/Dataset.html Thu Nov 17 14:45:34 2016
@@ -0,0 +1,426 @@
+<!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.api;<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.Iterator;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import java.util.Optional;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import java.util.stream.Stream;<a name="line.23"></a>
+<span class="sourceLineNo">024</span><a name="line.24"></a>
+<span class="sourceLineNo">025</span>/**<a name="line.25"></a>
+<span class="sourceLineNo">026</span> * An &lt;a href="http://www.w3.org/TR/rdf11-concepts/#section-rdf-dataset"&gt; RDF<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * 1.1 dataset&lt;/a&gt;, a set of RDF quads, as defined by<a name="line.27"></a>
+<span class="sourceLineNo">028</span> * &lt;a href="http://www.w3.org/TR/rdf11-concepts/" &gt;RDF-1.1 Concepts and Abstract<a name="line.28"></a>
+<span class="sourceLineNo">029</span> * Syntax&lt;/a&gt;, a W3C Recommendation published on 25 February 2014.<a name="line.29"></a>
+<span class="sourceLineNo">030</span> * <a name="line.30"></a>
+<span class="sourceLineNo">031</span> * @since 0.3.0-incubating<a name="line.31"></a>
+<span class="sourceLineNo">032</span> * @see RDF#createDataset()<a name="line.32"></a>
+<span class="sourceLineNo">033</span> */<a name="line.33"></a>
+<span class="sourceLineNo">034</span>public interface Dataset extends AutoCloseable, GraphLike&lt;Quad&gt; {<a name="line.34"></a>
+<span class="sourceLineNo">035</span><a name="line.35"></a>
+<span class="sourceLineNo">036</span>    /**<a name="line.36"></a>
+<span class="sourceLineNo">037</span>     * Add a quad to the dataset, possibly mapping any of the components of the<a name="line.37"></a>
+<span class="sourceLineNo">038</span>     * Quad to those supported by this dataset.<a name="line.38"></a>
+<span class="sourceLineNo">039</span>     *<a name="line.39"></a>
+<span class="sourceLineNo">040</span>     * @param quad<a name="line.40"></a>
+<span class="sourceLineNo">041</span>     *            The quad to add<a name="line.41"></a>
+<span class="sourceLineNo">042</span>     */<a name="line.42"></a>
+<span class="sourceLineNo">043</span>    @Override<a name="line.43"></a>
+<span class="sourceLineNo">044</span>    void add(Quad quad);<a name="line.44"></a>
+<span class="sourceLineNo">045</span><a name="line.45"></a>
+<span class="sourceLineNo">046</span>    /**<a name="line.46"></a>
+<span class="sourceLineNo">047</span>     * Add a quad to the dataset, possibly mapping any of the components to<a name="line.47"></a>
+<span class="sourceLineNo">048</span>     * those supported by this dataset.<a name="line.48"></a>
+<span class="sourceLineNo">049</span>     *<a name="line.49"></a>
+<span class="sourceLineNo">050</span>     * @param graphName<a name="line.50"></a>
+<span class="sourceLineNo">051</span>     *            The graph the quad belongs to, or &lt;code&gt;null&lt;/code&gt; for the<a name="line.51"></a>
+<span class="sourceLineNo">052</span>     *            default graph<a name="line.52"></a>
+<span class="sourceLineNo">053</span>     * @param subject<a name="line.53"></a>
+<span class="sourceLineNo">054</span>     *            The quad subject<a name="line.54"></a>
+<span class="sourceLineNo">055</span>     * @param predicate<a name="line.55"></a>
+<span class="sourceLineNo">056</span>     *            The quad predicate<a name="line.56"></a>
+<span class="sourceLineNo">057</span>     * @param object<a name="line.57"></a>
+<span class="sourceLineNo">058</span>     *            The quad object<a name="line.58"></a>
+<span class="sourceLineNo">059</span>     */<a name="line.59"></a>
+<span class="sourceLineNo">060</span>    void add(BlankNodeOrIRI graphName, BlankNodeOrIRI subject, IRI predicate, RDFTerm object);<a name="line.60"></a>
+<span class="sourceLineNo">061</span><a name="line.61"></a>
+<span class="sourceLineNo">062</span>    /**<a name="line.62"></a>
+<span class="sourceLineNo">063</span>     * Check if dataset contains quad.<a name="line.63"></a>
+<span class="sourceLineNo">064</span>     *<a name="line.64"></a>
+<span class="sourceLineNo">065</span>     * @param quad<a name="line.65"></a>
+<span class="sourceLineNo">066</span>     *            The quad to check.<a name="line.66"></a>
+<span class="sourceLineNo">067</span>     * @return True if the dataset contains the given Quad.<a name="line.67"></a>
+<span class="sourceLineNo">068</span>     */<a name="line.68"></a>
+<span class="sourceLineNo">069</span>    @Override<a name="line.69"></a>
+<span class="sourceLineNo">070</span>    boolean contains(Quad quad);<a name="line.70"></a>
+<span class="sourceLineNo">071</span><a name="line.71"></a>
+<span class="sourceLineNo">072</span>    /**<a name="line.72"></a>
+<span class="sourceLineNo">073</span>     * Check if dataset contains a pattern of quads.<a name="line.73"></a>
+<span class="sourceLineNo">074</span>     *<a name="line.74"></a>
+<span class="sourceLineNo">075</span>     * @param graphName<a name="line.75"></a>
+<span class="sourceLineNo">076</span>     *            The graph the quad belongs to, wrapped as an {@link Optional}<a name="line.76"></a>
+<span class="sourceLineNo">077</span>     *            (&lt;code&gt;null&lt;/code&gt; is a wildcard, {@link Optional#empty()} is<a name="line.77"></a>
+<span class="sourceLineNo">078</span>     *            the default graph)<a name="line.78"></a>
+<span class="sourceLineNo">079</span>     * @param subject<a name="line.79"></a>
+<span class="sourceLineNo">080</span>     *            The quad subject (&lt;code&gt;null&lt;/code&gt; is a wildcard)<a name="line.80"></a>
+<span class="sourceLineNo">081</span>     * @param predicate<a name="line.81"></a>
+<span class="sourceLineNo">082</span>     *            The quad predicate (&lt;code&gt;null&lt;/code&gt; is a wildcard)<a name="line.82"></a>
+<span class="sourceLineNo">083</span>     * @param object<a name="line.83"></a>
+<span class="sourceLineNo">084</span>     *            The quad object (&lt;code&gt;null&lt;/code&gt; is a wildcard)<a name="line.84"></a>
+<span class="sourceLineNo">085</span>     * @return True if the dataset contains any quads that match the given<a name="line.85"></a>
+<span class="sourceLineNo">086</span>     *         pattern.<a name="line.86"></a>
+<span class="sourceLineNo">087</span>     */<a name="line.87"></a>
+<span class="sourceLineNo">088</span>    boolean contains(Optional&lt;BlankNodeOrIRI&gt; graphName, BlankNodeOrIRI subject, IRI predicate, RDFTerm object);<a name="line.88"></a>
+<span class="sourceLineNo">089</span><a name="line.89"></a>
+<span class="sourceLineNo">090</span>    /**<a name="line.90"></a>
+<span class="sourceLineNo">091</span>     * Close the dataset, relinquishing any underlying resources.<a name="line.91"></a>
+<span class="sourceLineNo">092</span>     * &lt;p&gt;<a name="line.92"></a>
+<span class="sourceLineNo">093</span>     * For example, this would close any open file and network streams and free<a name="line.93"></a>
+<span class="sourceLineNo">094</span>     * database locks held by the dataset implementation.<a name="line.94"></a>
+<span class="sourceLineNo">095</span>     * &lt;p&gt;<a name="line.95"></a>
+<span class="sourceLineNo">096</span>     * The behaviour of the other dataset methods are undefined after closing<a name="line.96"></a>
+<span class="sourceLineNo">097</span>     * the dataset.<a name="line.97"></a>
+<span class="sourceLineNo">098</span>     * &lt;p&gt;<a name="line.98"></a>
+<span class="sourceLineNo">099</span>     * Implementations might not need {@link #close()}, hence the default<a name="line.99"></a>
+<span class="sourceLineNo">100</span>     * implementation does nothing.<a name="line.100"></a>
+<span class="sourceLineNo">101</span>     */<a name="line.101"></a>
+<span class="sourceLineNo">102</span>    @Override<a name="line.102"></a>
+<span class="sourceLineNo">103</span>    default void close() throws Exception {<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    }<a name="line.104"></a>
+<span class="sourceLineNo">105</span><a name="line.105"></a>
+<span class="sourceLineNo">106</span>    /**<a name="line.106"></a>
+<span class="sourceLineNo">107</span>     * Get the default graph of this dataset.<a name="line.107"></a>
+<span class="sourceLineNo">108</span>     * &lt;p&gt;<a name="line.108"></a>
+<span class="sourceLineNo">109</span>     * The {@link Triple}s of the default graph are equivalent to the<a name="line.109"></a>
+<span class="sourceLineNo">110</span>     * {@link Quad}s in this Dataset which has the {@link Quad#getGraphName()}<a name="line.110"></a>
+<span class="sourceLineNo">111</span>     * set to {@link Optional#empty()}.<a name="line.111"></a>
+<span class="sourceLineNo">112</span>     * &lt;p&gt;<a name="line.112"></a>
+<span class="sourceLineNo">113</span>     * It is unspecified if modifications to the returned Graph are reflected in<a name="line.113"></a>
+<span class="sourceLineNo">114</span>     * this Dataset.<a name="line.114"></a>
+<span class="sourceLineNo">115</span>     * &lt;p&gt;<a name="line.115"></a>
+<span class="sourceLineNo">116</span>     * The returned graph MAY be empty.<a name="line.116"></a>
+<span class="sourceLineNo">117</span>     * <a name="line.117"></a>
+<span class="sourceLineNo">118</span>     * @see #getGraph(BlankNodeOrIRI)<a name="line.118"></a>
+<span class="sourceLineNo">119</span>     * @return The default graph of this Dataset<a name="line.119"></a>
+<span class="sourceLineNo">120</span>     */<a name="line.120"></a>
+<span class="sourceLineNo">121</span>    Graph getGraph();<a name="line.121"></a>
+<span class="sourceLineNo">122</span><a name="line.122"></a>
+<span class="sourceLineNo">123</span>    /**<a name="line.123"></a>
+<span class="sourceLineNo">124</span>     * Get a named graph in this dataset.<a name="line.124"></a>
+<span class="sourceLineNo">125</span>     * &lt;p&gt;<a name="line.125"></a>
+<span class="sourceLineNo">126</span>     * The {@link Triple}s of the named graph are equivalent to the the Quads of<a name="line.126"></a>
+<span class="sourceLineNo">127</span>     * this Dataset which has the {@link Quad#getGraphName()} equal to the<a name="line.127"></a>
+<span class="sourceLineNo">128</span>     * provided &lt;code&gt;graphName&lt;/code&gt;, or equal to {@link Optional#empty()} if<a name="line.128"></a>
+<span class="sourceLineNo">129</span>     * the provided &lt;code&gt;graphName&lt;/code&gt; is &lt;code&gt;null&lt;/code&gt;.<a name="line.129"></a>
+<span class="sourceLineNo">130</span>     * &lt;p&gt;<a name="line.130"></a>
+<span class="sourceLineNo">131</span>     * It is unspecified if modifications to the returned Graph are reflected in<a name="line.131"></a>
+<span class="sourceLineNo">132</span>     * this Dataset.<a name="line.132"></a>
+<span class="sourceLineNo">133</span>     * &lt;p&gt;<a name="line.133"></a>
+<span class="sourceLineNo">134</span>     * It is unspecified if requesting an unknown or empty graph will return<a name="line.134"></a>
+<span class="sourceLineNo">135</span>     * {@link Optional#empty()} or create a new empty {@link Graph}.<a name="line.135"></a>
+<span class="sourceLineNo">136</span>     * <a name="line.136"></a>
+<span class="sourceLineNo">137</span>     * @see #getGraph()<a name="line.137"></a>
+<span class="sourceLineNo">138</span>     * @see #getGraphNames()<a name="line.138"></a>
+<span class="sourceLineNo">139</span>     * @param graphName<a name="line.139"></a>
+<span class="sourceLineNo">140</span>     *            The name of the graph, or &lt;code&gt;null&lt;/code&gt; for the default<a name="line.140"></a>
+<span class="sourceLineNo">141</span>     *            graph.<a name="line.141"></a>
+<span class="sourceLineNo">142</span>     * @return The named Graph, or {@link Optional#empty()} if the dataset do<a name="line.142"></a>
+<span class="sourceLineNo">143</span>     *         not contain the named graph.<a name="line.143"></a>
+<span class="sourceLineNo">144</span>     */<a name="line.144"></a>
+<span class="sourceLineNo">145</span>    Optional&lt;Graph&gt; getGraph(BlankNodeOrIRI graphName);<a name="line.145"></a>
+<span class="sourceLineNo">146</span><a name="line.146"></a>
+<span class="sourceLineNo">147</span>    /**<a name="line.147"></a>
+<span class="sourceLineNo">148</span>     * Get the graph names in this Dataset.<a name="line.148"></a>
+<span class="sourceLineNo">149</span>     * &lt;p&gt;<a name="line.149"></a>
+<span class="sourceLineNo">150</span>     * The set of returned graph names is equivalent to the set of unique<a name="line.150"></a>
+<span class="sourceLineNo">151</span>     * {@link Quad#getGraphName()} of all the {@link #stream()} of this dataset<a name="line.151"></a>
+<span class="sourceLineNo">152</span>     * (excluding the default graph).<a name="line.152"></a>
+<span class="sourceLineNo">153</span>     * &lt;p&gt;<a name="line.153"></a>
+<span class="sourceLineNo">154</span>     * The returned {@link Stream} SHOULD NOT contain duplicate graph names.<a name="line.154"></a>
+<span class="sourceLineNo">155</span>     * &lt;p&gt;<a name="line.155"></a>
+<span class="sourceLineNo">156</span>     * The graph names can be used with {@link #getGraph(BlankNodeOrIRI)} to<a name="line.156"></a>
+<span class="sourceLineNo">157</span>     * retrieve the corresponding {@link Graph}, however callers should be aware<a name="line.157"></a>
+<span class="sourceLineNo">158</span>     * of any concurrent modifications to the Dataset may cause such calls to<a name="line.158"></a>
+<span class="sourceLineNo">159</span>     * return {@link Optional#empty()}.<a name="line.159"></a>
+<span class="sourceLineNo">160</span>     * &lt;p&gt;<a name="line.160"></a>
+<span class="sourceLineNo">161</span>     * Note that a Dataset always contains a &lt;strong&gt;default graph&lt;/strong&gt;<a name="line.161"></a>
+<span class="sourceLineNo">162</span>     * which is not named, and thus is not represented in the returned Stream.<a name="line.162"></a>
+<span class="sourceLineNo">163</span>     * The default graph is accessible via {@link #getGraph()} or by using<a name="line.163"></a>
+<span class="sourceLineNo">164</span>     * {@link Optional#empty()} in the Quad access methods).<a name="line.164"></a>
+<span class="sourceLineNo">165</span>     * <a name="line.165"></a>
+<span class="sourceLineNo">166</span>     * @return A {@link Stream} of the graph names of this Dataset.<a name="line.166"></a>
+<span class="sourceLineNo">167</span>     */<a name="line.167"></a>
+<span class="sourceLineNo">168</span>    Stream&lt;BlankNodeOrIRI&gt; getGraphNames();<a name="line.168"></a>
+<span class="sourceLineNo">169</span><a name="line.169"></a>
+<span class="sourceLineNo">170</span>    /**<a name="line.170"></a>
+<span class="sourceLineNo">171</span>     * Remove a concrete quad from the dataset.<a name="line.171"></a>
+<span class="sourceLineNo">172</span>     *<a name="line.172"></a>
+<span class="sourceLineNo">173</span>     * @param quad<a name="line.173"></a>
+<span class="sourceLineNo">174</span>     *            quad to remove<a name="line.174"></a>
+<span class="sourceLineNo">175</span>     */<a name="line.175"></a>
+<span class="sourceLineNo">176</span>    @Override<a name="line.176"></a>
+<span class="sourceLineNo">177</span>    void remove(Quad quad);<a name="line.177"></a>
+<span class="sourceLineNo">178</span><a name="line.178"></a>
+<span class="sourceLineNo">179</span>    /**<a name="line.179"></a>
+<span class="sourceLineNo">180</span>     * Remove a concrete pattern of quads from the default graph of the dataset.<a name="line.180"></a>
+<span class="sourceLineNo">181</span>     *<a name="line.181"></a>
+<span class="sourceLineNo">182</span>     * @param graphName<a name="line.182"></a>
+<span class="sourceLineNo">183</span>     *            The graph the quad belongs to, wrapped as an {@link Optional}<a name="line.183"></a>
+<span class="sourceLineNo">184</span>     *            (&lt;code&gt;null&lt;/code&gt; is a wildcard, {@link Optional#empty()} is<a name="line.184"></a>
+<span class="sourceLineNo">185</span>     *            the default graph)<a name="line.185"></a>
+<span class="sourceLineNo">186</span>     * @param subject<a name="line.186"></a>
+<span class="sourceLineNo">187</span>     *            The quad subject (&lt;code&gt;null&lt;/code&gt; is a wildcard)<a name="line.187"></a>
+<span class="sourceLineNo">188</span>     * @param predicate<a name="line.188"></a>
+<span class="sourceLineNo">189</span>     *            The quad predicate (&lt;code&gt;null&lt;/code&gt; is a wildcard)<a name="line.189"></a>
+<span class="sourceLineNo">190</span>     * @param object<a name="line.190"></a>
+<span class="sourceLineNo">191</span>     *            The quad object (&lt;code&gt;null&lt;/code&gt; is a wildcard)<a name="line.191"></a>
+<span class="sourceLineNo">192</span>     */<a name="line.192"></a>
+<span class="sourceLineNo">193</span>    void remove(Optional&lt;BlankNodeOrIRI&gt; graphName, BlankNodeOrIRI subject, IRI predicate, RDFTerm object);<a name="line.193"></a>
+<span class="sourceLineNo">194</span><a name="line.194"></a>
+<span class="sourceLineNo">195</span>    /**<a name="line.195"></a>
+<span class="sourceLineNo">196</span>     * Clear the dataset, removing all quads.<a name="line.196"></a>
+<span class="sourceLineNo">197</span>     */<a name="line.197"></a>
+<span class="sourceLineNo">198</span>    @Override<a name="line.198"></a>
+<span class="sourceLineNo">199</span>    void clear();<a name="line.199"></a>
+<span class="sourceLineNo">200</span><a name="line.200"></a>
+<span class="sourceLineNo">201</span>    /**<a name="line.201"></a>
+<span class="sourceLineNo">202</span>     * Number of quads contained by the dataset.<a name="line.202"></a>
+<span class="sourceLineNo">203</span>     * &lt;p&gt;<a name="line.203"></a>
+<span class="sourceLineNo">204</span>     * The count of a set does not include duplicates, consistent with the<a name="line.204"></a>
+<span class="sourceLineNo">205</span>     * {@link Quad#equals(Object)} equals method for each {@link Quad}.<a name="line.205"></a>
+<span class="sourceLineNo">206</span>     *<a name="line.206"></a>
+<span class="sourceLineNo">207</span>     * @return The number of quads in the dataset<a name="line.207"></a>
+<span class="sourceLineNo">208</span>     */<a name="line.208"></a>
+<span class="sourceLineNo">209</span>    @Override<a name="line.209"></a>
+<span class="sourceLineNo">210</span>    long size();<a name="line.210"></a>
+<span class="sourceLineNo">211</span><a name="line.211"></a>
+<span class="sourceLineNo">212</span>    /**<a name="line.212"></a>
+<span class="sourceLineNo">213</span>     * Get all quads contained by the dataset.&lt;br&gt;<a name="line.213"></a>
+<span class="sourceLineNo">214</span>     * &lt;p&gt;<a name="line.214"></a>
+<span class="sourceLineNo">215</span>     * The iteration does not contain any duplicate quads, as determined by the<a name="line.215"></a>
+<span class="sourceLineNo">216</span>     * {@link Quad#equals(Object)} method for each {@link Quad}.<a name="line.216"></a>
+<span class="sourceLineNo">217</span>     * &lt;p&gt;<a name="line.217"></a>
+<span class="sourceLineNo">218</span>     * The behaviour of the {@link Stream} is not specified if<a name="line.218"></a>
+<span class="sourceLineNo">219</span>     * {@link #add(Quad)}, {@link #remove(Quad)} or {@link #clear()} are called<a name="line.219"></a>
+<span class="sourceLineNo">220</span>     * on the {@link Dataset} before it terminates.<a name="line.220"></a>
+<span class="sourceLineNo">221</span>     * &lt;p&gt;<a name="line.221"></a>
+<span class="sourceLineNo">222</span>     * Implementations may throw {@link ConcurrentModificationException} from<a name="line.222"></a>
+<span class="sourceLineNo">223</span>     * Stream methods if they detect a conflict while the Stream is active.<a name="line.223"></a>
+<span class="sourceLineNo">224</span>     *<a name="line.224"></a>
+<span class="sourceLineNo">225</span>     * @return A {@link Stream} over all of the quads in the dataset<a name="line.225"></a>
+<span class="sourceLineNo">226</span>     */<a name="line.226"></a>
+<span class="sourceLineNo">227</span>    @Override<a name="line.227"></a>
+<span class="sourceLineNo">228</span>    Stream&lt;? extends Quad&gt; stream();<a name="line.228"></a>
+<span class="sourceLineNo">229</span><a name="line.229"></a>
+<span class="sourceLineNo">230</span>    /**<a name="line.230"></a>
+<span class="sourceLineNo">231</span>     * Get all quads contained by the dataset matched with the pattern.<a name="line.231"></a>
+<span class="sourceLineNo">232</span>     * &lt;p&gt;<a name="line.232"></a>
+<span class="sourceLineNo">233</span>     * The iteration does not contain any duplicate quads, as determined by the<a name="line.233"></a>
+<span class="sourceLineNo">234</span>     * {@link Quad#equals(Object)} method for each {@link Quad}.<a name="line.234"></a>
+<span class="sourceLineNo">235</span>     * &lt;p&gt;<a name="line.235"></a>
+<span class="sourceLineNo">236</span>     * The behaviour of the {@link Stream} is not specified if<a name="line.236"></a>
+<span class="sourceLineNo">237</span>     * {@link #add(Quad)}, {@link #remove(Quad)} or {@link #clear()} are called<a name="line.237"></a>
+<span class="sourceLineNo">238</span>     * on the {@link Dataset} before it terminates.<a name="line.238"></a>
+<span class="sourceLineNo">239</span>     * &lt;p&gt;<a name="line.239"></a>
+<span class="sourceLineNo">240</span>     * Implementations may throw {@link ConcurrentModificationException} from<a name="line.240"></a>
+<span class="sourceLineNo">241</span>     * Stream methods if they detect a conflict while the Stream is active.<a name="line.241"></a>
+<span class="sourceLineNo">242</span>     *<a name="line.242"></a>
+<span class="sourceLineNo">243</span>     * @param graphName<a name="line.243"></a>
+<span class="sourceLineNo">244</span>     *            The graph the quad belongs to, wrapped as an {@link Optional}<a name="line.244"></a>
+<span class="sourceLineNo">245</span>     *            (&lt;code&gt;null&lt;/code&gt; is a wildcard, {@link Optional#empty()} is<a name="line.245"></a>
+<span class="sourceLineNo">246</span>     *            the default graph)<a name="line.246"></a>
+<span class="sourceLineNo">247</span>     * @param subject<a name="line.247"></a>
+<span class="sourceLineNo">248</span>     *            The quad subject (&lt;code&gt;null&lt;/code&gt; is a wildcard)<a name="line.248"></a>
+<span class="sourceLineNo">249</span>     * @param predicate<a name="line.249"></a>
+<span class="sourceLineNo">250</span>     *            The quad predicate (&lt;code&gt;null&lt;/code&gt; is a wildcard)<a name="line.250"></a>
+<span class="sourceLineNo">251</span>     * @param object<a name="line.251"></a>
+<span class="sourceLineNo">252</span>     *            The quad object (&lt;code&gt;null&lt;/code&gt; is a wildcard)<a name="line.252"></a>
+<span class="sourceLineNo">253</span>     * @return A {@link Stream} over the matched quads.<a name="line.253"></a>
+<span class="sourceLineNo">254</span>     */<a name="line.254"></a>
+<span class="sourceLineNo">255</span>    Stream&lt;? extends Quad&gt; stream(Optional&lt;BlankNodeOrIRI&gt; graphName, BlankNodeOrIRI subject, IRI predicate,<a name="line.255"></a>
+<span class="sourceLineNo">256</span>            RDFTerm object);<a name="line.256"></a>
+<span class="sourceLineNo">257</span><a name="line.257"></a>
+<span class="sourceLineNo">258</span>    /**<a name="line.258"></a>
+<span class="sourceLineNo">259</span>     * Get an Iterable for iterating over all quads in the dataset.<a name="line.259"></a>
+<span class="sourceLineNo">260</span>     * &lt;p&gt;<a name="line.260"></a>
+<span class="sourceLineNo">261</span>     * This method is meant to be used with a Java for-each loop, e.g.:<a name="line.261"></a>
+<span class="sourceLineNo">262</span>     * <a name="line.262"></a>
+<span class="sourceLineNo">263</span>     * &lt;pre&gt;<a name="line.263"></a>
+<span class="sourceLineNo">264</span>     * for (Quad t : dataset.iterate()) {<a name="line.264"></a>
+<span class="sourceLineNo">265</span>     *     System.out.println(t);<a name="line.265"></a>
+<span class="sourceLineNo">266</span>     * }<a name="line.266"></a>
+<span class="sourceLineNo">267</span>     * &lt;/pre&gt;<a name="line.267"></a>
+<span class="sourceLineNo">268</span>     * <a name="line.268"></a>
+<span class="sourceLineNo">269</span>     * The behaviour of the iterator is not specified if {@link #add(Quad)},<a name="line.269"></a>
+<span class="sourceLineNo">270</span>     * {@link #remove(Quad)} or {@link #clear()}, are called on the<a name="line.270"></a>
+<span class="sourceLineNo">271</span>     * {@link Dataset} before it terminates. It is undefined if the returned<a name="line.271"></a>
+<span class="sourceLineNo">272</span>     * {@link Iterator} supports the {@link Iterator#remove()} method.<a name="line.272"></a>
+<span class="sourceLineNo">273</span>     * &lt;p&gt;<a name="line.273"></a>
+<span class="sourceLineNo">274</span>     * Implementations may throw {@link ConcurrentModificationException} from<a name="line.274"></a>
+<span class="sourceLineNo">275</span>     * Iterator methods if they detect a concurrency conflict while the Iterator<a name="line.275"></a>
+<span class="sourceLineNo">276</span>     * is active.<a name="line.276"></a>
+<span class="sourceLineNo">277</span>     * &lt;p&gt;<a name="line.277"></a>
+<span class="sourceLineNo">278</span>     * The {@link Iterable#iterator()} must only be called once, that is the<a name="line.278"></a>
+<span class="sourceLineNo">279</span>     * Iterable must only be iterated over once. A {@link IllegalStateException}<a name="line.279"></a>
+<span class="sourceLineNo">280</span>     * may be thrown on attempt to reuse the Iterable.<a name="line.280"></a>
+<span class="sourceLineNo">281</span>     * &lt;p&gt;<a name="line.281"></a>
+<span class="sourceLineNo">282</span>     * The default implementation of this method will call {@link #stream()} to<a name="line.282"></a>
+<span class="sourceLineNo">283</span>     * return its {@link Stream#iterator()}.<a name="line.283"></a>
+<span class="sourceLineNo">284</span>     *<a name="line.284"></a>
+<span class="sourceLineNo">285</span>     * @return A {@link Iterable} that returns {@link Iterator} over all of the<a name="line.285"></a>
+<span class="sourceLineNo">286</span>     *         quads in the dataset<a name="line.286"></a>
+<span class="sourceLineNo">287</span>     * @throws IllegalStateException<a name="line.287"></a>
+<span class="sourceLineNo">288</span>     *             if the {@link Iterable} has been reused<a name="line.288"></a>
+<span class="sourceLineNo">289</span>     * @throws ConcurrentModificationException<a name="line.289"></a>
+<span class="sourceLineNo">290</span>     *             if a concurrency conflict occurs while the Iterator is<a name="line.290"></a>
+<span class="sourceLineNo">291</span>     *             active.<a name="line.291"></a>
+<span class="sourceLineNo">292</span>     */<a name="line.292"></a>
+<span class="sourceLineNo">293</span>    @Override<a name="line.293"></a>
+<span class="sourceLineNo">294</span>    @SuppressWarnings("unchecked")<a name="line.294"></a>
+<span class="sourceLineNo">295</span>    default Iterable&lt;Quad&gt; iterate() throws ConcurrentModificationException, IllegalStateException {<a name="line.295"></a>
+<span class="sourceLineNo">296</span>        return ((Stream&lt;Quad&gt;) stream())::iterator;<a name="line.296"></a>
+<span class="sourceLineNo">297</span>    }<a name="line.297"></a>
+<span class="sourceLineNo">298</span><a name="line.298"></a>
+<span class="sourceLineNo">299</span>    /**<a name="line.299"></a>
+<span class="sourceLineNo">300</span>     * Get an Iterable for iterating over the quads in the dataset that match<a name="line.300"></a>
+<span class="sourceLineNo">301</span>     * the pattern.<a name="line.301"></a>
+<span class="sourceLineNo">302</span>     * &lt;p&gt;<a name="line.302"></a>
+<span class="sourceLineNo">303</span>     * This method is meant to be used with a Java for-each loop, e.g.:<a name="line.303"></a>
+<span class="sourceLineNo">304</span>     * <a name="line.304"></a>
+<span class="sourceLineNo">305</span>     * &lt;pre&gt;<a name="line.305"></a>
+<span class="sourceLineNo">306</span>     * IRI alice = factory.createIRI("http://example.com/alice");<a name="line.306"></a>
+<span class="sourceLineNo">307</span>     * IRI knows = factory.createIRI("http://xmlns.com/foaf/0.1/");<a name="line.307"></a>
+<span class="sourceLineNo">308</span>     * for (Quad t : dataset.iterate(null, alice, knows, null)) {<a name="line.308"></a>
+<span class="sourceLineNo">309</span>     *     System.out.println(t.getGraphName());<a name="line.309"></a>
+<span class="sourceLineNo">310</span>     *     System.out.println(t.getObject());<a name="line.310"></a>
+<span class="sourceLineNo">311</span>     * }<a name="line.311"></a>
+<span class="sourceLineNo">312</span>     * &lt;/pre&gt;<a name="line.312"></a>
+<span class="sourceLineNo">313</span>     * &lt;p&gt;<a name="line.313"></a>
+<span class="sourceLineNo">314</span>     * The behaviour of the iterator is not specified if {@link #add(Quad)},<a name="line.314"></a>
+<span class="sourceLineNo">315</span>     * {@link #remove(Quad)} or {@link #clear()}, are called on the<a name="line.315"></a>
+<span class="sourceLineNo">316</span>     * {@link Dataset} before it terminates. It is undefined if the returned<a name="line.316"></a>
+<span class="sourceLineNo">317</span>     * {@link Iterator} supports the {@link Iterator#remove()} method.<a name="line.317"></a>
+<span class="sourceLineNo">318</span>     * &lt;p&gt;<a name="line.318"></a>
+<span class="sourceLineNo">319</span>     * Implementations may throw {@link ConcurrentModificationException} from<a name="line.319"></a>
+<span class="sourceLineNo">320</span>     * Iterator methods if they detect a concurrency conflict while the Iterator<a name="line.320"></a>
+<span class="sourceLineNo">321</span>     * is active.<a name="line.321"></a>
+<span class="sourceLineNo">322</span>     * &lt;p&gt;<a name="line.322"></a>
+<span class="sourceLineNo">323</span>     * The {@link Iterable#iterator()} must only be called once, that is the<a name="line.323"></a>
+<span class="sourceLineNo">324</span>     * Iterable must only be iterated over once. A {@link IllegalStateException}<a name="line.324"></a>
+<span class="sourceLineNo">325</span>     * may be thrown on attempt to reuse the Iterable.<a name="line.325"></a>
+<span class="sourceLineNo">326</span>     * &lt;p&gt;<a name="line.326"></a>
+<span class="sourceLineNo">327</span>     * The default implementation of this method will call<a name="line.327"></a>
+<span class="sourceLineNo">328</span>     * {@link #stream(Optional, BlankNodeOrIRI, IRI, RDFTerm)} to return its<a name="line.328"></a>
+<span class="sourceLineNo">329</span>     * {@link Stream#iterator()}.<a name="line.329"></a>
+<span class="sourceLineNo">330</span>     *<a name="line.330"></a>
+<span class="sourceLineNo">331</span>     * @param graphName<a name="line.331"></a>
+<span class="sourceLineNo">332</span>     *            The graph the quad belongs to, wrapped as an {@link Optional}<a name="line.332"></a>
+<span class="sourceLineNo">333</span>     *            (&lt;code&gt;null&lt;/code&gt; is a wildcard, {@link Optional#empty()} is<a name="line.333"></a>
+<span class="sourceLineNo">334</span>     *            the default graph)<a name="line.334"></a>
+<span class="sourceLineNo">335</span>     * @param subject<a name="line.335"></a>
+<span class="sourceLineNo">336</span>     *            The quad subject (&lt;code&gt;null&lt;/code&gt; is a wildcard)<a name="line.336"></a>
+<span class="sourceLineNo">337</span>     * @param predicate<a name="line.337"></a>
+<span class="sourceLineNo">338</span>     *            The quad predicate (&lt;code&gt;null&lt;/code&gt; is a wildcard)<a name="line.338"></a>
+<span class="sourceLineNo">339</span>     * @param object<a name="line.339"></a>
+<span class="sourceLineNo">340</span>     *            The quad object (&lt;code&gt;null&lt;/code&gt; is a wildcard)<a name="line.340"></a>
+<span class="sourceLineNo">341</span>     * @return A {@link Iterable} that returns {@link Iterator} over the<a name="line.341"></a>
+<span class="sourceLineNo">342</span>     *         matching quads in the dataset<a name="line.342"></a>
+<span class="sourceLineNo">343</span>     * @throws IllegalStateException<a name="line.343"></a>
+<span class="sourceLineNo">344</span>     *             if the {@link Iterable} has been reused<a name="line.344"></a>
+<span class="sourceLineNo">345</span>     * @throws ConcurrentModificationException<a name="line.345"></a>
+<span class="sourceLineNo">346</span>     *             if a concurrency conflict occurs while the Iterator is<a name="line.346"></a>
+<span class="sourceLineNo">347</span>     *             active.<a name="line.347"></a>
+<span class="sourceLineNo">348</span>     */<a name="line.348"></a>
+<span class="sourceLineNo">349</span>    @SuppressWarnings("unchecked")<a name="line.349"></a>
+<span class="sourceLineNo">350</span>    default Iterable&lt;Quad&gt; iterate(final Optional&lt;BlankNodeOrIRI&gt; graphName, final BlankNodeOrIRI subject, final IRI predicate,<a name="line.350"></a>
+<span class="sourceLineNo">351</span>            final RDFTerm object) throws ConcurrentModificationException, IllegalStateException {<a name="line.351"></a>
+<span class="sourceLineNo">352</span>        return ((Stream&lt;Quad&gt;) stream(graphName, subject, predicate, object))::iterator;<a name="line.352"></a>
+<span class="sourceLineNo">353</span>    }<a name="line.353"></a>
+<span class="sourceLineNo">354</span>}<a name="line.354"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/Graph.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/Graph.html (added)
+++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/Graph.html Thu Nov 17 14:45:34 2016
@@ -0,0 +1,370 @@
+<!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.api;<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.Iterator;<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>/**<a name="line.24"></a>
+<span class="sourceLineNo">025</span> * An &lt;a href="http://www.w3.org/TR/rdf11-concepts/#section-rdf-graph"&gt; RDF 1.1<a name="line.25"></a>
+<span class="sourceLineNo">026</span> * Graph&lt;/a&gt;, a set of RDF triples, as defined by<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * &lt;a href="http://www.w3.org/TR/rdf11-concepts/" &gt;RDF-1.1 Concepts and Abstract<a name="line.27"></a>
+<span class="sourceLineNo">028</span> * Syntax&lt;/a&gt;, a W3C Recommendation published on 25 February 2014.<a name="line.28"></a>
+<span class="sourceLineNo">029</span> * <a name="line.29"></a>
+<span class="sourceLineNo">030</span> * @see RDF#createGraph()<a name="line.30"></a>
+<span class="sourceLineNo">031</span> */<a name="line.31"></a>
+<span class="sourceLineNo">032</span>public interface Graph extends AutoCloseable, GraphLike&lt;Triple&gt; {<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>
+<span class="sourceLineNo">035</span>     * Add a triple to the graph, possibly mapping any of the components of the<a name="line.35"></a>
+<span class="sourceLineNo">036</span>     * Triple to those supported by this Graph.<a name="line.36"></a>
+<span class="sourceLineNo">037</span>     *<a name="line.37"></a>
+<span class="sourceLineNo">038</span>     * @param triple<a name="line.38"></a>
+<span class="sourceLineNo">039</span>     *            The triple to add<a name="line.39"></a>
+<span class="sourceLineNo">040</span>     */<a name="line.40"></a>
+<span class="sourceLineNo">041</span>    @Override<a name="line.41"></a>
+<span class="sourceLineNo">042</span>    void add(Triple triple);<a name="line.42"></a>
+<span class="sourceLineNo">043</span><a name="line.43"></a>
+<span class="sourceLineNo">044</span>    /**<a name="line.44"></a>
+<span class="sourceLineNo">045</span>     * Add a triple to the graph, possibly mapping any of the components to<a name="line.45"></a>
+<span class="sourceLineNo">046</span>     * those supported by this Graph.<a name="line.46"></a>
+<span class="sourceLineNo">047</span>     *<a name="line.47"></a>
+<span class="sourceLineNo">048</span>     * @param subject<a name="line.48"></a>
+<span class="sourceLineNo">049</span>     *            The triple subject<a name="line.49"></a>
+<span class="sourceLineNo">050</span>     * @param predicate<a name="line.50"></a>
+<span class="sourceLineNo">051</span>     *            The triple predicate<a name="line.51"></a>
+<span class="sourceLineNo">052</span>     * @param object<a name="line.52"></a>
+<span class="sourceLineNo">053</span>     *            The triple object<a name="line.53"></a>
+<span class="sourceLineNo">054</span>     */<a name="line.54"></a>
+<span class="sourceLineNo">055</span>    void add(BlankNodeOrIRI subject, IRI predicate, RDFTerm object);<a name="line.55"></a>
+<span class="sourceLineNo">056</span><a name="line.56"></a>
+<span class="sourceLineNo">057</span>    /**<a name="line.57"></a>
+<span class="sourceLineNo">058</span>     * Check if graph contains triple.<a name="line.58"></a>
+<span class="sourceLineNo">059</span>     *<a name="line.59"></a>
+<span class="sourceLineNo">060</span>     * @param triple<a name="line.60"></a>
+<span class="sourceLineNo">061</span>     *            The triple to check.<a name="line.61"></a>
+<span class="sourceLineNo">062</span>     * @return True if the Graph contains the given Triple.<a name="line.62"></a>
+<span class="sourceLineNo">063</span>     */<a name="line.63"></a>
+<span class="sourceLineNo">064</span>    @Override<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    boolean contains(Triple triple);<a name="line.65"></a>
+<span class="sourceLineNo">066</span><a name="line.66"></a>
+<span class="sourceLineNo">067</span>    /**<a name="line.67"></a>
+<span class="sourceLineNo">068</span>     * Check if graph contains a pattern of triples.<a name="line.68"></a>
+<span class="sourceLineNo">069</span>     *<a name="line.69"></a>
+<span class="sourceLineNo">070</span>     * @param subject<a name="line.70"></a>
+<span class="sourceLineNo">071</span>     *            The triple subject (null is a wildcard)<a name="line.71"></a>
+<span class="sourceLineNo">072</span>     * @param predicate<a name="line.72"></a>
+<span class="sourceLineNo">073</span>     *            The triple predicate (null is a wildcard)<a name="line.73"></a>
+<span class="sourceLineNo">074</span>     * @param object<a name="line.74"></a>
+<span class="sourceLineNo">075</span>     *            The triple object (null is a wildcard)<a name="line.75"></a>
+<span class="sourceLineNo">076</span>     * @return True if the Graph contains any Triples that match the given<a name="line.76"></a>
+<span class="sourceLineNo">077</span>     *         pattern.<a name="line.77"></a>
+<span class="sourceLineNo">078</span>     */<a name="line.78"></a>
+<span class="sourceLineNo">079</span>    boolean contains(BlankNodeOrIRI subject, IRI predicate, RDFTerm object);<a name="line.79"></a>
+<span class="sourceLineNo">080</span><a name="line.80"></a>
+<span class="sourceLineNo">081</span>    /**<a name="line.81"></a>
+<span class="sourceLineNo">082</span>     * Close the graph, relinquishing any underlying resources.<a name="line.82"></a>
+<span class="sourceLineNo">083</span>     * &lt;p&gt;<a name="line.83"></a>
+<span class="sourceLineNo">084</span>     * For example, this would close any open file and network streams and free<a name="line.84"></a>
+<span class="sourceLineNo">085</span>     * database locks held by the Graph implementation.<a name="line.85"></a>
+<span class="sourceLineNo">086</span>     * &lt;p&gt;<a name="line.86"></a>
+<span class="sourceLineNo">087</span>     * The behaviour of the other Graph methods are undefined after closing the<a name="line.87"></a>
+<span class="sourceLineNo">088</span>     * graph.<a name="line.88"></a>
+<span class="sourceLineNo">089</span>     * &lt;p&gt;<a name="line.89"></a>
+<span class="sourceLineNo">090</span>     * Implementations might not need {@link #close()}, hence the default<a name="line.90"></a>
+<span class="sourceLineNo">091</span>     * implementation does nothing.<a name="line.91"></a>
+<span class="sourceLineNo">092</span>     */<a name="line.92"></a>
+<span class="sourceLineNo">093</span>    @Override<a name="line.93"></a>
+<span class="sourceLineNo">094</span>    default void close() throws Exception {<a name="line.94"></a>
+<span class="sourceLineNo">095</span>    }<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>     * Remove a concrete triple from the graph.<a name="line.98"></a>
+<span class="sourceLineNo">099</span>     *<a name="line.99"></a>
+<span class="sourceLineNo">100</span>     * @param triple<a name="line.100"></a>
+<span class="sourceLineNo">101</span>     *            triple to remove<a name="line.101"></a>
+<span class="sourceLineNo">102</span>     */<a name="line.102"></a>
+<span class="sourceLineNo">103</span>    @Override<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    void remove(Triple triple);<a name="line.104"></a>
+<span class="sourceLineNo">105</span><a name="line.105"></a>
+<span class="sourceLineNo">106</span>    /**<a name="line.106"></a>
+<span class="sourceLineNo">107</span>     * Remove a concrete pattern of triples from the graph.<a name="line.107"></a>
+<span class="sourceLineNo">108</span>     *<a name="line.108"></a>
+<span class="sourceLineNo">109</span>     * @param subject<a name="line.109"></a>
+<span class="sourceLineNo">110</span>     *            The triple subject (null is a wildcard)<a name="line.110"></a>
+<span class="sourceLineNo">111</span>     * @param predicate<a name="line.111"></a>
+<span class="sourceLineNo">112</span>     *            The triple predicate (null is a wildcard)<a name="line.112"></a>
+<span class="sourceLineNo">113</span>     * @param object<a name="line.113"></a>
+<span class="sourceLineNo">114</span>     *            The triple object (null is a wildcard)<a name="line.114"></a>
+<span class="sourceLineNo">115</span>     */<a name="line.115"></a>
+<span class="sourceLineNo">116</span>    void remove(BlankNodeOrIRI subject, IRI predicate, RDFTerm object);<a name="line.116"></a>
+<span class="sourceLineNo">117</span><a name="line.117"></a>
+<span class="sourceLineNo">118</span>    /**<a name="line.118"></a>
+<span class="sourceLineNo">119</span>     * Clear the graph, removing all triples.<a name="line.119"></a>
+<span class="sourceLineNo">120</span>     */<a name="line.120"></a>
+<span class="sourceLineNo">121</span>    @Override<a name="line.121"></a>
+<span class="sourceLineNo">122</span>    void clear();<a name="line.122"></a>
+<span class="sourceLineNo">123</span><a name="line.123"></a>
+<span class="sourceLineNo">124</span>    /**<a name="line.124"></a>
+<span class="sourceLineNo">125</span>     * Number of triples contained by the graph.<a name="line.125"></a>
+<span class="sourceLineNo">126</span>     * &lt;p&gt;<a name="line.126"></a>
+<span class="sourceLineNo">127</span>     * The count of a set does not include duplicates, consistent with the<a name="line.127"></a>
+<span class="sourceLineNo">128</span>     * {@link Triple#equals(Object)} equals method for each {@link Triple}.<a name="line.128"></a>
+<span class="sourceLineNo">129</span>     *<a name="line.129"></a>
+<span class="sourceLineNo">130</span>     * @return The number of triples in the graph<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>    long size();<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>     * Get all triples contained by the graph.&lt;br&gt;<a name="line.136"></a>
+<span class="sourceLineNo">137</span>     * &lt;p&gt;<a name="line.137"></a>
+<span class="sourceLineNo">138</span>     * The iteration does not contain any duplicate triples, as determined by<a name="line.138"></a>
+<span class="sourceLineNo">139</span>     * the {@link Triple#equals(Object)} method for each {@link Triple}.<a name="line.139"></a>
+<span class="sourceLineNo">140</span>     * &lt;p&gt;<a name="line.140"></a>
+<span class="sourceLineNo">141</span>     * The behaviour of the {@link Stream} is not specified if<a name="line.141"></a>
+<span class="sourceLineNo">142</span>     * {@link #add(Triple)}, {@link #remove(Triple)} or {@link #clear()} are<a name="line.142"></a>
+<span class="sourceLineNo">143</span>     * called on the {@link Graph} before it terminates.<a name="line.143"></a>
+<span class="sourceLineNo">144</span>     * &lt;p&gt;<a name="line.144"></a>
+<span class="sourceLineNo">145</span>     * Implementations may throw {@link ConcurrentModificationException} from<a name="line.145"></a>
+<span class="sourceLineNo">146</span>     * Stream methods if they detect a conflict while the Stream is active.<a name="line.146"></a>
+<span class="sourceLineNo">147</span>     * <a name="line.147"></a>
+<span class="sourceLineNo">148</span>     * @since 0.3.0-incubating<a name="line.148"></a>
+<span class="sourceLineNo">149</span>     * @return A {@link Stream} over all of the triples in the graph<a name="line.149"></a>
+<span class="sourceLineNo">150</span>     */<a name="line.150"></a>
+<span class="sourceLineNo">151</span>    @Override<a name="line.151"></a>
+<span class="sourceLineNo">152</span>    Stream&lt;? extends Triple&gt; stream();<a name="line.152"></a>
+<span class="sourceLineNo">153</span><a name="line.153"></a>
+<span class="sourceLineNo">154</span>    /**<a name="line.154"></a>
+<span class="sourceLineNo">155</span>     * Get all triples contained by the graph matched with the pattern.<a name="line.155"></a>
+<span class="sourceLineNo">156</span>     * &lt;p&gt;<a name="line.156"></a>
+<span class="sourceLineNo">157</span>     * The iteration does not contain any duplicate triples, as determined by<a name="line.157"></a>
+<span class="sourceLineNo">158</span>     * the {@link Triple#equals(Object)} method for each {@link Triple}.<a name="line.158"></a>
+<span class="sourceLineNo">159</span>     * &lt;p&gt;<a name="line.159"></a>
+<span class="sourceLineNo">160</span>     * The behaviour of the {@link Stream} is not specified if<a name="line.160"></a>
+<span class="sourceLineNo">161</span>     * {@link #add(Triple)}, {@link #remove(Triple)} or {@link #clear()} are<a name="line.161"></a>
+<span class="sourceLineNo">162</span>     * called on the {@link Graph} before it terminates.<a name="line.162"></a>
+<span class="sourceLineNo">163</span>     * &lt;p&gt;<a name="line.163"></a>
+<span class="sourceLineNo">164</span>     * Implementations may throw {@link ConcurrentModificationException} from<a name="line.164"></a>
+<span class="sourceLineNo">165</span>     * Stream methods if they detect a conflict while the Stream is active.<a name="line.165"></a>
+<span class="sourceLineNo">166</span>     * &lt;p&gt;<a name="line.166"></a>
+<span class="sourceLineNo">167</span>     * <a name="line.167"></a>
+<span class="sourceLineNo">168</span>     * @since 0.3.0-incubating<a name="line.168"></a>
+<span class="sourceLineNo">169</span>     * @param subject<a name="line.169"></a>
+<span class="sourceLineNo">170</span>     *            The triple subject (null is a wildcard)<a name="line.170"></a>
+<span class="sourceLineNo">171</span>     * @param predicate<a name="line.171"></a>
+<span class="sourceLineNo">172</span>     *            The triple predicate (null is a wildcard)<a name="line.172"></a>
+<span class="sourceLineNo">173</span>     * @param object<a name="line.173"></a>
+<span class="sourceLineNo">174</span>     *            The triple object (null is a wildcard)<a name="line.174"></a>
+<span class="sourceLineNo">175</span>     * @return A {@link Stream} over the matched triples.<a name="line.175"></a>
+<span class="sourceLineNo">176</span>     */<a name="line.176"></a>
+<span class="sourceLineNo">177</span>    Stream&lt;? extends Triple&gt; stream(BlankNodeOrIRI subject, IRI predicate, RDFTerm object);<a name="line.177"></a>
+<span class="sourceLineNo">178</span><a name="line.178"></a>
+<span class="sourceLineNo">179</span>    /**<a name="line.179"></a>
+<span class="sourceLineNo">180</span>     * This method is deprecated, use the equivalent method {@link #stream()}<a name="line.180"></a>
+<span class="sourceLineNo">181</span>     * instead.<a name="line.181"></a>
+<span class="sourceLineNo">182</span>     * <a name="line.182"></a>
+<span class="sourceLineNo">183</span>     * @return A {@link Stream} over all triples.<a name="line.183"></a>
+<span class="sourceLineNo">184</span>     */<a name="line.184"></a>
+<span class="sourceLineNo">185</span>    @Deprecated<a name="line.185"></a>
+<span class="sourceLineNo">186</span>    default Stream&lt;? extends Triple&gt; getTriples() {<a name="line.186"></a>
+<span class="sourceLineNo">187</span>        return stream();<a name="line.187"></a>
+<span class="sourceLineNo">188</span>    }<a name="line.188"></a>
+<span class="sourceLineNo">189</span><a name="line.189"></a>
+<span class="sourceLineNo">190</span>    /**<a name="line.190"></a>
+<span class="sourceLineNo">191</span>     * This method is deprecated, use the equivalent method<a name="line.191"></a>
+<span class="sourceLineNo">192</span>     * {@link #stream(BlankNodeOrIRI, IRI, RDFTerm)} instead.<a name="line.192"></a>
+<span class="sourceLineNo">193</span>     * <a name="line.193"></a>
+<span class="sourceLineNo">194</span>     * @param subject<a name="line.194"></a>
+<span class="sourceLineNo">195</span>     *            The triple subject (null is a wildcard)<a name="line.195"></a>
+<span class="sourceLineNo">196</span>     * @param predicate<a name="line.196"></a>
+<span class="sourceLineNo">197</span>     *            The triple predicate (null is a wildcard)<a name="line.197"></a>
+<span class="sourceLineNo">198</span>     * @param object<a name="line.198"></a>
+<span class="sourceLineNo">199</span>     *            The triple object (null is a wildcard)<a name="line.199"></a>
+<span class="sourceLineNo">200</span>     * @return A {@link Stream} over the matched triples.<a name="line.200"></a>
+<span class="sourceLineNo">201</span>     */<a name="line.201"></a>
+<span class="sourceLineNo">202</span>    @Deprecated<a name="line.202"></a>
+<span class="sourceLineNo">203</span>    default Stream&lt;? extends Triple&gt; getTriples(final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object) {<a name="line.203"></a>
+<span class="sourceLineNo">204</span>        return stream(subject, predicate, object);<a name="line.204"></a>
+<span class="sourceLineNo">205</span>    }<a name="line.205"></a>
+<span class="sourceLineNo">206</span><a name="line.206"></a>
+<span class="sourceLineNo">207</span>    /**<a name="line.207"></a>
+<span class="sourceLineNo">208</span>     * Get an Iterable for iterating over all triples in the graph.<a name="line.208"></a>
+<span class="sourceLineNo">209</span>     * &lt;p&gt;<a name="line.209"></a>
+<span class="sourceLineNo">210</span>     * This method is meant to be used with a Java for-each loop, e.g.:<a name="line.210"></a>
+<span class="sourceLineNo">211</span>     * <a name="line.211"></a>
+<span class="sourceLineNo">212</span>     * &lt;pre&gt;<a name="line.212"></a>
+<span class="sourceLineNo">213</span>     * for (Triple t : graph.iterate()) {<a name="line.213"></a>
+<span class="sourceLineNo">214</span>     *     System.out.println(t);<a name="line.214"></a>
+<span class="sourceLineNo">215</span>     * }<a name="line.215"></a>
+<span class="sourceLineNo">216</span>     * &lt;/pre&gt;<a name="line.216"></a>
+<span class="sourceLineNo">217</span>     * <a name="line.217"></a>
+<span class="sourceLineNo">218</span>     * The behaviour of the iterator is not specified if {@link #add(Triple)},<a name="line.218"></a>
+<span class="sourceLineNo">219</span>     * {@link #remove(Triple)} or {@link #clear()}, are called on the<a name="line.219"></a>
+<span class="sourceLineNo">220</span>     * {@link Graph} before it terminates. It is undefined if the returned<a name="line.220"></a>
+<span class="sourceLineNo">221</span>     * {@link Iterator} supports the {@link Iterator#remove()} method.<a name="line.221"></a>
+<span class="sourceLineNo">222</span>     * &lt;p&gt;<a name="line.222"></a>
+<span class="sourceLineNo">223</span>     * Implementations may throw {@link ConcurrentModificationException} from<a name="line.223"></a>
+<span class="sourceLineNo">224</span>     * Iterator methods if they detect a concurrency conflict while the Iterator<a name="line.224"></a>
+<span class="sourceLineNo">225</span>     * is active.<a name="line.225"></a>
+<span class="sourceLineNo">226</span>     * &lt;p&gt;<a name="line.226"></a>
+<span class="sourceLineNo">227</span>     * The {@link Iterable#iterator()} must only be called once, that is the<a name="line.227"></a>
+<span class="sourceLineNo">228</span>     * Iterable must only be iterated over once. A {@link IllegalStateException}<a name="line.228"></a>
+<span class="sourceLineNo">229</span>     * may be thrown on attempt to reuse the Iterable.<a name="line.229"></a>
+<span class="sourceLineNo">230</span>     * &lt;p&gt;<a name="line.230"></a>
+<span class="sourceLineNo">231</span>     * The default implementation of this method will call {@link #stream()} to return<a name="line.231"></a>
+<span class="sourceLineNo">232</span>     * its {@link Stream#iterator()}.<a name="line.232"></a>
+<span class="sourceLineNo">233</span>     *<a name="line.233"></a>
+<span class="sourceLineNo">234</span>     * @return A {@link Iterable} that returns {@link Iterator} over all of the<a name="line.234"></a>
+<span class="sourceLineNo">235</span>     *         triples in the graph<a name="line.235"></a>
+<span class="sourceLineNo">236</span>     * @throws IllegalStateException<a name="line.236"></a>
+<span class="sourceLineNo">237</span>     *             if the {@link Iterable} has been reused<a name="line.237"></a>
+<span class="sourceLineNo">238</span>     * @throws ConcurrentModificationException<a name="line.238"></a>
+<span class="sourceLineNo">239</span>     *             if a concurrency conflict occurs while the Iterator is<a name="line.239"></a>
+<span class="sourceLineNo">240</span>     *             active.<a name="line.240"></a>
+<span class="sourceLineNo">241</span>     */<a name="line.241"></a>
+<span class="sourceLineNo">242</span>    @Override<a name="line.242"></a>
+<span class="sourceLineNo">243</span>    @SuppressWarnings("unchecked")<a name="line.243"></a>
+<span class="sourceLineNo">244</span>    default Iterable&lt;Triple&gt; iterate() throws ConcurrentModificationException, IllegalStateException {<a name="line.244"></a>
+<span class="sourceLineNo">245</span>        return ((Stream&lt;Triple&gt;) stream())::iterator;<a name="line.245"></a>
+<span class="sourceLineNo">246</span>    }<a name="line.246"></a>
+<span class="sourceLineNo">247</span><a name="line.247"></a>
+<span class="sourceLineNo">248</span>    /**<a name="line.248"></a>
+<span class="sourceLineNo">249</span>     * Get an Iterable for iterating over the triples in the graph that match<a name="line.249"></a>
+<span class="sourceLineNo">250</span>     * the pattern.<a name="line.250"></a>
+<span class="sourceLineNo">251</span>     * &lt;p&gt;<a name="line.251"></a>
+<span class="sourceLineNo">252</span>     * This method is meant to be used with a Java for-each loop, e.g.:<a name="line.252"></a>
+<span class="sourceLineNo">253</span>     * <a name="line.253"></a>
+<span class="sourceLineNo">254</span>     * &lt;pre&gt;<a name="line.254"></a>
+<span class="sourceLineNo">255</span>     * IRI alice = factory.createIRI("http://example.com/alice");<a name="line.255"></a>
+<span class="sourceLineNo">256</span>     * IRI knows = factory.createIRI("http://xmlns.com/foaf/0.1/");<a name="line.256"></a>
+<span class="sourceLineNo">257</span>     * for (Triple t : graph.iterate(alice, knows, null)) {<a name="line.257"></a>
+<span class="sourceLineNo">258</span>     *     System.out.println(t.getObject());<a name="line.258"></a>
+<span class="sourceLineNo">259</span>     * }<a name="line.259"></a>
+<span class="sourceLineNo">260</span>     * &lt;/pre&gt;<a name="line.260"></a>
+<span class="sourceLineNo">261</span>     * &lt;p&gt;<a name="line.261"></a>
+<span class="sourceLineNo">262</span>     * The behaviour of the iterator is not specified if {@link #add(Triple)},<a name="line.262"></a>
+<span class="sourceLineNo">263</span>     * {@link #remove(Triple)} or {@link #clear()}, are called on the<a name="line.263"></a>
+<span class="sourceLineNo">264</span>     * {@link Graph} before it terminates. It is undefined if the returned<a name="line.264"></a>
+<span class="sourceLineNo">265</span>     * {@link Iterator} supports the {@link Iterator#remove()} method.<a name="line.265"></a>
+<span class="sourceLineNo">266</span>     * &lt;p&gt;<a name="line.266"></a>
+<span class="sourceLineNo">267</span>     * Implementations may throw {@link ConcurrentModificationException} from<a name="line.267"></a>
+<span class="sourceLineNo">268</span>     * Iterator methods if they detect a concurrency conflict while the Iterator<a name="line.268"></a>
+<span class="sourceLineNo">269</span>     * is active.<a name="line.269"></a>
+<span class="sourceLineNo">270</span>     * &lt;p&gt;<a name="line.270"></a>
+<span class="sourceLineNo">271</span>     * The {@link Iterable#iterator()} must only be called once, that is the<a name="line.271"></a>
+<span class="sourceLineNo">272</span>     * Iterable must only be iterated over once. A {@link IllegalStateException}<a name="line.272"></a>
+<span class="sourceLineNo">273</span>     * may be thrown on attempt to reuse the Iterable.<a name="line.273"></a>
+<span class="sourceLineNo">274</span>     * &lt;p&gt;<a name="line.274"></a>
+<span class="sourceLineNo">275</span>     * The default implementation of this method will call<a name="line.275"></a>
+<span class="sourceLineNo">276</span>     * {@link #stream(BlankNodeOrIRI, IRI, RDFTerm)} to return its<a name="line.276"></a>
+<span class="sourceLineNo">277</span>     * {@link Stream#iterator()}.<a name="line.277"></a>
+<span class="sourceLineNo">278</span>     *<a name="line.278"></a>
+<span class="sourceLineNo">279</span>     * @param subject<a name="line.279"></a>
+<span class="sourceLineNo">280</span>     *            The triple subject (null is a wildcard)<a name="line.280"></a>
+<span class="sourceLineNo">281</span>     * @param predicate<a name="line.281"></a>
+<span class="sourceLineNo">282</span>     *            The triple predicate (null is a wildcard)<a name="line.282"></a>
+<span class="sourceLineNo">283</span>     * @param object<a name="line.283"></a>
+<span class="sourceLineNo">284</span>     *            The triple object (null is a wildcard)<a name="line.284"></a>
+<span class="sourceLineNo">285</span>     * @return A {@link Iterable} that returns {@link Iterator} over the<a name="line.285"></a>
+<span class="sourceLineNo">286</span>     *         matching triples in the graph<a name="line.286"></a>
+<span class="sourceLineNo">287</span>     * @throws IllegalStateException<a name="line.287"></a>
+<span class="sourceLineNo">288</span>     *             if the {@link Iterable} has been reused<a name="line.288"></a>
+<span class="sourceLineNo">289</span>     * @throws ConcurrentModificationException<a name="line.289"></a>
+<span class="sourceLineNo">290</span>     *             if a concurrency conflict occurs while the Iterator is<a name="line.290"></a>
+<span class="sourceLineNo">291</span>     *             active.<a name="line.291"></a>
+<span class="sourceLineNo">292</span>     */<a name="line.292"></a>
+<span class="sourceLineNo">293</span>    @SuppressWarnings("unchecked")<a name="line.293"></a>
+<span class="sourceLineNo">294</span>    default Iterable&lt;Triple&gt; iterate(final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object)<a name="line.294"></a>
+<span class="sourceLineNo">295</span>            throws ConcurrentModificationException, IllegalStateException {<a name="line.295"></a>
+<span class="sourceLineNo">296</span>        return ((Stream&lt;Triple&gt;) stream(subject, predicate, object))::iterator;<a name="line.296"></a>
+<span class="sourceLineNo">297</span>    }<a name="line.297"></a>
+<span class="sourceLineNo">298</span>}<a name="line.298"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/GraphLike.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/GraphLike.html (added)
+++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/GraphLike.html Thu Nov 17 14:45:34 2016
@@ -0,0 +1,178 @@
+<!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.api;<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.stream.Stream;<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> * A "graph-like" interface that contains {@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> * Extended by {@link Graph} (for {@link Triple}) and {@link Dataset} (for<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * {@link Quad}).<a name="line.27"></a>
+<span class="sourceLineNo">028</span> * &lt;p&gt;<a name="line.28"></a>
+<span class="sourceLineNo">029</span> * Unlike {@link Graph} and {@link Dataset}, this interface can support<a name="line.29"></a>
+<span class="sourceLineNo">030</span> * generalised {@link TripleLike} or {@link QuadLike} statements, but does not<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * imply semantics like {@link #size()} or the requirement of mapping<a name="line.31"></a>
+<span class="sourceLineNo">032</span> * {@link RDFTerm} instances from different implementations.<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * &lt;p&gt;<a name="line.33"></a>
+<span class="sourceLineNo">034</span> * As {@link TripleLike} do not have a specific {@link Object#equals(Object)}<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * semantics, the behaviour of methods like {@link #contains(TripleLike)} and<a name="line.35"></a>
+<span class="sourceLineNo">036</span> * {@link #remove(TripleLike)} is undefined for arguments that are not object<a name="line.36"></a>
+<span class="sourceLineNo">037</span> * identical to previously added or returned {@link TripleLike} statements.<a name="line.37"></a>
+<span class="sourceLineNo">038</span> * <a name="line.38"></a>
+<span class="sourceLineNo">039</span> * @param &lt;T&gt;<a name="line.39"></a>
+<span class="sourceLineNo">040</span> *            A {@link TripleLike} type used by the graph methods, typically<a name="line.40"></a>
+<span class="sourceLineNo">041</span> *            {@link Triple} or {@link Quad}<a name="line.41"></a>
+<span class="sourceLineNo">042</span> * <a name="line.42"></a>
+<span class="sourceLineNo">043</span> * @since 0.3.0-incubating<a name="line.43"></a>
+<span class="sourceLineNo">044</span> * @see Graph<a name="line.44"></a>
+<span class="sourceLineNo">045</span> * @see Dataset<a name="line.45"></a>
+<span class="sourceLineNo">046</span> * @see TripleLike<a name="line.46"></a>
+<span class="sourceLineNo">047</span> */<a name="line.47"></a>
+<span class="sourceLineNo">048</span>public interface GraphLike&lt;T extends TripleLike&gt; {<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>     * Add a statement.<a name="line.51"></a>
+<span class="sourceLineNo">052</span>     * <a name="line.52"></a>
+<span class="sourceLineNo">053</span>     * @param statement<a name="line.53"></a>
+<span class="sourceLineNo">054</span>     *            The TripleLike statement to add<a name="line.54"></a>
+<span class="sourceLineNo">055</span>     */<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    void add(T statement);<a name="line.56"></a>
+<span class="sourceLineNo">057</span><a name="line.57"></a>
+<span class="sourceLineNo">058</span>    /**<a name="line.58"></a>
+<span class="sourceLineNo">059</span>     * Check if statement is contained.<a name="line.59"></a>
+<span class="sourceLineNo">060</span>     * <a name="line.60"></a>
+<span class="sourceLineNo">061</span>     * @param statement<a name="line.61"></a>
+<span class="sourceLineNo">062</span>     *            The {@link TripleLike} statement to check<a name="line.62"></a>
+<span class="sourceLineNo">063</span>     * @return True if the statement is contained<a name="line.63"></a>
+<span class="sourceLineNo">064</span>     */<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    boolean contains(T statement);<a name="line.65"></a>
+<span class="sourceLineNo">066</span><a name="line.66"></a>
+<span class="sourceLineNo">067</span>    /**<a name="line.67"></a>
+<span class="sourceLineNo">068</span>     * Add a statement.<a name="line.68"></a>
+<span class="sourceLineNo">069</span>     * <a name="line.69"></a>
+<span class="sourceLineNo">070</span>     * @param statement<a name="line.70"></a>
+<span class="sourceLineNo">071</span>     *            The TripleLike statement to add<a name="line.71"></a>
+<span class="sourceLineNo">072</span>     */<a name="line.72"></a>
+<span class="sourceLineNo">073</span>    void remove(T statement);<a name="line.73"></a>
+<span class="sourceLineNo">074</span><a name="line.74"></a>
+<span class="sourceLineNo">075</span>    /**<a name="line.75"></a>
+<span class="sourceLineNo">076</span>     * Remove all statements.<a name="line.76"></a>
+<span class="sourceLineNo">077</span>     */<a name="line.77"></a>
+<span class="sourceLineNo">078</span>    void clear();<a name="line.78"></a>
+<span class="sourceLineNo">079</span><a name="line.79"></a>
+<span class="sourceLineNo">080</span>    /**<a name="line.80"></a>
+<span class="sourceLineNo">081</span>     * Number of statements.<a name="line.81"></a>
+<span class="sourceLineNo">082</span>     * <a name="line.82"></a>
+<span class="sourceLineNo">083</span>     * @return Number of statements<a name="line.83"></a>
+<span class="sourceLineNo">084</span>     */<a name="line.84"></a>
+<span class="sourceLineNo">085</span>    long size();<a name="line.85"></a>
+<span class="sourceLineNo">086</span><a name="line.86"></a>
+<span class="sourceLineNo">087</span>    /**<a name="line.87"></a>
+<span class="sourceLineNo">088</span>     * Return a Stream of contained statements.<a name="line.88"></a>
+<span class="sourceLineNo">089</span>     * <a name="line.89"></a>
+<span class="sourceLineNo">090</span>     * @return A {@link Stream} of {@link TripleLike} statements.<a name="line.90"></a>
+<span class="sourceLineNo">091</span>     */<a name="line.91"></a>
+<span class="sourceLineNo">092</span>    Stream&lt;? extends T&gt; stream();<a name="line.92"></a>
+<span class="sourceLineNo">093</span><a name="line.93"></a>
+<span class="sourceLineNo">094</span>    /**<a name="line.94"></a>
+<span class="sourceLineNo">095</span>     * Iterate over contained statements.<a name="line.95"></a>
+<span class="sourceLineNo">096</span>     * <a name="line.96"></a>
+<span class="sourceLineNo">097</span>     * @return An {@link Iterable} of {@link TripleLike} statements.<a name="line.97"></a>
+<span class="sourceLineNo">098</span>     * @throws IllegalStateException<a name="line.98"></a>
+<span class="sourceLineNo">099</span>     *             if the {@link Iterable} has been reused<a name="line.99"></a>
+<span class="sourceLineNo">100</span>     * @throws ConcurrentModificationException<a name="line.100"></a>
+<span class="sourceLineNo">101</span>     *             if a concurrency conflict occurs while the Iterator is<a name="line.101"></a>
+<span class="sourceLineNo">102</span>     *             active.<a name="line.102"></a>
+<span class="sourceLineNo">103</span>     */<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    Iterable&lt;T&gt; iterate() throws ConcurrentModificationException, IllegalStateException;<a name="line.104"></a>
+<span class="sourceLineNo">105</span><a name="line.105"></a>
+<span class="sourceLineNo">106</span>}<a name="line.106"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/IRI.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/IRI.html (added)
+++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/IRI.html Thu Nov 17 14:45:34 2016
@@ -0,0 +1,149 @@
+<!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.api;<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> * An &lt;a href= "http://www.w3.org/TR/rdf11-concepts/#dfn-iri" &gt;RDF-1.1 IRI&lt;/a&gt;,<a name="line.21"></a>
+<span class="sourceLineNo">022</span> * as defined by &lt;a href= "http://www.w3.org/TR/rdf11-concepts/" &gt;RDF-1.1<a name="line.22"></a>
+<span class="sourceLineNo">023</span> * Concepts and Abstract Syntax&lt;/a&gt;, a W3C Recommendation published on 25<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * February 2014.<a name="line.24"></a>
+<span class="sourceLineNo">025</span> * <a name="line.25"></a>
+<span class="sourceLineNo">026</span> * @see RDF#createIRI(String)<a name="line.26"></a>
+<span class="sourceLineNo">027</span> */<a name="line.27"></a>
+<span class="sourceLineNo">028</span>public interface IRI extends BlankNodeOrIRI {<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>
+<span class="sourceLineNo">031</span>     * Return the IRI encoded as a native Unicode String.&lt;br&gt;<a name="line.31"></a>
+<span class="sourceLineNo">032</span>     *<a name="line.32"></a>
+<span class="sourceLineNo">033</span>     * The returned string must not include URL-encoding to escape non-ASCII<a name="line.33"></a>
+<span class="sourceLineNo">034</span>     * characters.<a name="line.34"></a>
+<span class="sourceLineNo">035</span>     *<a name="line.35"></a>
+<span class="sourceLineNo">036</span>     * @return The IRI encoded as a native Unicode String.<a name="line.36"></a>
+<span class="sourceLineNo">037</span>     */<a name="line.37"></a>
+<span class="sourceLineNo">038</span>    String getIRIString();<a name="line.38"></a>
+<span class="sourceLineNo">039</span><a name="line.39"></a>
+<span class="sourceLineNo">040</span>    /**<a name="line.40"></a>
+<span class="sourceLineNo">041</span>     * Check it this IRI is equal to another IRI. &lt;blockquote&gt;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>     * &lt;a href="http://www.w3.org/TR/rdf11-concepts/#section-IRIs"&gt;IRI<a name="line.42"></a>
+<span class="sourceLineNo">043</span>     * equality&lt;/a&gt;: Two IRIs are equal if and only if they are equivalent under<a name="line.43"></a>
+<span class="sourceLineNo">044</span>     * Simple String Comparison according to section 5.1 of [RFC3987]. Further<a name="line.44"></a>
+<span class="sourceLineNo">045</span>     * normalization MUST NOT be performed when comparing IRIs for equality.<a name="line.45"></a>
+<span class="sourceLineNo">046</span>     * &lt;/blockquote&gt;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>     *<a name="line.47"></a>
+<span class="sourceLineNo">048</span>     * Two IRI instances are equal if and only if their {@link #getIRIString()}<a name="line.48"></a>
+<span class="sourceLineNo">049</span>     * are equal.<a name="line.49"></a>
+<span class="sourceLineNo">050</span>     *<a name="line.50"></a>
+<span class="sourceLineNo">051</span>     * Implementations MUST also override {@link #hashCode()} so that two equal<a name="line.51"></a>
+<span class="sourceLineNo">052</span>     * IRIs produce the same hash code.<a name="line.52"></a>
+<span class="sourceLineNo">053</span>     *<a name="line.53"></a>
+<span class="sourceLineNo">054</span>     * @param other<a name="line.54"></a>
+<span class="sourceLineNo">055</span>     *            Another object<a name="line.55"></a>
+<span class="sourceLineNo">056</span>     * @return true if other is an IRI and is equal to this<a name="line.56"></a>
+<span class="sourceLineNo">057</span>     * @see Object#equals(Object)<a name="line.57"></a>
+<span class="sourceLineNo">058</span>     */<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    @Override<a name="line.59"></a>
+<span class="sourceLineNo">060</span>    public boolean equals(Object other);<a name="line.60"></a>
+<span class="sourceLineNo">061</span><a name="line.61"></a>
+<span class="sourceLineNo">062</span>    /**<a name="line.62"></a>
+<span class="sourceLineNo">063</span>     * Calculate a hash code for this IRI.<a name="line.63"></a>
+<span class="sourceLineNo">064</span>     * &lt;p&gt;<a name="line.64"></a>
+<span class="sourceLineNo">065</span>     * The returned hash code MUST be equal to the {@link String#hashCode()} of<a name="line.65"></a>
+<span class="sourceLineNo">066</span>     * the {@link #getIRIString()}.<a name="line.66"></a>
+<span class="sourceLineNo">067</span>     * &lt;p&gt;<a name="line.67"></a>
+<span class="sourceLineNo">068</span>     * This method MUST be implemented in conjunction with<a name="line.68"></a>
+<span class="sourceLineNo">069</span>     * {@link #equals(Object)} so that two equal IRIs produce the same hash<a name="line.69"></a>
+<span class="sourceLineNo">070</span>     * code.<a name="line.70"></a>
+<span class="sourceLineNo">071</span>     *<a name="line.71"></a>
+<span class="sourceLineNo">072</span>     * @return a hash code value for this IRI.<a name="line.72"></a>
+<span class="sourceLineNo">073</span>     * @see Object#hashCode()<a name="line.73"></a>
+<span class="sourceLineNo">074</span>     */<a name="line.74"></a>
+<span class="sourceLineNo">075</span>    @Override<a name="line.75"></a>
+<span class="sourceLineNo">076</span>    public int hashCode();<a name="line.76"></a>
+<span class="sourceLineNo">077</span>}<a name="line.77"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file



Mime
View raw message