commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1001921 [20/21] - in /websites/staging/commonsrdf/content: ./ apidocs/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apache/commons/rdf/api/class-use/ apidocs/org/apache/commons/rdf/experimental/ apidocs/org/apache/commons/rdf/experiment...
Date Wed, 30 Nov 2016 23:45:21 GMT
Added: websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DefaultDatasetTest.html
==============================================================================
--- websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DefaultDatasetTest.html (added)
+++ websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DefaultDatasetTest.html Wed Nov 30 23:45:19 2016
@@ -0,0 +1,130 @@
+<!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 static org.junit.Assert.assertEquals;<a name="line.20"></a>
+<span class="sourceLineNo">021</span>import static org.junit.Assert.assertFalse;<a name="line.21"></a>
+<span class="sourceLineNo">022</span>import static org.junit.Assert.assertTrue;<a name="line.22"></a>
+<span class="sourceLineNo">023</span><a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.junit.Test;<a name="line.24"></a>
+<span class="sourceLineNo">025</span><a name="line.25"></a>
+<span class="sourceLineNo">026</span>public class DefaultDatasetTest {<a name="line.26"></a>
+<span class="sourceLineNo">027</span>    <a name="line.27"></a>
+<span class="sourceLineNo">028</span>    DummyDataset dataset = new DummyDataset();<a name="line.28"></a>
+<span class="sourceLineNo">029</span>    <a name="line.29"></a>
+<span class="sourceLineNo">030</span>    @Test<a name="line.30"></a>
+<span class="sourceLineNo">031</span>    public void close() throws Exception {<a name="line.31"></a>
+<span class="sourceLineNo">032</span>        dataset.close(); // no-op<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>    @Test<a name="line.35"></a>
+<span class="sourceLineNo">036</span>    public void defaultIterate() throws Exception {<a name="line.36"></a>
+<span class="sourceLineNo">037</span>        assertFalse(dataset.streamCalled);<a name="line.37"></a>
+<span class="sourceLineNo">038</span>        assertFalse(dataset.filteredStreamCalled);<a name="line.38"></a>
+<span class="sourceLineNo">039</span>        for (final Quad t : dataset.iterate()) {<a name="line.39"></a>
+<span class="sourceLineNo">040</span>            assertEquals(t, new DummyQuad());<a name="line.40"></a>
+<span class="sourceLineNo">041</span>        }<a name="line.41"></a>
+<span class="sourceLineNo">042</span>        assertTrue(dataset.streamCalled);<a name="line.42"></a>
+<span class="sourceLineNo">043</span>        assertFalse(dataset.filteredStreamCalled);<a name="line.43"></a>
+<span class="sourceLineNo">044</span>    }<a name="line.44"></a>
+<span class="sourceLineNo">045</span>    <a name="line.45"></a>
+<span class="sourceLineNo">046</span>    @Test<a name="line.46"></a>
+<span class="sourceLineNo">047</span>    public void defaultFilteredIterate() throws Exception {<a name="line.47"></a>
+<span class="sourceLineNo">048</span>        assertFalse(dataset.streamCalled);<a name="line.48"></a>
+<span class="sourceLineNo">049</span>        assertFalse(dataset.filteredStreamCalled);<a name="line.49"></a>
+<span class="sourceLineNo">050</span>        for (final Quad t : dataset.iterate(null, null, new DummyIRI(2), null)) {<a name="line.50"></a>
+<span class="sourceLineNo">051</span>            assertEquals(t, new DummyQuad());<a name="line.51"></a>
+<span class="sourceLineNo">052</span>        }<a name="line.52"></a>
+<span class="sourceLineNo">053</span>        assertTrue(dataset.filteredStreamCalled);<a name="line.53"></a>
+<span class="sourceLineNo">054</span>        assertFalse(dataset.streamCalled);<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>}<a name="line.57"></a>
+<span class="sourceLineNo">058</span><a name="line.58"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DefaultGraphTest.html
==============================================================================
--- websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DefaultGraphTest.html (added)
+++ websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DefaultGraphTest.html Wed Nov 30 23:45:19 2016
@@ -0,0 +1,150 @@
+<!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 static org.junit.Assert.*;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.junit.Test;<a name="line.22"></a>
+<span class="sourceLineNo">023</span><a name="line.23"></a>
+<span class="sourceLineNo">024</span>public class DefaultGraphTest {<a name="line.24"></a>
+<span class="sourceLineNo">025</span>    <a name="line.25"></a>
+<span class="sourceLineNo">026</span>    DummyGraph graph = new DummyGraph();<a name="line.26"></a>
+<span class="sourceLineNo">027</span>    <a name="line.27"></a>
+<span class="sourceLineNo">028</span>    @Test<a name="line.28"></a>
+<span class="sourceLineNo">029</span>    public void close() throws Exception {<a name="line.29"></a>
+<span class="sourceLineNo">030</span>        graph.close(); // no-op<a name="line.30"></a>
+<span class="sourceLineNo">031</span>    }<a name="line.31"></a>
+<span class="sourceLineNo">032</span>    <a name="line.32"></a>
+<span class="sourceLineNo">033</span>    @SuppressWarnings("deprecation")<a name="line.33"></a>
+<span class="sourceLineNo">034</span>    @Test<a name="line.34"></a>
+<span class="sourceLineNo">035</span>    public void defaultGetTriples() throws Exception {<a name="line.35"></a>
+<span class="sourceLineNo">036</span>        assertFalse(graph.streamCalled);<a name="line.36"></a>
+<span class="sourceLineNo">037</span>        assertFalse(graph.filteredStreamCalled);<a name="line.37"></a>
+<span class="sourceLineNo">038</span>        assertEquals(1L, graph.getTriples().count());        <a name="line.38"></a>
+<span class="sourceLineNo">039</span>        assertTrue(graph.streamCalled);<a name="line.39"></a>
+<span class="sourceLineNo">040</span>        assertFalse(graph.filteredStreamCalled);        <a name="line.40"></a>
+<span class="sourceLineNo">041</span>    }<a name="line.41"></a>
+<span class="sourceLineNo">042</span><a name="line.42"></a>
+<span class="sourceLineNo">043</span>    @SuppressWarnings("deprecation")<a name="line.43"></a>
+<span class="sourceLineNo">044</span>    @Test<a name="line.44"></a>
+<span class="sourceLineNo">045</span>    public void defaultGetTriplesFiltered() throws Exception {<a name="line.45"></a>
+<span class="sourceLineNo">046</span>        assertFalse(graph.streamCalled);<a name="line.46"></a>
+<span class="sourceLineNo">047</span>        assertFalse(graph.filteredStreamCalled);<a name="line.47"></a>
+<span class="sourceLineNo">048</span>        assertEquals(1L, graph.getTriples(null,null,null).count());<a name="line.48"></a>
+<span class="sourceLineNo">049</span>        assertFalse(graph.streamCalled);<a name="line.49"></a>
+<span class="sourceLineNo">050</span>        assertTrue(graph.filteredStreamCalled);<a name="line.50"></a>
+<span class="sourceLineNo">051</span>        // Ensure arguments are passed on to graph.stream(s,p,o);<a name="line.51"></a>
+<span class="sourceLineNo">052</span>        assertEquals(0L, graph.getTriples(new DummyIRI(0),null,null).count());<a name="line.52"></a>
+<span class="sourceLineNo">053</span>    }<a name="line.53"></a>
+<span class="sourceLineNo">054</span>    <a name="line.54"></a>
+<span class="sourceLineNo">055</span>    @Test<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    public void defaultIterate() throws Exception {<a name="line.56"></a>
+<span class="sourceLineNo">057</span>        assertFalse(graph.streamCalled);<a name="line.57"></a>
+<span class="sourceLineNo">058</span>        assertFalse(graph.filteredStreamCalled);<a name="line.58"></a>
+<span class="sourceLineNo">059</span>        for (final Triple t : graph.iterate()) {<a name="line.59"></a>
+<span class="sourceLineNo">060</span>            assertEquals(t, new DummyTriple());<a name="line.60"></a>
+<span class="sourceLineNo">061</span>        }<a name="line.61"></a>
+<span class="sourceLineNo">062</span>        assertTrue(graph.streamCalled);<a name="line.62"></a>
+<span class="sourceLineNo">063</span>        assertFalse(graph.filteredStreamCalled);<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>    @Test<a name="line.66"></a>
+<span class="sourceLineNo">067</span>    public void defaultFilteredIterate() throws Exception {<a name="line.67"></a>
+<span class="sourceLineNo">068</span>        assertFalse(graph.streamCalled);<a name="line.68"></a>
+<span class="sourceLineNo">069</span>        assertFalse(graph.filteredStreamCalled);<a name="line.69"></a>
+<span class="sourceLineNo">070</span>        for (final Triple t : graph.iterate(null, new DummyIRI(2), null)) {<a name="line.70"></a>
+<span class="sourceLineNo">071</span>            assertEquals(t, new DummyTriple());<a name="line.71"></a>
+<span class="sourceLineNo">072</span>        }<a name="line.72"></a>
+<span class="sourceLineNo">073</span>        assertTrue(graph.filteredStreamCalled);<a name="line.73"></a>
+<span class="sourceLineNo">074</span>        assertFalse(graph.streamCalled);<a name="line.74"></a>
+<span class="sourceLineNo">075</span>    }<a name="line.75"></a>
+<span class="sourceLineNo">076</span>    <a name="line.76"></a>
+<span class="sourceLineNo">077</span>}<a name="line.77"></a>
+<span class="sourceLineNo">078</span><a name="line.78"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DefaultQuadTest.html
==============================================================================
--- websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DefaultQuadTest.html (added)
+++ websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DefaultQuadTest.html Wed Nov 30 23:45:19 2016
@@ -0,0 +1,119 @@
+<!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 static org.junit.Assert.*;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import java.util.Objects;<a name="line.22"></a>
+<span class="sourceLineNo">023</span><a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.junit.Test;<a name="line.24"></a>
+<span class="sourceLineNo">025</span><a name="line.25"></a>
+<span class="sourceLineNo">026</span>public class DefaultQuadTest {<a name="line.26"></a>
+<span class="sourceLineNo">027</span>    @Test<a name="line.27"></a>
+<span class="sourceLineNo">028</span>    public void asQuad() throws Exception {<a name="line.28"></a>
+<span class="sourceLineNo">029</span>        final Quad q = new DummyQuad();<a name="line.29"></a>
+<span class="sourceLineNo">030</span>        final Triple t = q.asTriple();<a name="line.30"></a>
+<span class="sourceLineNo">031</span>        assertEquals(t, t);<a name="line.31"></a>
+<span class="sourceLineNo">032</span>        assertNotEquals(t,  q);<a name="line.32"></a>
+<span class="sourceLineNo">033</span>        assertEquals(t, new DummyTriple());<a name="line.33"></a>
+<span class="sourceLineNo">034</span>        assertEquals(t, new DummyQuad().asTriple());<a name="line.34"></a>
+<span class="sourceLineNo">035</span>        <a name="line.35"></a>
+<span class="sourceLineNo">036</span>        // FIXME: This would not catch if asTriple() accidentally mixed up s/p/o<a name="line.36"></a>
+<span class="sourceLineNo">037</span>        // as they are here all the same<a name="line.37"></a>
+<span class="sourceLineNo">038</span>        assertEquals(new DummyIRI(1), t.getSubject());<a name="line.38"></a>
+<span class="sourceLineNo">039</span>        assertEquals(new DummyIRI(2), t.getPredicate());<a name="line.39"></a>
+<span class="sourceLineNo">040</span>        assertEquals(new DummyIRI(3), t.getObject());<a name="line.40"></a>
+<span class="sourceLineNo">041</span>        <a name="line.41"></a>
+<span class="sourceLineNo">042</span>        <a name="line.42"></a>
+<span class="sourceLineNo">043</span>        <a name="line.43"></a>
+<span class="sourceLineNo">044</span>        assertEquals(Objects.hash(q.getSubject(), q.getPredicate(), q.getObject()), t.hashCode());<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>}<a name="line.47"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DefaultRDFTermFactoryTest.html
==============================================================================
--- websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DefaultRDFTermFactoryTest.html (added)
+++ websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DefaultRDFTermFactoryTest.html Wed Nov 30 23:45:19 2016
@@ -0,0 +1,135 @@
+<!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 org.junit.Test;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>/**<a name="line.22"></a>
+<span class="sourceLineNo">023</span> * Test that all {@link RDFTermFactory} default methods throw<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * {@link UnsupportedOperationException}.<a name="line.24"></a>
+<span class="sourceLineNo">025</span> */<a name="line.25"></a>
+<span class="sourceLineNo">026</span>@SuppressWarnings("deprecation")<a name="line.26"></a>
+<span class="sourceLineNo">027</span>public class DefaultRDFTermFactoryTest {<a name="line.27"></a>
+<span class="sourceLineNo">028</span>    // All methods in RDFTermFactory has a default implementation<a name="line.28"></a>
+<span class="sourceLineNo">029</span>    RDFTermFactory factory = new RDFTermFactory() {};<a name="line.29"></a>
+<span class="sourceLineNo">030</span>    <a name="line.30"></a>
+<span class="sourceLineNo">031</span>    @Test(expected=UnsupportedOperationException.class)<a name="line.31"></a>
+<span class="sourceLineNo">032</span>    public void createBlankNode() throws Exception {<a name="line.32"></a>
+<span class="sourceLineNo">033</span>        factory.createBlankNode();<a name="line.33"></a>
+<span class="sourceLineNo">034</span>    }<a name="line.34"></a>
+<span class="sourceLineNo">035</span>    @Test(expected=UnsupportedOperationException.class)<a name="line.35"></a>
+<span class="sourceLineNo">036</span>    public void createBlankNodeName() throws Exception {<a name="line.36"></a>
+<span class="sourceLineNo">037</span>        factory.createBlankNode("fred");<a name="line.37"></a>
+<span class="sourceLineNo">038</span>    }<a name="line.38"></a>
+<span class="sourceLineNo">039</span>    @Test(expected=UnsupportedOperationException.class)<a name="line.39"></a>
+<span class="sourceLineNo">040</span>    public void createGraph() throws Exception {<a name="line.40"></a>
+<span class="sourceLineNo">041</span>        factory.createGraph();<a name="line.41"></a>
+<span class="sourceLineNo">042</span>    }<a name="line.42"></a>
+<span class="sourceLineNo">043</span>    @Test(expected=UnsupportedOperationException.class)<a name="line.43"></a>
+<span class="sourceLineNo">044</span>    public void createIRI() throws Exception {<a name="line.44"></a>
+<span class="sourceLineNo">045</span>        factory.createIRI("http://example.com/");<a name="line.45"></a>
+<span class="sourceLineNo">046</span>    }<a name="line.46"></a>
+<span class="sourceLineNo">047</span>    @Test(expected=UnsupportedOperationException.class)<a name="line.47"></a>
+<span class="sourceLineNo">048</span>    public void createLiteral() throws Exception {<a name="line.48"></a>
+<span class="sourceLineNo">049</span>        factory.createLiteral("Alice");<a name="line.49"></a>
+<span class="sourceLineNo">050</span>    }<a name="line.50"></a>
+<span class="sourceLineNo">051</span>    @Test(expected=UnsupportedOperationException.class)<a name="line.51"></a>
+<span class="sourceLineNo">052</span>    public void createLiteralLang() throws Exception {<a name="line.52"></a>
+<span class="sourceLineNo">053</span>        factory.createLiteral("Alice", "en");<a name="line.53"></a>
+<span class="sourceLineNo">054</span>    }<a name="line.54"></a>
+<span class="sourceLineNo">055</span>    @Test(expected=UnsupportedOperationException.class)<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    public void createLiteralTyped() throws Exception {<a name="line.56"></a>
+<span class="sourceLineNo">057</span>        factory.createLiteral("Alice", new DummyIRI(0));<a name="line.57"></a>
+<span class="sourceLineNo">058</span>    }<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    @Test(expected=UnsupportedOperationException.class)<a name="line.59"></a>
+<span class="sourceLineNo">060</span>    public void createTriple() throws Exception {<a name="line.60"></a>
+<span class="sourceLineNo">061</span>        factory.createTriple(new DummyIRI(1), new DummyIRI(2), new DummyIRI(3));<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    }<a name="line.62"></a>
+<span class="sourceLineNo">063</span>}<a name="line.63"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DummyDatasetTest.html
==============================================================================
--- websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DummyDatasetTest.html (added)
+++ websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DummyDatasetTest.html Wed Nov 30 23:45:19 2016
@@ -0,0 +1,173 @@
+<!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 static org.junit.Assert.*;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.junit.Test;<a name="line.22"></a>
+<span class="sourceLineNo">023</span><a name="line.23"></a>
+<span class="sourceLineNo">024</span>public class DummyDatasetTest {<a name="line.24"></a>
+<span class="sourceLineNo">025</span>    Dataset dataset = new DummyDataset();<a name="line.25"></a>
+<span class="sourceLineNo">026</span><a name="line.26"></a>
+<span class="sourceLineNo">027</span>    @Test<a name="line.27"></a>
+<span class="sourceLineNo">028</span>    public void add() throws Exception {<a name="line.28"></a>
+<span class="sourceLineNo">029</span>        dataset.add(new DummyQuad());<a name="line.29"></a>
+<span class="sourceLineNo">030</span>    }<a name="line.30"></a>
+<span class="sourceLineNo">031</span><a name="line.31"></a>
+<span class="sourceLineNo">032</span>    @Test<a name="line.32"></a>
+<span class="sourceLineNo">033</span>    public void addSPO() throws Exception {<a name="line.33"></a>
+<span class="sourceLineNo">034</span>        dataset.add(null, new DummyIRI(1), new DummyIRI(2), new DummyIRI(3));<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>    @Test<a name="line.37"></a>
+<span class="sourceLineNo">038</span>    public void contains() throws Exception {<a name="line.38"></a>
+<span class="sourceLineNo">039</span>        assertTrue(dataset.contains(new DummyQuad()));<a name="line.39"></a>
+<span class="sourceLineNo">040</span>    }<a name="line.40"></a>
+<span class="sourceLineNo">041</span><a name="line.41"></a>
+<span class="sourceLineNo">042</span>    @Test<a name="line.42"></a>
+<span class="sourceLineNo">043</span>    public void containsSPO() throws Exception {<a name="line.43"></a>
+<span class="sourceLineNo">044</span>        assertTrue(dataset.contains(null, null, null, null));<a name="line.44"></a>
+<span class="sourceLineNo">045</span>        assertTrue(dataset.contains(null, new DummyIRI(1), new DummyIRI(2), new DummyIRI(3)));<a name="line.45"></a>
+<span class="sourceLineNo">046</span>        assertFalse(dataset.contains(null, new DummyIRI(0), new DummyIRI(0), new DummyIRI(0)));<a name="line.46"></a>
+<span class="sourceLineNo">047</span>    }<a name="line.47"></a>
+<span class="sourceLineNo">048</span><a name="line.48"></a>
+<span class="sourceLineNo">049</span>    @Test(expected = IllegalStateException.class)<a name="line.49"></a>
+<span class="sourceLineNo">050</span>    public void clearNotSupported() throws Exception {<a name="line.50"></a>
+<span class="sourceLineNo">051</span>        dataset.clear();<a name="line.51"></a>
+<span class="sourceLineNo">052</span>    }<a name="line.52"></a>
+<span class="sourceLineNo">053</span><a name="line.53"></a>
+<span class="sourceLineNo">054</span>    @Test(expected = IllegalStateException.class)<a name="line.54"></a>
+<span class="sourceLineNo">055</span>    public void remove() throws Exception {<a name="line.55"></a>
+<span class="sourceLineNo">056</span>        dataset.remove(new DummyQuad());<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>    @Test<a name="line.59"></a>
+<span class="sourceLineNo">060</span>    public void removeSPO() throws Exception {<a name="line.60"></a>
+<span class="sourceLineNo">061</span>        dataset.remove(null, new DummyIRI(0), new DummyIRI(0), new DummyIRI(0));<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    }<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span>    @Test<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    public void size() throws Exception {<a name="line.65"></a>
+<span class="sourceLineNo">066</span>        assertEquals(1, dataset.size());<a name="line.66"></a>
+<span class="sourceLineNo">067</span>    }<a name="line.67"></a>
+<span class="sourceLineNo">068</span><a name="line.68"></a>
+<span class="sourceLineNo">069</span>    @Test<a name="line.69"></a>
+<span class="sourceLineNo">070</span>    public void stream() throws Exception {<a name="line.70"></a>
+<span class="sourceLineNo">071</span>        assertEquals(new DummyQuad(), dataset.stream().findAny().get());<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    }<a name="line.72"></a>
+<span class="sourceLineNo">073</span><a name="line.73"></a>
+<span class="sourceLineNo">074</span>    @Test<a name="line.74"></a>
+<span class="sourceLineNo">075</span>    public void streamFiltered() throws Exception {<a name="line.75"></a>
+<span class="sourceLineNo">076</span>        assertEquals(new DummyQuad(), dataset.stream(null, null, null, null).findAny().get());<a name="line.76"></a>
+<span class="sourceLineNo">077</span>        assertEquals(new DummyQuad(),<a name="line.77"></a>
+<span class="sourceLineNo">078</span>                dataset.stream(null, new DummyIRI(1), new DummyIRI(2), new DummyIRI(3)).findAny().get());<a name="line.78"></a>
+<span class="sourceLineNo">079</span>        assertFalse(dataset.stream(null, new DummyIRI(0), new DummyIRI(0), new DummyIRI(0)).findAny().isPresent());<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>    @Test<a name="line.82"></a>
+<span class="sourceLineNo">083</span>    public void getGraph() throws Exception {<a name="line.83"></a>
+<span class="sourceLineNo">084</span>        assertTrue(dataset.getGraph() instanceof DummyGraph);<a name="line.84"></a>
+<span class="sourceLineNo">085</span>    }<a name="line.85"></a>
+<span class="sourceLineNo">086</span>    <a name="line.86"></a>
+<span class="sourceLineNo">087</span>    @Test<a name="line.87"></a>
+<span class="sourceLineNo">088</span>    public void getGraphNull() throws Exception {<a name="line.88"></a>
+<span class="sourceLineNo">089</span>        assertTrue(dataset.getGraph(null).get() instanceof DummyGraph);<a name="line.89"></a>
+<span class="sourceLineNo">090</span>    }<a name="line.90"></a>
+<span class="sourceLineNo">091</span><a name="line.91"></a>
+<span class="sourceLineNo">092</span>    @Test<a name="line.92"></a>
+<span class="sourceLineNo">093</span>    public void getGraphNamed() throws Exception {<a name="line.93"></a>
+<span class="sourceLineNo">094</span>        assertFalse(dataset.getGraph(new DummyIRI(0)).isPresent());<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>    @Test<a name="line.97"></a>
+<span class="sourceLineNo">098</span>    public void getGraphNames() throws Exception {<a name="line.98"></a>
+<span class="sourceLineNo">099</span>        assertFalse(dataset.getGraphNames().findAny().isPresent());<a name="line.99"></a>
+<span class="sourceLineNo">100</span>    }<a name="line.100"></a>
+<span class="sourceLineNo">101</span>}<a name="line.101"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DummyGraphTest.html
==============================================================================
--- websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DummyGraphTest.html (added)
+++ websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DummyGraphTest.html Wed Nov 30 23:45:19 2016
@@ -0,0 +1,156 @@
+<!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 static org.junit.Assert.*;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.junit.Test;<a name="line.22"></a>
+<span class="sourceLineNo">023</span><a name="line.23"></a>
+<span class="sourceLineNo">024</span>public class DummyGraphTest {<a name="line.24"></a>
+<span class="sourceLineNo">025</span>    Graph graph = new DummyGraph();<a name="line.25"></a>
+<span class="sourceLineNo">026</span><a name="line.26"></a>
+<span class="sourceLineNo">027</span>    @Test<a name="line.27"></a>
+<span class="sourceLineNo">028</span>    public void add() throws Exception {<a name="line.28"></a>
+<span class="sourceLineNo">029</span>        graph.add(new DummyTriple());<a name="line.29"></a>
+<span class="sourceLineNo">030</span>    }<a name="line.30"></a>
+<span class="sourceLineNo">031</span><a name="line.31"></a>
+<span class="sourceLineNo">032</span>    @Test<a name="line.32"></a>
+<span class="sourceLineNo">033</span>    public void addSPO() throws Exception {<a name="line.33"></a>
+<span class="sourceLineNo">034</span>        graph.add(new DummyIRI(1), new DummyIRI(2), new DummyIRI(3));<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>    @Test<a name="line.37"></a>
+<span class="sourceLineNo">038</span>    public void contains() throws Exception {<a name="line.38"></a>
+<span class="sourceLineNo">039</span>        assertTrue(graph.contains(new DummyTriple()));<a name="line.39"></a>
+<span class="sourceLineNo">040</span>    }<a name="line.40"></a>
+<span class="sourceLineNo">041</span><a name="line.41"></a>
+<span class="sourceLineNo">042</span>    @Test<a name="line.42"></a>
+<span class="sourceLineNo">043</span>    public void containsSPO() throws Exception {<a name="line.43"></a>
+<span class="sourceLineNo">044</span>        assertTrue(graph.contains(null, null, null));<a name="line.44"></a>
+<span class="sourceLineNo">045</span>        assertTrue(graph.contains(new DummyIRI(1), new DummyIRI(2), new DummyIRI(3)));<a name="line.45"></a>
+<span class="sourceLineNo">046</span>        assertFalse(graph.contains(new DummyIRI(0), new DummyIRI(0), new DummyIRI(0)));<a name="line.46"></a>
+<span class="sourceLineNo">047</span>    }<a name="line.47"></a>
+<span class="sourceLineNo">048</span><a name="line.48"></a>
+<span class="sourceLineNo">049</span>    @Test(expected = IllegalStateException.class)<a name="line.49"></a>
+<span class="sourceLineNo">050</span>    public void clearNotSupported() throws Exception {<a name="line.50"></a>
+<span class="sourceLineNo">051</span>        graph.clear();<a name="line.51"></a>
+<span class="sourceLineNo">052</span>    }<a name="line.52"></a>
+<span class="sourceLineNo">053</span><a name="line.53"></a>
+<span class="sourceLineNo">054</span>    @Test(expected = IllegalStateException.class)<a name="line.54"></a>
+<span class="sourceLineNo">055</span>    public void remove() throws Exception {<a name="line.55"></a>
+<span class="sourceLineNo">056</span>        graph.remove(new DummyTriple());<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>    @Test<a name="line.59"></a>
+<span class="sourceLineNo">060</span>    public void removeSPO() throws Exception {<a name="line.60"></a>
+<span class="sourceLineNo">061</span>        graph.remove(new DummyIRI(0), new DummyIRI(0), new DummyIRI(0));<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    }<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span>    @Test<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    public void size() throws Exception {<a name="line.65"></a>
+<span class="sourceLineNo">066</span>        assertEquals(1, graph.size());<a name="line.66"></a>
+<span class="sourceLineNo">067</span>    }<a name="line.67"></a>
+<span class="sourceLineNo">068</span><a name="line.68"></a>
+<span class="sourceLineNo">069</span>    @Test<a name="line.69"></a>
+<span class="sourceLineNo">070</span>    public void stream() throws Exception {<a name="line.70"></a>
+<span class="sourceLineNo">071</span>        assertEquals(new DummyTriple(), graph.stream().findAny().get());<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    }<a name="line.72"></a>
+<span class="sourceLineNo">073</span><a name="line.73"></a>
+<span class="sourceLineNo">074</span>    @Test<a name="line.74"></a>
+<span class="sourceLineNo">075</span>    public void streamFiltered() throws Exception {<a name="line.75"></a>
+<span class="sourceLineNo">076</span>        assertEquals(new DummyTriple(), graph.stream(null, null, null).findAny().get());<a name="line.76"></a>
+<span class="sourceLineNo">077</span>        assertEquals(new DummyTriple(),<a name="line.77"></a>
+<span class="sourceLineNo">078</span>                graph.stream(new DummyIRI(1), new DummyIRI(2), new DummyIRI(3)).findAny().get());<a name="line.78"></a>
+<span class="sourceLineNo">079</span>        assertFalse(graph.stream(new DummyIRI(0), new DummyIRI(0), new DummyIRI(0)).findAny().isPresent());<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>    <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>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DummyIRITest.html
==============================================================================
--- websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DummyIRITest.html (added)
+++ websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DummyIRITest.html Wed Nov 30 23:45:19 2016
@@ -0,0 +1,128 @@
+<!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 static org.junit.Assert.*;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.junit.Test;<a name="line.22"></a>
+<span class="sourceLineNo">023</span><a name="line.23"></a>
+<span class="sourceLineNo">024</span>public class DummyIRITest {<a name="line.24"></a>
+<span class="sourceLineNo">025</span>    DummyIRI iri = new DummyIRI(1337);<a name="line.25"></a>
+<span class="sourceLineNo">026</span><a name="line.26"></a>
+<span class="sourceLineNo">027</span>    @Test<a name="line.27"></a>
+<span class="sourceLineNo">028</span>    public void i() throws Exception {<a name="line.28"></a>
+<span class="sourceLineNo">029</span>        assertEquals(1337, iri.i);<a name="line.29"></a>
+<span class="sourceLineNo">030</span>    }<a name="line.30"></a>
+<span class="sourceLineNo">031</span><a name="line.31"></a>
+<span class="sourceLineNo">032</span>    @Test<a name="line.32"></a>
+<span class="sourceLineNo">033</span>    public void equals() throws Exception {<a name="line.33"></a>
+<span class="sourceLineNo">034</span>        assertEquals(iri, new DummyIRI(1337));<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>    @Test<a name="line.37"></a>
+<span class="sourceLineNo">038</span>    public void notEquals() throws Exception {<a name="line.38"></a>
+<span class="sourceLineNo">039</span>        assertNotEquals(iri, new DummyIRI(1));<a name="line.39"></a>
+<span class="sourceLineNo">040</span>    }<a name="line.40"></a>
+<span class="sourceLineNo">041</span><a name="line.41"></a>
+<span class="sourceLineNo">042</span>    @Test<a name="line.42"></a>
+<span class="sourceLineNo">043</span>    public void ntriplesString() throws Exception {<a name="line.43"></a>
+<span class="sourceLineNo">044</span>        assertEquals("&lt;http://example.com/1337&gt;", iri.ntriplesString());<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>    @Test<a name="line.47"></a>
+<span class="sourceLineNo">048</span>    public void getIRIString() throws Exception {<a name="line.48"></a>
+<span class="sourceLineNo">049</span>        assertEquals("http://example.com/1337", iri.getIRIString());<a name="line.49"></a>
+<span class="sourceLineNo">050</span>    }<a name="line.50"></a>
+<span class="sourceLineNo">051</span><a name="line.51"></a>
+<span class="sourceLineNo">052</span>    @Test<a name="line.52"></a>
+<span class="sourceLineNo">053</span>    public void testHashCode() throws Exception {<a name="line.53"></a>
+<span class="sourceLineNo">054</span>        assertEquals("http://example.com/1337".hashCode(), iri.hashCode());<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>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DummyQuadTest.html
==============================================================================
--- websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DummyQuadTest.html (added)
+++ websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DummyQuadTest.html Wed Nov 30 23:45:19 2016
@@ -0,0 +1,130 @@
+<!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 static org.junit.Assert.*;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import java.util.Objects;<a name="line.22"></a>
+<span class="sourceLineNo">023</span><a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.junit.Test;<a name="line.24"></a>
+<span class="sourceLineNo">025</span><a name="line.25"></a>
+<span class="sourceLineNo">026</span>public class DummyQuadTest {<a name="line.26"></a>
+<span class="sourceLineNo">027</span>    Quad quad = new DummyQuad();<a name="line.27"></a>
+<span class="sourceLineNo">028</span><a name="line.28"></a>
+<span class="sourceLineNo">029</span>    @Test<a name="line.29"></a>
+<span class="sourceLineNo">030</span>    public void getGraphName() throws Exception {<a name="line.30"></a>
+<span class="sourceLineNo">031</span>        assertFalse(quad.getGraphName().isPresent());<a name="line.31"></a>
+<span class="sourceLineNo">032</span>    }<a name="line.32"></a>
+<span class="sourceLineNo">033</span><a name="line.33"></a>
+<span class="sourceLineNo">034</span>    @Test<a name="line.34"></a>
+<span class="sourceLineNo">035</span>    public void getSubject() throws Exception {<a name="line.35"></a>
+<span class="sourceLineNo">036</span>        assertEquals(1, ((DummyIRI) quad.getSubject()).i);<a name="line.36"></a>
+<span class="sourceLineNo">037</span>    }<a name="line.37"></a>
+<span class="sourceLineNo">038</span>    @Test<a name="line.38"></a>
+<span class="sourceLineNo">039</span>    public void getPredicate() throws Exception {<a name="line.39"></a>
+<span class="sourceLineNo">040</span>        assertEquals(2, ((DummyIRI) quad.getPredicate()).i);<a name="line.40"></a>
+<span class="sourceLineNo">041</span>    }<a name="line.41"></a>
+<span class="sourceLineNo">042</span>    @Test<a name="line.42"></a>
+<span class="sourceLineNo">043</span>    public void getObject() throws Exception {<a name="line.43"></a>
+<span class="sourceLineNo">044</span>        assertEquals(3, ((DummyIRI) quad.getObject()).i);<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>    @Test<a name="line.47"></a>
+<span class="sourceLineNo">048</span>    public void equals() throws Exception {<a name="line.48"></a>
+<span class="sourceLineNo">049</span>        assertEquals(quad, new DummyQuad());<a name="line.49"></a>
+<span class="sourceLineNo">050</span>    }<a name="line.50"></a>
+<span class="sourceLineNo">051</span>    <a name="line.51"></a>
+<span class="sourceLineNo">052</span>    @Test<a name="line.52"></a>
+<span class="sourceLineNo">053</span>    public void testHashCode() {<a name="line.53"></a>
+<span class="sourceLineNo">054</span>        final int expected = Objects.hash(quad.getSubject(), quad.getPredicate(), quad.getObject(), quad.getGraphName()); <a name="line.54"></a>
+<span class="sourceLineNo">055</span>        assertEquals(expected, quad.hashCode());<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><a name="line.58"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DummyTripleTest.html
==============================================================================
--- websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DummyTripleTest.html (added)
+++ websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/DummyTripleTest.html Wed Nov 30 23:45:19 2016
@@ -0,0 +1,125 @@
+<!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 static org.junit.Assert.*;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import java.util.Objects;<a name="line.22"></a>
+<span class="sourceLineNo">023</span><a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.junit.Test;<a name="line.24"></a>
+<span class="sourceLineNo">025</span><a name="line.25"></a>
+<span class="sourceLineNo">026</span>public class DummyTripleTest {<a name="line.26"></a>
+<span class="sourceLineNo">027</span>    Triple triple = new DummyTriple();<a name="line.27"></a>
+<span class="sourceLineNo">028</span><a name="line.28"></a>
+<span class="sourceLineNo">029</span>    @Test<a name="line.29"></a>
+<span class="sourceLineNo">030</span>    public void getSubject() throws Exception {<a name="line.30"></a>
+<span class="sourceLineNo">031</span>        assertEquals(1, ((DummyIRI) triple.getSubject()).i);<a name="line.31"></a>
+<span class="sourceLineNo">032</span>    }<a name="line.32"></a>
+<span class="sourceLineNo">033</span>    @Test<a name="line.33"></a>
+<span class="sourceLineNo">034</span>    public void getPredicate() throws Exception {<a name="line.34"></a>
+<span class="sourceLineNo">035</span>        assertEquals(2, ((DummyIRI) triple.getPredicate()).i);<a name="line.35"></a>
+<span class="sourceLineNo">036</span>    }<a name="line.36"></a>
+<span class="sourceLineNo">037</span>    @Test<a name="line.37"></a>
+<span class="sourceLineNo">038</span>    public void getObject() throws Exception {<a name="line.38"></a>
+<span class="sourceLineNo">039</span>        assertEquals(3, ((DummyIRI) triple.getObject()).i);<a name="line.39"></a>
+<span class="sourceLineNo">040</span>    }<a name="line.40"></a>
+<span class="sourceLineNo">041</span>    <a name="line.41"></a>
+<span class="sourceLineNo">042</span>    @Test<a name="line.42"></a>
+<span class="sourceLineNo">043</span>    public void equals() throws Exception {<a name="line.43"></a>
+<span class="sourceLineNo">044</span>        assertEquals(triple, new DummyTriple());<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>    @Test<a name="line.47"></a>
+<span class="sourceLineNo">048</span>    public void testHashCode() {<a name="line.48"></a>
+<span class="sourceLineNo">049</span>        final int expected = Objects.hash(triple.getSubject(), triple.getPredicate(), triple.getObject()); <a name="line.49"></a>
+<span class="sourceLineNo">050</span>        assertEquals(expected, triple.hashCode());<a name="line.50"></a>
+<span class="sourceLineNo">051</span>    }<a name="line.51"></a>
+<span class="sourceLineNo">052</span>}<a name="line.52"></a>
+<span class="sourceLineNo">053</span><a name="line.53"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/RDFSyntaxTest.html
==============================================================================
--- websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/RDFSyntaxTest.html (added)
+++ websites/staging/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/api/RDFSyntaxTest.html Wed Nov 30 23:45:19 2016
@@ -0,0 +1,193 @@
+<!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 static org.junit.Assert.*;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import java.util.Optional;<a name="line.22"></a>
+<span class="sourceLineNo">023</span><a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.junit.Test;<a name="line.24"></a>
+<span class="sourceLineNo">025</span><a name="line.25"></a>
+<span class="sourceLineNo">026</span>public class RDFSyntaxTest {<a name="line.26"></a>
+<span class="sourceLineNo">027</span><a name="line.27"></a>
+<span class="sourceLineNo">028</span>    @Test<a name="line.28"></a>
+<span class="sourceLineNo">029</span>    public void byFileExtension() throws Exception {<a name="line.29"></a>
+<span class="sourceLineNo">030</span>        assertEquals(RDFSyntax.JSONLD, RDFSyntax.byFileExtension(".jsonld").get());<a name="line.30"></a>
+<span class="sourceLineNo">031</span>        assertEquals(RDFSyntax.NQUADS, RDFSyntax.byFileExtension(".nq").get());<a name="line.31"></a>
+<span class="sourceLineNo">032</span>        assertEquals(RDFSyntax.NTRIPLES, RDFSyntax.byFileExtension(".nt").get());<a name="line.32"></a>
+<span class="sourceLineNo">033</span>        assertEquals(RDFSyntax.RDFA_HTML, RDFSyntax.byFileExtension(".html").get());<a name="line.33"></a>
+<span class="sourceLineNo">034</span>        assertEquals(RDFSyntax.RDFA_XHTML, RDFSyntax.byFileExtension(".xhtml").get());<a name="line.34"></a>
+<span class="sourceLineNo">035</span>        assertEquals(RDFSyntax.RDFXML, RDFSyntax.byFileExtension(".rdf").get());<a name="line.35"></a>
+<span class="sourceLineNo">036</span>        assertEquals(RDFSyntax.TRIG, RDFSyntax.byFileExtension(".trig").get());<a name="line.36"></a>
+<span class="sourceLineNo">037</span>        assertEquals(RDFSyntax.TURTLE, RDFSyntax.byFileExtension(".ttl").get());<a name="line.37"></a>
+<span class="sourceLineNo">038</span>    }<a name="line.38"></a>
+<span class="sourceLineNo">039</span><a name="line.39"></a>
+<span class="sourceLineNo">040</span>    @Test<a name="line.40"></a>
+<span class="sourceLineNo">041</span>    public void byFileExtensionFailsWithoutDot() throws Exception {<a name="line.41"></a>
+<span class="sourceLineNo">042</span>        assertEquals(Optional.empty(), RDFSyntax.byFileExtension("rdf"));<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>    @Test<a name="line.45"></a>
+<span class="sourceLineNo">046</span>    public void byFileExtensionLowerCase() throws Exception {<a name="line.46"></a>
+<span class="sourceLineNo">047</span>        assertEquals(RDFSyntax.TURTLE, RDFSyntax.byFileExtension(".TtL").get());<a name="line.47"></a>
+<span class="sourceLineNo">048</span>    }<a name="line.48"></a>
+<span class="sourceLineNo">049</span><a name="line.49"></a>
+<span class="sourceLineNo">050</span>    @Test<a name="line.50"></a>
+<span class="sourceLineNo">051</span>    public void byFileExtensionUnknown() throws Exception {<a name="line.51"></a>
+<span class="sourceLineNo">052</span>        assertEquals(Optional.empty(), RDFSyntax.byFileExtension(".tar"));<a name="line.52"></a>
+<span class="sourceLineNo">053</span>    }<a name="line.53"></a>
+<span class="sourceLineNo">054</span><a name="line.54"></a>
+<span class="sourceLineNo">055</span>    @Test<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    public void byMediaType() throws Exception {<a name="line.56"></a>
+<span class="sourceLineNo">057</span>        assertEquals(RDFSyntax.JSONLD, RDFSyntax.byMediaType("application/ld+json").get());<a name="line.57"></a>
+<span class="sourceLineNo">058</span>        assertEquals(RDFSyntax.NQUADS, RDFSyntax.byMediaType("application/n-quads").get());<a name="line.58"></a>
+<span class="sourceLineNo">059</span>        assertEquals(RDFSyntax.NTRIPLES, RDFSyntax.byMediaType("application/n-triples").get());<a name="line.59"></a>
+<span class="sourceLineNo">060</span>        assertEquals(RDFSyntax.RDFA_HTML, RDFSyntax.byMediaType("text/html").get());<a name="line.60"></a>
+<span class="sourceLineNo">061</span>        assertEquals(RDFSyntax.RDFA_XHTML, RDFSyntax.byMediaType("application/xhtml+xml").get());<a name="line.61"></a>
+<span class="sourceLineNo">062</span>        assertEquals(RDFSyntax.RDFXML, RDFSyntax.byMediaType("application/rdf+xml").get());<a name="line.62"></a>
+<span class="sourceLineNo">063</span>        assertEquals(RDFSyntax.TRIG, RDFSyntax.byMediaType("application/trig").get());<a name="line.63"></a>
+<span class="sourceLineNo">064</span>        assertEquals(RDFSyntax.TURTLE, RDFSyntax.byMediaType("text/turtle").get());<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    }<a name="line.65"></a>
+<span class="sourceLineNo">066</span><a name="line.66"></a>
+<span class="sourceLineNo">067</span>    @Test<a name="line.67"></a>
+<span class="sourceLineNo">068</span>    public void byMediaTypeContentType() throws Exception {<a name="line.68"></a>
+<span class="sourceLineNo">069</span>        assertEquals(RDFSyntax.TURTLE, RDFSyntax.byMediaType("text/turtle; charset=\"UTF-8\"").get());<a name="line.69"></a>
+<span class="sourceLineNo">070</span>        assertEquals(RDFSyntax.TURTLE, RDFSyntax.byMediaType("text/turtle ; charset=\"UTF-8\"").get());<a name="line.70"></a>
+<span class="sourceLineNo">071</span>        assertEquals(RDFSyntax.TURTLE, RDFSyntax.byMediaType("text/turtle, text/plain").get());<a name="line.71"></a>
+<span class="sourceLineNo">072</span>        assertEquals(Optional.empty(), RDFSyntax.byMediaType(" text/turtle"));<a name="line.72"></a>
+<span class="sourceLineNo">073</span>    }<a name="line.73"></a>
+<span class="sourceLineNo">074</span><a name="line.74"></a>
+<span class="sourceLineNo">075</span>    @Test<a name="line.75"></a>
+<span class="sourceLineNo">076</span>    public void byMediaTypeLowerCase() throws Exception {<a name="line.76"></a>
+<span class="sourceLineNo">077</span>        assertEquals(RDFSyntax.JSONLD, RDFSyntax.byMediaType("APPLICATION/ld+JSON").get());<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>    @Test<a name="line.80"></a>
+<span class="sourceLineNo">081</span>    public void byMediaTypeUnknown() throws Exception {<a name="line.81"></a>
+<span class="sourceLineNo">082</span>        assertEquals(Optional.empty(), RDFSyntax.byMediaType("application/octet-stream"));<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>    @Test<a name="line.85"></a>
+<span class="sourceLineNo">086</span>    public void fileExtension() throws Exception {<a name="line.86"></a>
+<span class="sourceLineNo">087</span>        assertEquals(".jsonld", RDFSyntax.JSONLD.fileExtension);<a name="line.87"></a>
+<span class="sourceLineNo">088</span>        assertEquals(".nq", RDFSyntax.NQUADS.fileExtension);<a name="line.88"></a>
+<span class="sourceLineNo">089</span>        assertEquals(".nt", RDFSyntax.NTRIPLES.fileExtension);<a name="line.89"></a>
+<span class="sourceLineNo">090</span>        assertEquals(".html", RDFSyntax.RDFA_HTML.fileExtension);<a name="line.90"></a>
+<span class="sourceLineNo">091</span>        assertEquals(".xhtml", RDFSyntax.RDFA_XHTML.fileExtension);<a name="line.91"></a>
+<span class="sourceLineNo">092</span>        assertEquals(".rdf", RDFSyntax.RDFXML.fileExtension);<a name="line.92"></a>
+<span class="sourceLineNo">093</span>        assertEquals(".trig", RDFSyntax.TRIG.fileExtension);<a name="line.93"></a>
+<span class="sourceLineNo">094</span>        assertEquals(".ttl", RDFSyntax.TURTLE.fileExtension);<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>    @Test<a name="line.97"></a>
+<span class="sourceLineNo">098</span>    public void mediaType() throws Exception {<a name="line.98"></a>
+<span class="sourceLineNo">099</span>        assertEquals("application/ld+json", RDFSyntax.JSONLD.mediaType);<a name="line.99"></a>
+<span class="sourceLineNo">100</span>        assertEquals("application/n-quads", RDFSyntax.NQUADS.mediaType);<a name="line.100"></a>
+<span class="sourceLineNo">101</span>        assertEquals("application/n-triples", RDFSyntax.NTRIPLES.mediaType);<a name="line.101"></a>
+<span class="sourceLineNo">102</span>        assertEquals("text/html", RDFSyntax.RDFA_HTML.mediaType);<a name="line.102"></a>
+<span class="sourceLineNo">103</span>        assertEquals("application/xhtml+xml", RDFSyntax.RDFA_XHTML.mediaType);<a name="line.103"></a>
+<span class="sourceLineNo">104</span>        assertEquals("application/rdf+xml", RDFSyntax.RDFXML.mediaType);<a name="line.104"></a>
+<span class="sourceLineNo">105</span>        assertEquals("application/trig", RDFSyntax.TRIG.mediaType);<a name="line.105"></a>
+<span class="sourceLineNo">106</span>        assertEquals("text/turtle", RDFSyntax.TURTLE.mediaType);<a name="line.106"></a>
+<span class="sourceLineNo">107</span>    }<a name="line.107"></a>
+<span class="sourceLineNo">108</span><a name="line.108"></a>
+<span class="sourceLineNo">109</span>    @Test<a name="line.109"></a>
+<span class="sourceLineNo">110</span>    public void name() throws Exception {<a name="line.110"></a>
+<span class="sourceLineNo">111</span>        assertEquals("JSON-LD 1.0", RDFSyntax.JSONLD.toString());<a name="line.111"></a>
+<span class="sourceLineNo">112</span>        assertEquals("RDF 1.1 Turtle", RDFSyntax.TURTLE.toString());<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>    @Test<a name="line.115"></a>
+<span class="sourceLineNo">116</span>    public void valueOf() throws Exception {<a name="line.116"></a>
+<span class="sourceLineNo">117</span>        assertEquals(RDFSyntax.TURTLE, RDFSyntax.valueOf("TURTLE"));<a name="line.117"></a>
+<span class="sourceLineNo">118</span>        // No need to test all of them, we'll trust Enum<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>}<a name="line.121"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file



Mime
View raw message