commonsrdf-commits mailing list archives

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

Modified: websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/GraphLike.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/GraphLike.html (original)
+++ websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/GraphLike.html Thu Nov 17 15:06:06 2016
@@ -175,4 +175,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/IRI.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/IRI.html (original)
+++ websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/IRI.html Thu Nov 17 15:06:06 2016
@@ -146,4 +146,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/Literal.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/Literal.html (original)
+++ websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/Literal.html Thu Nov 17 15:06:06 2016
@@ -199,4 +199,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/Quad.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/Quad.html (original)
+++ websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/Quad.html Thu Nov 17 15:06:06 2016
@@ -86,166 +86,162 @@
 <span class="sourceLineNo">078</span>     * @see &lt;a href="https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-dataset"&gt;RDF-<a name="line.78"></a>
 <span class="sourceLineNo">079</span>     *      1.1 Dataset&lt;/a&gt;<a name="line.79"></a>
 <span class="sourceLineNo">080</span>     */<a name="line.80"></a>
-<span class="sourceLineNo">081</span>    @Override<a name="line.81"></a>
-<span class="sourceLineNo">082</span>    Optional&lt;BlankNodeOrIRI&gt; getGraphName();<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>     * The subject of this quad, which may be either a {@link BlankNode} or an<a name="line.85"></a>
-<span class="sourceLineNo">086</span>     * {@link IRI}, which are represented in Commons RDF by the interface<a name="line.86"></a>
-<span class="sourceLineNo">087</span>     * {@link BlankNodeOrIRI}.<a name="line.87"></a>
-<span class="sourceLineNo">088</span>     *<a name="line.88"></a>
-<span class="sourceLineNo">089</span>     * @return The subject {@link BlankNodeOrIRI} of this quad.<a name="line.89"></a>
-<span class="sourceLineNo">090</span>     * @see &lt;a href="http://www.w3.org/TR/rdf11-concepts/#dfn-subject"&gt;RDF-1.1<a name="line.90"></a>
-<span class="sourceLineNo">091</span>     *      Triple subject&lt;/a&gt;<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>    BlankNodeOrIRI getSubject();<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>     * The predicate {@link IRI} of this quad.<a name="line.97"></a>
-<span class="sourceLineNo">098</span>     *<a name="line.98"></a>
-<span class="sourceLineNo">099</span>     * @return The predicate {@link IRI} of this quad.<a name="line.99"></a>
-<span class="sourceLineNo">100</span>     * @see &lt;a href="http://www.w3.org/TR/rdf11-concepts/#dfn-predicate"&gt;RDF-1.1<a name="line.100"></a>
-<span class="sourceLineNo">101</span>     *      Triple predicate&lt;/a&gt;<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>    IRI getPredicate();<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>     * The object of this quad, which may be either a {@link BlankNode}, an<a name="line.107"></a>
-<span class="sourceLineNo">108</span>     * {@link IRI}, or a {@link Literal}, which are represented in Commons RDF<a name="line.108"></a>
-<span class="sourceLineNo">109</span>     * by the interface {@link RDFTerm}.<a name="line.109"></a>
-<span class="sourceLineNo">110</span>     *<a name="line.110"></a>
-<span class="sourceLineNo">111</span>     * @return The object {@link RDFTerm} of this quad.<a name="line.111"></a>
-<span class="sourceLineNo">112</span>     * @see &lt;a href="http://www.w3.org/TR/rdf11-concepts/#dfn-object"&gt;RDF-1.1<a name="line.112"></a>
-<span class="sourceLineNo">113</span>     *      Triple object&lt;/a&gt;<a name="line.113"></a>
-<span class="sourceLineNo">114</span>     */<a name="line.114"></a>
-<span class="sourceLineNo">115</span>    @Override<a name="line.115"></a>
-<span class="sourceLineNo">116</span>    RDFTerm getObject();<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>     * Adapt this Quad to a Triple.<a name="line.119"></a>
+<span class="sourceLineNo">081</span>    Optional&lt;BlankNodeOrIRI&gt; getGraphName();<a name="line.81"></a>
+<span class="sourceLineNo">082</span><a name="line.82"></a>
+<span class="sourceLineNo">083</span>    /**<a name="line.83"></a>
+<span class="sourceLineNo">084</span>     * The subject of this quad, which may be either a {@link BlankNode} or an<a name="line.84"></a>
+<span class="sourceLineNo">085</span>     * {@link IRI}, which are represented in Commons RDF by the interface<a name="line.85"></a>
+<span class="sourceLineNo">086</span>     * {@link BlankNodeOrIRI}.<a name="line.86"></a>
+<span class="sourceLineNo">087</span>     *<a name="line.87"></a>
+<span class="sourceLineNo">088</span>     * @return The subject {@link BlankNodeOrIRI} of this quad.<a name="line.88"></a>
+<span class="sourceLineNo">089</span>     * @see &lt;a href="http://www.w3.org/TR/rdf11-concepts/#dfn-subject"&gt;RDF-1.1<a name="line.89"></a>
+<span class="sourceLineNo">090</span>     *      Triple subject&lt;/a&gt;<a name="line.90"></a>
+<span class="sourceLineNo">091</span>     */<a name="line.91"></a>
+<span class="sourceLineNo">092</span>    BlankNodeOrIRI getSubject();<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>     * The predicate {@link IRI} of this quad.<a name="line.95"></a>
+<span class="sourceLineNo">096</span>     *<a name="line.96"></a>
+<span class="sourceLineNo">097</span>     * @return The predicate {@link IRI} of this quad.<a name="line.97"></a>
+<span class="sourceLineNo">098</span>     * @see &lt;a href="http://www.w3.org/TR/rdf11-concepts/#dfn-predicate"&gt;RDF-1.1<a name="line.98"></a>
+<span class="sourceLineNo">099</span>     *      Triple predicate&lt;/a&gt;<a name="line.99"></a>
+<span class="sourceLineNo">100</span>     */<a name="line.100"></a>
+<span class="sourceLineNo">101</span>    IRI getPredicate();<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>     * The object of this quad, which may be either a {@link BlankNode}, an<a name="line.104"></a>
+<span class="sourceLineNo">105</span>     * {@link IRI}, or a {@link Literal}, which are represented in Commons RDF<a name="line.105"></a>
+<span class="sourceLineNo">106</span>     * by the interface {@link RDFTerm}.<a name="line.106"></a>
+<span class="sourceLineNo">107</span>     *<a name="line.107"></a>
+<span class="sourceLineNo">108</span>     * @return The object {@link RDFTerm} of this quad.<a name="line.108"></a>
+<span class="sourceLineNo">109</span>     * @see &lt;a href="http://www.w3.org/TR/rdf11-concepts/#dfn-object"&gt;RDF-1.1<a name="line.109"></a>
+<span class="sourceLineNo">110</span>     *      Triple object&lt;/a&gt;<a name="line.110"></a>
+<span class="sourceLineNo">111</span>     */<a name="line.111"></a>
+<span class="sourceLineNo">112</span>    RDFTerm getObject();<a name="line.112"></a>
+<span class="sourceLineNo">113</span><a name="line.113"></a>
+<span class="sourceLineNo">114</span>    /**<a name="line.114"></a>
+<span class="sourceLineNo">115</span>     * Adapt this Quad to a Triple.<a name="line.115"></a>
+<span class="sourceLineNo">116</span>     * &lt;p&gt;<a name="line.116"></a>
+<span class="sourceLineNo">117</span>     * The returned {@link Triple} will have equivalent values returned from the<a name="line.117"></a>
+<span class="sourceLineNo">118</span>     * methods {@link TripleLike#getSubject()},<a name="line.118"></a>
+<span class="sourceLineNo">119</span>     * {@link TripleLike#getPredicate()} and {@link TripleLike#getObject()}.<a name="line.119"></a>
 <span class="sourceLineNo">120</span>     * &lt;p&gt;<a name="line.120"></a>
-<span class="sourceLineNo">121</span>     * The returned {@link Triple} will have equivalent values returned from the<a name="line.121"></a>
-<span class="sourceLineNo">122</span>     * methods {@link TripleLike#getSubject()},<a name="line.122"></a>
-<span class="sourceLineNo">123</span>     * {@link TripleLike#getPredicate()} and {@link TripleLike#getObject()}.<a name="line.123"></a>
-<span class="sourceLineNo">124</span>     * &lt;p&gt;<a name="line.124"></a>
-<span class="sourceLineNo">125</span>     * The returned {@link Triple} MUST NOT be {@link #equals(Object)} to this<a name="line.125"></a>
-<span class="sourceLineNo">126</span>     * {@link Quad}, even if this quad has a default graph<a name="line.126"></a>
-<span class="sourceLineNo">127</span>     * {@link #getGraphName()} value of {@link Optional#empty()}, but MUST<a name="line.127"></a>
-<span class="sourceLineNo">128</span>     * follow the {@link Triple#equals(Object)} semantics. This means that the<a name="line.128"></a>
-<span class="sourceLineNo">129</span>     * following MUST be true:<a name="line.129"></a>
-<span class="sourceLineNo">130</span>     *<a name="line.130"></a>
-<span class="sourceLineNo">131</span>     * &lt;pre&gt;<a name="line.131"></a>
-<span class="sourceLineNo">132</span>     * Quad q1, q2;<a name="line.132"></a>
-<span class="sourceLineNo">133</span>     * if (q1.equals(q2)) {<a name="line.133"></a>
-<span class="sourceLineNo">134</span>     *     assert (q1.asTriple().equals(q2.asTriple()));<a name="line.134"></a>
-<span class="sourceLineNo">135</span>     * } else if (q1.asTriple().equals(q2.asTriple())) {<a name="line.135"></a>
-<span class="sourceLineNo">136</span>     *     assert (q1.getSubject().equals(q2.getSubject()));<a name="line.136"></a>
-<span class="sourceLineNo">137</span>     *     assert (q1.getPredicate().equals(q2.getPredicate()));<a name="line.137"></a>
-<span class="sourceLineNo">138</span>     *     assert (q1.getObject().equals(q2.getObject()));<a name="line.138"></a>
-<span class="sourceLineNo">139</span>     *     assert (!q1.getGraphName().equals(q2.getGraphName()));<a name="line.139"></a>
-<span class="sourceLineNo">140</span>     * }<a name="line.140"></a>
-<span class="sourceLineNo">141</span>     * &lt;/pre&gt;<a name="line.141"></a>
-<span class="sourceLineNo">142</span>     *<a name="line.142"></a>
-<span class="sourceLineNo">143</span>     * The &lt;code&gt;default&lt;/code&gt; implementation of this method return a proxy<a name="line.143"></a>
-<span class="sourceLineNo">144</span>     * {@link Triple} instance that keeps a reference to this {@link Quad} to<a name="line.144"></a>
-<span class="sourceLineNo">145</span>     * call the underlying {@link TripleLike} methods, but supplies a<a name="line.145"></a>
-<span class="sourceLineNo">146</span>     * {@link Triple} compatible implementation of {@link Triple#equals(Object)}<a name="line.146"></a>
-<span class="sourceLineNo">147</span>     * and {@link Triple#hashCode()}. Implementations may override this method,<a name="line.147"></a>
-<span class="sourceLineNo">148</span>     * e.g. for a more efficient solution.<a name="line.148"></a>
-<span class="sourceLineNo">149</span>     *<a name="line.149"></a>
-<span class="sourceLineNo">150</span>     * @return A {@link Triple} that contains the same {@link TripleLike}<a name="line.150"></a>
-<span class="sourceLineNo">151</span>     *         properties as this Quad.<a name="line.151"></a>
-<span class="sourceLineNo">152</span>     */<a name="line.152"></a>
-<span class="sourceLineNo">153</span>    default Triple asTriple() {<a name="line.153"></a>
-<span class="sourceLineNo">154</span>        return new Triple() {<a name="line.154"></a>
-<span class="sourceLineNo">155</span>            @Override<a name="line.155"></a>
-<span class="sourceLineNo">156</span>            public BlankNodeOrIRI getSubject() {<a name="line.156"></a>
-<span class="sourceLineNo">157</span>                return Quad.this.getSubject();<a name="line.157"></a>
-<span class="sourceLineNo">158</span>            }<a name="line.158"></a>
-<span class="sourceLineNo">159</span><a name="line.159"></a>
-<span class="sourceLineNo">160</span>            @Override<a name="line.160"></a>
-<span class="sourceLineNo">161</span>            public IRI getPredicate() {<a name="line.161"></a>
-<span class="sourceLineNo">162</span>                return Quad.this.getPredicate();<a name="line.162"></a>
-<span class="sourceLineNo">163</span>            }<a name="line.163"></a>
-<span class="sourceLineNo">164</span><a name="line.164"></a>
-<span class="sourceLineNo">165</span>            @Override<a name="line.165"></a>
-<span class="sourceLineNo">166</span>            public RDFTerm getObject() {<a name="line.166"></a>
-<span class="sourceLineNo">167</span>                return Quad.this.getObject();<a name="line.167"></a>
-<span class="sourceLineNo">168</span>            }<a name="line.168"></a>
-<span class="sourceLineNo">169</span><a name="line.169"></a>
-<span class="sourceLineNo">170</span>            @Override<a name="line.170"></a>
-<span class="sourceLineNo">171</span>            public boolean equals(final Object obj) {<a name="line.171"></a>
-<span class="sourceLineNo">172</span>                if (obj == this) {<a name="line.172"></a>
-<span class="sourceLineNo">173</span>                    return true;<a name="line.173"></a>
-<span class="sourceLineNo">174</span>                }<a name="line.174"></a>
-<span class="sourceLineNo">175</span>                if (!(obj instanceof Triple)) {<a name="line.175"></a>
-<span class="sourceLineNo">176</span>                    return false;<a name="line.176"></a>
-<span class="sourceLineNo">177</span>                }<a name="line.177"></a>
-<span class="sourceLineNo">178</span>                final Triple other = (Triple) obj;<a name="line.178"></a>
-<span class="sourceLineNo">179</span>                return Objects.equals(getSubject(), other.getSubject())<a name="line.179"></a>
-<span class="sourceLineNo">180</span>                        &amp;&amp; Objects.equals(getPredicate(), other.getPredicate())<a name="line.180"></a>
-<span class="sourceLineNo">181</span>                        &amp;&amp; Objects.equals(getObject(), other.getObject());<a name="line.181"></a>
-<span class="sourceLineNo">182</span>            }<a name="line.182"></a>
-<span class="sourceLineNo">183</span><a name="line.183"></a>
-<span class="sourceLineNo">184</span>            @Override<a name="line.184"></a>
-<span class="sourceLineNo">185</span>            public int hashCode() {<a name="line.185"></a>
-<span class="sourceLineNo">186</span>                return Objects.hash(getSubject(), getPredicate(), getObject());<a name="line.186"></a>
-<span class="sourceLineNo">187</span>            }<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>    /**<a name="line.191"></a>
-<span class="sourceLineNo">192</span>     * Check it this Quad is equal to another Quad.<a name="line.192"></a>
-<span class="sourceLineNo">193</span>     * &lt;p&gt;<a name="line.193"></a>
-<span class="sourceLineNo">194</span>     * Two Quads are equal if and only if their {@link #getGraphName()},<a name="line.194"></a>
-<span class="sourceLineNo">195</span>     * {@link #getSubject()}, {@link #getPredicate()} and {@link #getObject()}<a name="line.195"></a>
-<span class="sourceLineNo">196</span>     * are equal.<a name="line.196"></a>
+<span class="sourceLineNo">121</span>     * The returned {@link Triple} MUST NOT be {@link #equals(Object)} to this<a name="line.121"></a>
+<span class="sourceLineNo">122</span>     * {@link Quad}, even if this quad has a default graph<a name="line.122"></a>
+<span class="sourceLineNo">123</span>     * {@link #getGraphName()} value of {@link Optional#empty()}, but MUST<a name="line.123"></a>
+<span class="sourceLineNo">124</span>     * follow the {@link Triple#equals(Object)} semantics. This means that the<a name="line.124"></a>
+<span class="sourceLineNo">125</span>     * following MUST be true:<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>     * Quad q1, q2;<a name="line.128"></a>
+<span class="sourceLineNo">129</span>     * if (q1.equals(q2)) {<a name="line.129"></a>
+<span class="sourceLineNo">130</span>     *     assert (q1.asTriple().equals(q2.asTriple()));<a name="line.130"></a>
+<span class="sourceLineNo">131</span>     * } else if (q1.asTriple().equals(q2.asTriple())) {<a name="line.131"></a>
+<span class="sourceLineNo">132</span>     *     assert (q1.getSubject().equals(q2.getSubject()));<a name="line.132"></a>
+<span class="sourceLineNo">133</span>     *     assert (q1.getPredicate().equals(q2.getPredicate()));<a name="line.133"></a>
+<span class="sourceLineNo">134</span>     *     assert (q1.getObject().equals(q2.getObject()));<a name="line.134"></a>
+<span class="sourceLineNo">135</span>     *     assert (!q1.getGraphName().equals(q2.getGraphName()));<a name="line.135"></a>
+<span class="sourceLineNo">136</span>     * }<a name="line.136"></a>
+<span class="sourceLineNo">137</span>     * &lt;/pre&gt;<a name="line.137"></a>
+<span class="sourceLineNo">138</span>     *<a name="line.138"></a>
+<span class="sourceLineNo">139</span>     * The &lt;code&gt;default&lt;/code&gt; implementation of this method return a proxy<a name="line.139"></a>
+<span class="sourceLineNo">140</span>     * {@link Triple} instance that keeps a reference to this {@link Quad} to<a name="line.140"></a>
+<span class="sourceLineNo">141</span>     * call the underlying {@link TripleLike} methods, but supplies a<a name="line.141"></a>
+<span class="sourceLineNo">142</span>     * {@link Triple} compatible implementation of {@link Triple#equals(Object)}<a name="line.142"></a>
+<span class="sourceLineNo">143</span>     * and {@link Triple#hashCode()}. Implementations may override this method,<a name="line.143"></a>
+<span class="sourceLineNo">144</span>     * e.g. for a more efficient solution.<a name="line.144"></a>
+<span class="sourceLineNo">145</span>     *<a name="line.145"></a>
+<span class="sourceLineNo">146</span>     * @return A {@link Triple} that contains the same {@link TripleLike}<a name="line.146"></a>
+<span class="sourceLineNo">147</span>     *         properties as this Quad.<a name="line.147"></a>
+<span class="sourceLineNo">148</span>     */<a name="line.148"></a>
+<span class="sourceLineNo">149</span>    default Triple asTriple() {<a name="line.149"></a>
+<span class="sourceLineNo">150</span>        return new Triple() {<a name="line.150"></a>
+<span class="sourceLineNo">151</span>            @Override<a name="line.151"></a>
+<span class="sourceLineNo">152</span>            public BlankNodeOrIRI getSubject() {<a name="line.152"></a>
+<span class="sourceLineNo">153</span>                return Quad.this.getSubject();<a name="line.153"></a>
+<span class="sourceLineNo">154</span>            }<a name="line.154"></a>
+<span class="sourceLineNo">155</span><a name="line.155"></a>
+<span class="sourceLineNo">156</span>            @Override<a name="line.156"></a>
+<span class="sourceLineNo">157</span>            public IRI getPredicate() {<a name="line.157"></a>
+<span class="sourceLineNo">158</span>                return Quad.this.getPredicate();<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>            @Override<a name="line.161"></a>
+<span class="sourceLineNo">162</span>            public RDFTerm getObject() {<a name="line.162"></a>
+<span class="sourceLineNo">163</span>                return Quad.this.getObject();<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>            @Override<a name="line.166"></a>
+<span class="sourceLineNo">167</span>            public boolean equals(Object obj) {<a name="line.167"></a>
+<span class="sourceLineNo">168</span>                if (obj == this) {<a name="line.168"></a>
+<span class="sourceLineNo">169</span>                    return true;<a name="line.169"></a>
+<span class="sourceLineNo">170</span>                }<a name="line.170"></a>
+<span class="sourceLineNo">171</span>                if (!(obj instanceof Triple)) {<a name="line.171"></a>
+<span class="sourceLineNo">172</span>                    return false;<a name="line.172"></a>
+<span class="sourceLineNo">173</span>                }<a name="line.173"></a>
+<span class="sourceLineNo">174</span>                Triple other = (Triple) obj;<a name="line.174"></a>
+<span class="sourceLineNo">175</span>                return Objects.equals(getSubject(), other.getSubject())<a name="line.175"></a>
+<span class="sourceLineNo">176</span>                        &amp;&amp; Objects.equals(getPredicate(), other.getPredicate())<a name="line.176"></a>
+<span class="sourceLineNo">177</span>                        &amp;&amp; Objects.equals(getObject(), other.getObject());<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>            @Override<a name="line.180"></a>
+<span class="sourceLineNo">181</span>            public int hashCode() {<a name="line.181"></a>
+<span class="sourceLineNo">182</span>                return Objects.hash(getSubject(), getPredicate(), getObject());<a name="line.182"></a>
+<span class="sourceLineNo">183</span>            }<a name="line.183"></a>
+<span class="sourceLineNo">184</span>        };<a name="line.184"></a>
+<span class="sourceLineNo">185</span>    }<a name="line.185"></a>
+<span class="sourceLineNo">186</span><a name="line.186"></a>
+<span class="sourceLineNo">187</span>    /**<a name="line.187"></a>
+<span class="sourceLineNo">188</span>     * Check it this Quad is equal to another Quad.<a name="line.188"></a>
+<span class="sourceLineNo">189</span>     * &lt;p&gt;<a name="line.189"></a>
+<span class="sourceLineNo">190</span>     * Two Quads are equal if and only if their {@link #getGraphName()},<a name="line.190"></a>
+<span class="sourceLineNo">191</span>     * {@link #getSubject()}, {@link #getPredicate()} and {@link #getObject()}<a name="line.191"></a>
+<span class="sourceLineNo">192</span>     * are equal.<a name="line.192"></a>
+<span class="sourceLineNo">193</span>     * &lt;/p&gt;<a name="line.193"></a>
+<span class="sourceLineNo">194</span>     * &lt;p&gt;<a name="line.194"></a>
+<span class="sourceLineNo">195</span>     * Implementations MUST also override {@link #hashCode()} so that two equal<a name="line.195"></a>
+<span class="sourceLineNo">196</span>     * Quads produce the same hash code.<a name="line.196"></a>
 <span class="sourceLineNo">197</span>     * &lt;/p&gt;<a name="line.197"></a>
 <span class="sourceLineNo">198</span>     * &lt;p&gt;<a name="line.198"></a>
-<span class="sourceLineNo">199</span>     * Implementations MUST also override {@link #hashCode()} so that two equal<a name="line.199"></a>
-<span class="sourceLineNo">200</span>     * Quads produce the same hash code.<a name="line.200"></a>
-<span class="sourceLineNo">201</span>     * &lt;/p&gt;<a name="line.201"></a>
-<span class="sourceLineNo">202</span>     * &lt;p&gt;<a name="line.202"></a>
-<span class="sourceLineNo">203</span>     * Note that a {@link Quad} MUST NOT be equal to a {@link Triple}, even if<a name="line.203"></a>
-<span class="sourceLineNo">204</span>     * this Quad's {@link #getGraphName()} is {@link Optional#empty()}. To test<a name="line.204"></a>
-<span class="sourceLineNo">205</span>     * triple-like equivalence, callers can use:<a name="line.205"></a>
-<span class="sourceLineNo">206</span>     * &lt;/p&gt;<a name="line.206"></a>
-<span class="sourceLineNo">207</span>     *<a name="line.207"></a>
-<span class="sourceLineNo">208</span>     * &lt;pre&gt;<a name="line.208"></a>
-<span class="sourceLineNo">209</span>     * Quad q1;<a name="line.209"></a>
-<span class="sourceLineNo">210</span>     * Triple t2;<a name="line.210"></a>
-<span class="sourceLineNo">211</span>     * q1.asTriple().equals(t2));<a name="line.211"></a>
-<span class="sourceLineNo">212</span>     * &lt;/pre&gt;<a name="line.212"></a>
-<span class="sourceLineNo">213</span>     *<a name="line.213"></a>
-<span class="sourceLineNo">214</span>     * @param other<a name="line.214"></a>
-<span class="sourceLineNo">215</span>     *            Another object<a name="line.215"></a>
-<span class="sourceLineNo">216</span>     * @return true if other is a Quad and is equal to this<a name="line.216"></a>
-<span class="sourceLineNo">217</span>     * @see Object#equals(Object)<a name="line.217"></a>
-<span class="sourceLineNo">218</span>     */<a name="line.218"></a>
-<span class="sourceLineNo">219</span>    @Override<a name="line.219"></a>
-<span class="sourceLineNo">220</span>    public boolean equals(Object other);<a name="line.220"></a>
-<span class="sourceLineNo">221</span><a name="line.221"></a>
-<span class="sourceLineNo">222</span>    /**<a name="line.222"></a>
-<span class="sourceLineNo">223</span>     * Calculate a hash code for this Quad.<a name="line.223"></a>
+<span class="sourceLineNo">199</span>     * Note that a {@link Quad} MUST NOT be equal to a {@link Triple}, even if<a name="line.199"></a>
+<span class="sourceLineNo">200</span>     * this Quad's {@link #getGraphName()} is {@link Optional#empty()}. To test<a name="line.200"></a>
+<span class="sourceLineNo">201</span>     * triple-like equivalence, callers can use:<a name="line.201"></a>
+<span class="sourceLineNo">202</span>     * &lt;/p&gt;<a name="line.202"></a>
+<span class="sourceLineNo">203</span>     *<a name="line.203"></a>
+<span class="sourceLineNo">204</span>     * &lt;pre&gt;<a name="line.204"></a>
+<span class="sourceLineNo">205</span>     * Quad q1;<a name="line.205"></a>
+<span class="sourceLineNo">206</span>     * Triple t2;<a name="line.206"></a>
+<span class="sourceLineNo">207</span>     * q1.asTriple().equals(t2));<a name="line.207"></a>
+<span class="sourceLineNo">208</span>     * &lt;/pre&gt;<a name="line.208"></a>
+<span class="sourceLineNo">209</span>     *<a name="line.209"></a>
+<span class="sourceLineNo">210</span>     * @param other<a name="line.210"></a>
+<span class="sourceLineNo">211</span>     *            Another object<a name="line.211"></a>
+<span class="sourceLineNo">212</span>     * @return true if other is a Quad and is equal to this<a name="line.212"></a>
+<span class="sourceLineNo">213</span>     * @see Object#equals(Object)<a name="line.213"></a>
+<span class="sourceLineNo">214</span>     */<a name="line.214"></a>
+<span class="sourceLineNo">215</span>    @Override<a name="line.215"></a>
+<span class="sourceLineNo">216</span>    public boolean equals(Object other);<a name="line.216"></a>
+<span class="sourceLineNo">217</span><a name="line.217"></a>
+<span class="sourceLineNo">218</span>    /**<a name="line.218"></a>
+<span class="sourceLineNo">219</span>     * Calculate a hash code for this Quad.<a name="line.219"></a>
+<span class="sourceLineNo">220</span>     * &lt;p&gt;<a name="line.220"></a>
+<span class="sourceLineNo">221</span>     * The returned hash code MUST be equal to the result of<a name="line.221"></a>
+<span class="sourceLineNo">222</span>     * {@link Objects#hash(Object...)} with the arguments {@link #getSubject()},<a name="line.222"></a>
+<span class="sourceLineNo">223</span>     * {@link #getPredicate()}, {@link #getObject()}, {@link #getGraphName()}.<a name="line.223"></a>
 <span class="sourceLineNo">224</span>     * &lt;p&gt;<a name="line.224"></a>
-<span class="sourceLineNo">225</span>     * The returned hash code MUST be equal to the result of<a name="line.225"></a>
-<span class="sourceLineNo">226</span>     * {@link Objects#hash(Object...)} with the arguments {@link #getSubject()},<a name="line.226"></a>
-<span class="sourceLineNo">227</span>     * {@link #getPredicate()}, {@link #getObject()}, {@link #getGraphName()}.<a name="line.227"></a>
-<span class="sourceLineNo">228</span>     * &lt;p&gt;<a name="line.228"></a>
-<span class="sourceLineNo">229</span>     * This method MUST be implemented in conjunction with<a name="line.229"></a>
-<span class="sourceLineNo">230</span>     * {@link #equals(Object)} so that two equal {@link Quad}s produce the same<a name="line.230"></a>
-<span class="sourceLineNo">231</span>     * hash code.<a name="line.231"></a>
-<span class="sourceLineNo">232</span>     *<a name="line.232"></a>
-<span class="sourceLineNo">233</span>     * @return a hash code value for this Quad.<a name="line.233"></a>
-<span class="sourceLineNo">234</span>     * @see Object#hashCode()<a name="line.234"></a>
-<span class="sourceLineNo">235</span>     * @see Objects#hash(Object...)<a name="line.235"></a>
-<span class="sourceLineNo">236</span>     */<a name="line.236"></a>
-<span class="sourceLineNo">237</span>    @Override<a name="line.237"></a>
-<span class="sourceLineNo">238</span>    public int hashCode();<a name="line.238"></a>
-<span class="sourceLineNo">239</span><a name="line.239"></a>
-<span class="sourceLineNo">240</span>}<a name="line.240"></a>
+<span class="sourceLineNo">225</span>     * This method MUST be implemented in conjunction with<a name="line.225"></a>
+<span class="sourceLineNo">226</span>     * {@link #equals(Object)} so that two equal {@link Quad}s produce the same<a name="line.226"></a>
+<span class="sourceLineNo">227</span>     * hash code.<a name="line.227"></a>
+<span class="sourceLineNo">228</span>     *<a name="line.228"></a>
+<span class="sourceLineNo">229</span>     * @return a hash code value for this Quad.<a name="line.229"></a>
+<span class="sourceLineNo">230</span>     * @see Object#hashCode()<a name="line.230"></a>
+<span class="sourceLineNo">231</span>     * @see Objects#hash(Object...)<a name="line.231"></a>
+<span class="sourceLineNo">232</span>     */<a name="line.232"></a>
+<span class="sourceLineNo">233</span>    @Override<a name="line.233"></a>
+<span class="sourceLineNo">234</span>    public int hashCode();<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>
 
 
 
@@ -309,4 +305,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/QuadLike.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/QuadLike.html (original)
+++ websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/QuadLike.html Thu Nov 17 15:06:06 2016
@@ -125,4 +125,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/RDF.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/RDF.html (original)
+++ websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/RDF.html Thu Nov 17 15:06:06 2016
@@ -327,4 +327,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/RDFSyntax.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/RDFSyntax.html (original)
+++ websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/RDFSyntax.html Thu Nov 17 15:06:06 2016
@@ -149,7 +149,7 @@
 <span class="sourceLineNo">141</span>        return name;<a name="line.141"></a>
 <span class="sourceLineNo">142</span>    }<a name="line.142"></a>
 <span class="sourceLineNo">143</span><a name="line.143"></a>
-<span class="sourceLineNo">144</span>    private RDFSyntax(final String name, final String mediaType, final String fileExtension, final boolean supportsDataset) {<a name="line.144"></a>
+<span class="sourceLineNo">144</span>    private RDFSyntax(String name, String mediaType, String fileExtension, boolean supportsDataset) {<a name="line.144"></a>
 <span class="sourceLineNo">145</span>        this.name = name;<a name="line.145"></a>
 <span class="sourceLineNo">146</span>        this.mediaType = mediaType;<a name="line.146"></a>
 <span class="sourceLineNo">147</span>        this.fileExtension = fileExtension;<a name="line.147"></a>
@@ -175,7 +175,7 @@
 <span class="sourceLineNo">167</span>     *         {@link Optional#empty()} indicating that no matching syntax was<a name="line.167"></a>
 <span class="sourceLineNo">168</span>     *         found.<a name="line.168"></a>
 <span class="sourceLineNo">169</span>     */<a name="line.169"></a>
-<span class="sourceLineNo">170</span>    public static Optional&lt;RDFSyntax&gt; byMediaType(final String mediaType) {<a name="line.170"></a>
+<span class="sourceLineNo">170</span>    public static Optional&lt;RDFSyntax&gt; byMediaType(String mediaType) {<a name="line.170"></a>
 <span class="sourceLineNo">171</span>        final String type = mediaType.toLowerCase(Locale.ENGLISH).split("\\s*[;,]", 2)[0];<a name="line.171"></a>
 <span class="sourceLineNo">172</span>        return Arrays.stream(RDFSyntax.values()).filter(t -&gt; t.mediaType.equals(type)).findAny();<a name="line.172"></a>
 <span class="sourceLineNo">173</span>    }<a name="line.173"></a>
@@ -194,7 +194,7 @@
 <span class="sourceLineNo">186</span>     *         {@link Optional#empty()} indicating that no matching file<a name="line.186"></a>
 <span class="sourceLineNo">187</span>     *         extension was found.<a name="line.187"></a>
 <span class="sourceLineNo">188</span>     */<a name="line.188"></a>
-<span class="sourceLineNo">189</span>    public static Optional&lt;RDFSyntax&gt; byFileExtension(final String fileExtension) {<a name="line.189"></a>
+<span class="sourceLineNo">189</span>    public static Optional&lt;RDFSyntax&gt; byFileExtension(String fileExtension) {<a name="line.189"></a>
 <span class="sourceLineNo">190</span>        final String ext = fileExtension.toLowerCase(Locale.ENGLISH);<a name="line.190"></a>
 <span class="sourceLineNo">191</span>        return Arrays.stream(RDFSyntax.values()).filter(t -&gt; t.fileExtension.equals(ext)).findAny();<a name="line.191"></a>
 <span class="sourceLineNo">192</span>    }<a name="line.192"></a>
@@ -263,4 +263,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>

Modified: websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/RDFTerm.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/RDFTerm.html (original)
+++ websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/RDFTerm.html Thu Nov 17 15:06:06 2016
@@ -176,4 +176,4 @@
 </pre>
 </div>
 </body>
-</html>
\ No newline at end of file
+</html>



Mime
View raw message