commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1001192 [23/30] - in /websites/production/commonsrdf/content: ./ apidocs/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apache/commons/rdf/experimental/ apidocs/org/apache/commons/rdf/simple/ apidocs/org/apache/commons/rdf/simple/class-u...
Date Wed, 16 Nov 2016 10:57:30 GMT
Added: websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/SimpleGraphTest.html
==============================================================================
--- websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/SimpleGraphTest.html (added)
+++ websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/SimpleGraphTest.html Wed Nov 16 10:57:28 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.simple;<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.assertTrue;<a name="line.20"></a>
+<span class="sourceLineNo">021</span><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import org.apache.commons.rdf.api.AbstractGraphTest;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import org.apache.commons.rdf.api.RDF;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.junit.Assume;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.junit.Test;<a name="line.25"></a>
+<span class="sourceLineNo">026</span><a name="line.26"></a>
+<span class="sourceLineNo">027</span>/**<a name="line.27"></a>
+<span class="sourceLineNo">028</span> * Test SimpleRDF with AbstractGraphTest<a name="line.28"></a>
+<span class="sourceLineNo">029</span> */<a name="line.29"></a>
+<span class="sourceLineNo">030</span>public class SimpleGraphTest extends AbstractGraphTest {<a name="line.30"></a>
+<span class="sourceLineNo">031</span><a name="line.31"></a>
+<span class="sourceLineNo">032</span>    @Override<a name="line.32"></a>
+<span class="sourceLineNo">033</span>    public RDF createFactory() {<a name="line.33"></a>
+<span class="sourceLineNo">034</span>        return new SimpleRDF();<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 graphToString() {<a name="line.38"></a>
+<span class="sourceLineNo">039</span>        Assume.assumeNotNull(aliceName, companyName);<a name="line.39"></a>
+<span class="sourceLineNo">040</span>        // System.out.println(graph);<a name="line.40"></a>
+<span class="sourceLineNo">041</span>        assertTrue(<a name="line.41"></a>
+<span class="sourceLineNo">042</span>                graph.toString().contains("&lt;http://example.com/alice&gt; &lt;http://xmlns.com/foaf/0.1/name&gt; \"Alice\" ."));<a name="line.42"></a>
+<span class="sourceLineNo">043</span>        assertTrue(graph.toString().contains(" &lt;http://xmlns.com/foaf/0.1/name&gt; \"A company\" ."));<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><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/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/SimpleRDFTest.html
==============================================================================
--- websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/SimpleRDFTest.html (added)
+++ websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/SimpleRDFTest.html Wed Nov 16 10:57:28 2016
@@ -0,0 +1,105 @@
+<!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.simple;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import org.apache.commons.rdf.api.AbstractRDFTest;<a name="line.20"></a>
+<span class="sourceLineNo">021</span>import org.apache.commons.rdf.api.RDF;<a name="line.21"></a>
+<span class="sourceLineNo">022</span><a name="line.22"></a>
+<span class="sourceLineNo">023</span>/**<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * Simple RDF Test<a name="line.24"></a>
+<span class="sourceLineNo">025</span> */<a name="line.25"></a>
+<span class="sourceLineNo">026</span>public class SimpleRDFTest extends AbstractRDFTest {<a name="line.26"></a>
+<span class="sourceLineNo">027</span><a name="line.27"></a>
+<span class="sourceLineNo">028</span>    @Override<a name="line.28"></a>
+<span class="sourceLineNo">029</span>    public RDF createFactory() {<a name="line.29"></a>
+<span class="sourceLineNo">030</span>        return new SimpleRDF();<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>}<a name="line.33"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/SimpleServiceLoaderTest.html
==============================================================================
--- websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/SimpleServiceLoaderTest.html (added)
+++ websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/SimpleServiceLoaderTest.html Wed Nov 16 10:57:28 2016
@@ -0,0 +1,112 @@
+<!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><a name="line.18"></a>
+<span class="sourceLineNo">019</span>package org.apache.commons.rdf.simple;<a name="line.19"></a>
+<span class="sourceLineNo">020</span><a name="line.20"></a>
+<span class="sourceLineNo">021</span>import static org.junit.Assert.fail;<a name="line.21"></a>
+<span class="sourceLineNo">022</span><a name="line.22"></a>
+<span class="sourceLineNo">023</span>import java.util.ServiceLoader;<a name="line.23"></a>
+<span class="sourceLineNo">024</span><a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.commons.rdf.api.RDF;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.junit.Test;<a name="line.26"></a>
+<span class="sourceLineNo">027</span><a name="line.27"></a>
+<span class="sourceLineNo">028</span>public class SimpleServiceLoaderTest {<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 testServiceLoaderLookup() {<a name="line.31"></a>
+<span class="sourceLineNo">032</span>        ServiceLoader&lt;RDF&gt; loader = ServiceLoader.load(RDF.class);<a name="line.32"></a>
+<span class="sourceLineNo">033</span>        for (RDF impl : loader) {<a name="line.33"></a>
+<span class="sourceLineNo">034</span>            if (impl instanceof SimpleRDF) {<a name="line.34"></a>
+<span class="sourceLineNo">035</span>                return; // yay<a name="line.35"></a>
+<span class="sourceLineNo">036</span>            }<a name="line.36"></a>
+<span class="sourceLineNo">037</span>        }<a name="line.37"></a>
+<span class="sourceLineNo">038</span>        fail("SimpleRDF not found in ServiceLoader");<a name="line.38"></a>
+<span class="sourceLineNo">039</span>    }<a name="line.39"></a>
+<span class="sourceLineNo">040</span>}<a name="line.40"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/TestWritingGraph.html
==============================================================================
--- websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/TestWritingGraph.html (added)
+++ websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/TestWritingGraph.html Wed Nov 16 10:57:28 2016
@@ -0,0 +1,224 @@
+<!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.simple;<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><a name="line.21"></a>
+<span class="sourceLineNo">022</span>import java.nio.charset.StandardCharsets;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import java.nio.file.Files;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import java.nio.file.Path;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import java.util.ArrayList;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import java.util.Collections;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import java.util.List;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import java.util.stream.Stream;<a name="line.28"></a>
+<span class="sourceLineNo">029</span><a name="line.29"></a>
+<span class="sourceLineNo">030</span>import org.apache.commons.rdf.api.Graph;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>import org.apache.commons.rdf.api.IRI;<a name="line.31"></a>
+<span class="sourceLineNo">032</span>import org.apache.commons.rdf.api.RDF;<a name="line.32"></a>
+<span class="sourceLineNo">033</span>import org.apache.commons.rdf.api.Triple;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>import org.junit.AfterClass;<a name="line.34"></a>
+<span class="sourceLineNo">035</span>import org.junit.BeforeClass;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import org.junit.Test;<a name="line.36"></a>
+<span class="sourceLineNo">037</span><a name="line.37"></a>
+<span class="sourceLineNo">038</span>/**<a name="line.38"></a>
+<span class="sourceLineNo">039</span> * Test writing graph<a name="line.39"></a>
+<span class="sourceLineNo">040</span> */<a name="line.40"></a>
+<span class="sourceLineNo">041</span>public class TestWritingGraph {<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>     * 200k triples should do - about 7 MB on disk. Override with<a name="line.44"></a>
+<span class="sourceLineNo">045</span>     * -Dtriples=20000000 to exercise your memory banks.<a name="line.45"></a>
+<span class="sourceLineNo">046</span>     */<a name="line.46"></a>
+<span class="sourceLineNo">047</span>    private static final long TRIPLES = Long.getLong("triples", 200000L);<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>     * Run tests with -Dkeepfiles=true to inspect /tmp files *<a name="line.50"></a>
+<span class="sourceLineNo">051</span>     */<a name="line.51"></a>
+<span class="sourceLineNo">052</span>    private static boolean KEEP_FILES = Boolean.getBoolean("keepfiles");<a name="line.52"></a>
+<span class="sourceLineNo">053</span><a name="line.53"></a>
+<span class="sourceLineNo">054</span>    private static Graph graph;<a name="line.54"></a>
+<span class="sourceLineNo">055</span><a name="line.55"></a>
+<span class="sourceLineNo">056</span>    private static RDF factory;<a name="line.56"></a>
+<span class="sourceLineNo">057</span><a name="line.57"></a>
+<span class="sourceLineNo">058</span>    @BeforeClass<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    public static void createGraph() throws Exception {<a name="line.59"></a>
+<span class="sourceLineNo">060</span>        factory = new SimpleRDF();<a name="line.60"></a>
+<span class="sourceLineNo">061</span>        graph = factory.createGraph();<a name="line.61"></a>
+<span class="sourceLineNo">062</span>        IRI subject = factory.createIRI("subj");<a name="line.62"></a>
+<span class="sourceLineNo">063</span>        IRI predicate = factory.createIRI("pred");<a name="line.63"></a>
+<span class="sourceLineNo">064</span>        List&lt;IRI&gt; types = new ArrayList&lt;&gt;(Types.values());<a name="line.64"></a>
+<span class="sourceLineNo">065</span>        // Ensure we don't try to create a literal with rdf:langString but<a name="line.65"></a>
+<span class="sourceLineNo">066</span>        // without a language tag<a name="line.66"></a>
+<span class="sourceLineNo">067</span>        types.remove(Types.RDF_LANGSTRING);<a name="line.67"></a>
+<span class="sourceLineNo">068</span>        Collections.shuffle(types);<a name="line.68"></a>
+<span class="sourceLineNo">069</span>        for (int i = 0; i &lt; TRIPLES; i++) {<a name="line.69"></a>
+<span class="sourceLineNo">070</span>            if (i % 11 == 0) {<a name="line.70"></a>
+<span class="sourceLineNo">071</span>                graph.add(subject, predicate, factory.createBlankNode("Example " + i));<a name="line.71"></a>
+<span class="sourceLineNo">072</span>            } else if (i % 5 == 0) {<a name="line.72"></a>
+<span class="sourceLineNo">073</span>                graph.add(subject, predicate, factory.createLiteral("Example " + i, "en"));<a name="line.73"></a>
+<span class="sourceLineNo">074</span>            } else if (i % 3 == 0) {<a name="line.74"></a>
+<span class="sourceLineNo">075</span>                graph.add(subject, predicate, factory.createLiteral("Example " + i, types.get(i % types.size())));<a name="line.75"></a>
+<span class="sourceLineNo">076</span>            } else {<a name="line.76"></a>
+<span class="sourceLineNo">077</span>                graph.add(subject, predicate, factory.createLiteral("Example " + i));<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>    }<a name="line.80"></a>
+<span class="sourceLineNo">081</span><a name="line.81"></a>
+<span class="sourceLineNo">082</span>    @AfterClass<a name="line.82"></a>
+<span class="sourceLineNo">083</span>    public static void tearDownClass() throws Exception {<a name="line.83"></a>
+<span class="sourceLineNo">084</span>        graph.clear();<a name="line.84"></a>
+<span class="sourceLineNo">085</span>        graph = null;<a name="line.85"></a>
+<span class="sourceLineNo">086</span>    }<a name="line.86"></a>
+<span class="sourceLineNo">087</span><a name="line.87"></a>
+<span class="sourceLineNo">088</span>    @Test<a name="line.88"></a>
+<span class="sourceLineNo">089</span>    public void createGraphTiming() throws Exception {<a name="line.89"></a>
+<span class="sourceLineNo">090</span>        createGraph();<a name="line.90"></a>
+<span class="sourceLineNo">091</span>    }<a name="line.91"></a>
+<span class="sourceLineNo">092</span><a name="line.92"></a>
+<span class="sourceLineNo">093</span>    @Test<a name="line.93"></a>
+<span class="sourceLineNo">094</span>    public void countQuery() {<a name="line.94"></a>
+<span class="sourceLineNo">095</span>        IRI subject = factory.createIRI("subj");<a name="line.95"></a>
+<span class="sourceLineNo">096</span>        IRI predicate = factory.createIRI("pred");<a name="line.96"></a>
+<span class="sourceLineNo">097</span>        long count = graph.stream(subject, predicate, null).unordered().parallel().count();<a name="line.97"></a>
+<span class="sourceLineNo">098</span>        // System.out.println("Counted - " + count);<a name="line.98"></a>
+<span class="sourceLineNo">099</span>        assertEquals(count, TRIPLES);<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>
+<span class="sourceLineNo">102</span>    public static String tripleAsString(Triple t) {<a name="line.102"></a>
+<span class="sourceLineNo">103</span>        return t.getSubject().ntriplesString() + " " + t.getPredicate().ntriplesString() + " "<a name="line.103"></a>
+<span class="sourceLineNo">104</span>                + t.getObject().ntriplesString() + " .";<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>    @Test<a name="line.107"></a>
+<span class="sourceLineNo">108</span>    public void writeGraphFromStream() throws Exception {<a name="line.108"></a>
+<span class="sourceLineNo">109</span>        Path graphFile = Files.createTempFile("graph", ".nt");<a name="line.109"></a>
+<span class="sourceLineNo">110</span>        if (KEEP_FILES) {<a name="line.110"></a>
+<span class="sourceLineNo">111</span>            System.out.println("From stream: " + graphFile);<a name="line.111"></a>
+<span class="sourceLineNo">112</span>        } else {<a name="line.112"></a>
+<span class="sourceLineNo">113</span>            graphFile.toFile().deleteOnExit();<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>        Stream&lt;CharSequence&gt; stream = graph.stream().map(TestWritingGraph::tripleAsString);<a name="line.116"></a>
+<span class="sourceLineNo">117</span>        Files.write(graphFile, stream::iterator, StandardCharsets.UTF_8);<a name="line.117"></a>
+<span class="sourceLineNo">118</span>    }<a name="line.118"></a>
+<span class="sourceLineNo">119</span><a name="line.119"></a>
+<span class="sourceLineNo">120</span>    @Test<a name="line.120"></a>
+<span class="sourceLineNo">121</span>    public void writeGraphFromStreamFiltered() throws Exception {<a name="line.121"></a>
+<span class="sourceLineNo">122</span>        Path graphFile = Files.createTempFile("graph", ".nt");<a name="line.122"></a>
+<span class="sourceLineNo">123</span>        if (KEEP_FILES) {<a name="line.123"></a>
+<span class="sourceLineNo">124</span>            System.out.println("Filtered stream: " + graphFile);<a name="line.124"></a>
+<span class="sourceLineNo">125</span>        } else {<a name="line.125"></a>
+<span class="sourceLineNo">126</span>            graphFile.toFile().deleteOnExit();<a name="line.126"></a>
+<span class="sourceLineNo">127</span>        }<a name="line.127"></a>
+<span class="sourceLineNo">128</span><a name="line.128"></a>
+<span class="sourceLineNo">129</span>        IRI subject = factory.createIRI("subj");<a name="line.129"></a>
+<span class="sourceLineNo">130</span>        IRI predicate = factory.createIRI("pred");<a name="line.130"></a>
+<span class="sourceLineNo">131</span>        Stream&lt;CharSequence&gt; stream = graph.stream(subject, predicate, null).map(TestWritingGraph::tripleAsString);<a name="line.131"></a>
+<span class="sourceLineNo">132</span>        Files.write(graphFile, stream::iterator, StandardCharsets.UTF_8);<a name="line.132"></a>
+<span class="sourceLineNo">133</span><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>    @Test<a name="line.136"></a>
+<span class="sourceLineNo">137</span>    public void writeGraphFromStreamFilteredNoMatches() throws Exception {<a name="line.137"></a>
+<span class="sourceLineNo">138</span>        Path graphFile = Files.createTempFile("graph-empty-", ".nt");<a name="line.138"></a>
+<span class="sourceLineNo">139</span>        if (KEEP_FILES) {<a name="line.139"></a>
+<span class="sourceLineNo">140</span>            System.out.println("Filtered stream: " + graphFile);<a name="line.140"></a>
+<span class="sourceLineNo">141</span>        } else {<a name="line.141"></a>
+<span class="sourceLineNo">142</span>            graphFile.toFile().deleteOnExit();<a name="line.142"></a>
+<span class="sourceLineNo">143</span>        }<a name="line.143"></a>
+<span class="sourceLineNo">144</span><a name="line.144"></a>
+<span class="sourceLineNo">145</span>        IRI subject = factory.createIRI("nonexistent");<a name="line.145"></a>
+<span class="sourceLineNo">146</span>        IRI predicate = factory.createIRI("pred");<a name="line.146"></a>
+<span class="sourceLineNo">147</span>        Stream&lt;CharSequence&gt; stream = graph.stream(subject, predicate, null).map(Object::toString);<a name="line.147"></a>
+<span class="sourceLineNo">148</span>        Files.write(graphFile, stream::iterator, StandardCharsets.UTF_8);<a name="line.148"></a>
+<span class="sourceLineNo">149</span><a name="line.149"></a>
+<span class="sourceLineNo">150</span>    }<a name="line.150"></a>
+<span class="sourceLineNo">151</span><a name="line.151"></a>
+<span class="sourceLineNo">152</span>}<a name="line.152"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/TypesTest.html
==============================================================================
--- websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/TypesTest.html (added)
+++ websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/TypesTest.html Wed Nov 16 10:57:28 2016
@@ -0,0 +1,134 @@
+<!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.simple;<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>/**<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * Tests for the {@link org.apache.commons.rdf.simple.Types} enumeration.<a name="line.27"></a>
+<span class="sourceLineNo">028</span> */<a name="line.28"></a>
+<span class="sourceLineNo">029</span>public class TypesTest {<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 method for<a name="line.32"></a>
+<span class="sourceLineNo">033</span>     * {@link org.apache.commons.rdf.simple.Types#getIRIString()} .<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 final void testGetIRIString() {<a name="line.36"></a>
+<span class="sourceLineNo">037</span>        assertEquals("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString", Types.RDF_LANGSTRING.getIRIString());<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>    /**<a name="line.40"></a>
+<span class="sourceLineNo">041</span>     * Test method for<a name="line.41"></a>
+<span class="sourceLineNo">042</span>     * {@link org.apache.commons.rdf.simple.Types#ntriplesString()}.<a name="line.42"></a>
+<span class="sourceLineNo">043</span>     */<a name="line.43"></a>
+<span class="sourceLineNo">044</span>    @Test<a name="line.44"></a>
+<span class="sourceLineNo">045</span>    public final void testNtriplesString() {<a name="line.45"></a>
+<span class="sourceLineNo">046</span>        assertEquals("&lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#langString&gt;", Types.RDF_LANGSTRING.ntriplesString());<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>    /**<a name="line.49"></a>
+<span class="sourceLineNo">050</span>     * Test method for<a name="line.50"></a>
+<span class="sourceLineNo">051</span>     * {@link org.apache.commons.rdf.simple.Types#get(org.apache.commons.rdf.api.IRI)}<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<a name="line.54"></a>
+<span class="sourceLineNo">055</span>    public final void testGet() {<a name="line.55"></a>
+<span class="sourceLineNo">056</span>        assertTrue(Types.get(new IRIImpl("http://www.w3.org/2001/XMLSchema#boolean")).isPresent());<a name="line.56"></a>
+<span class="sourceLineNo">057</span>        assertEquals("http://www.w3.org/2001/XMLSchema#boolean",<a name="line.57"></a>
+<span class="sourceLineNo">058</span>                Types.get(new IRIImpl("http://www.w3.org/2001/XMLSchema#boolean")).get().getIRIString());<a name="line.58"></a>
+<span class="sourceLineNo">059</span>        assertFalse(Types.get(new IRIImpl("http://www.w3.org/2001/XMLSchema#nonExistent")).isPresent());<a name="line.59"></a>
+<span class="sourceLineNo">060</span>    }<a name="line.60"></a>
+<span class="sourceLineNo">061</span><a name="line.61"></a>
+<span class="sourceLineNo">062</span>}<a name="line.62"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParserTest.html
==============================================================================
--- websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParserTest.html (added)
+++ websites/production/commonsrdf/content/testapidocs/src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParserTest.html Wed Nov 16 10:57:28 2016
@@ -0,0 +1,322 @@
+<!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.simple.experimental;<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.assertNull;<a name="line.22"></a>
+<span class="sourceLineNo">023</span>import static org.junit.Assert.assertTrue;<a name="line.23"></a>
+<span class="sourceLineNo">024</span><a name="line.24"></a>
+<span class="sourceLineNo">025</span>import java.io.ByteArrayInputStream;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import java.io.IOException;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import java.io.InputStream;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import java.nio.file.Files;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import java.nio.file.Path;<a name="line.29"></a>
+<span class="sourceLineNo">030</span>import java.util.concurrent.TimeUnit;<a name="line.30"></a>
+<span class="sourceLineNo">031</span><a name="line.31"></a>
+<span class="sourceLineNo">032</span>import org.apache.commons.rdf.api.Graph;<a name="line.32"></a>
+<span class="sourceLineNo">033</span>import org.apache.commons.rdf.api.IRI;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>import org.apache.commons.rdf.api.Literal;<a name="line.34"></a>
+<span class="sourceLineNo">035</span>import org.apache.commons.rdf.api.RDFSyntax;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import org.apache.commons.rdf.api.RDFTerm;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import org.apache.commons.rdf.api.RDF;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import org.apache.commons.rdf.api.Triple;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>import org.apache.commons.rdf.experimental.RDFParser;<a name="line.39"></a>
+<span class="sourceLineNo">040</span>import org.apache.commons.rdf.simple.DummyRDFParserBuilder;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>import org.apache.commons.rdf.simple.SimpleRDF;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import org.apache.commons.rdf.simple.Types;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import org.junit.After;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import org.junit.Before;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import org.junit.Rule;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import org.junit.Test;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import org.junit.rules.ExpectedException;<a name="line.47"></a>
+<span class="sourceLineNo">048</span><a name="line.48"></a>
+<span class="sourceLineNo">049</span>public class AbstractRDFParserTest {<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span>    private RDF factory = new SimpleRDF();<a name="line.51"></a>
+<span class="sourceLineNo">052</span><a name="line.52"></a>
+<span class="sourceLineNo">053</span>    private DummyRDFParserBuilder dummyParser = new DummyRDFParserBuilder();<a name="line.53"></a>
+<span class="sourceLineNo">054</span>    private Path testNt;<a name="line.54"></a>
+<span class="sourceLineNo">055</span>    private Path testTtl;<a name="line.55"></a>
+<span class="sourceLineNo">056</span>    private Path testXml;<a name="line.56"></a>
+<span class="sourceLineNo">057</span><a name="line.57"></a>
+<span class="sourceLineNo">058</span>    @Before<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    public void createTempFile() throws IOException {<a name="line.59"></a>
+<span class="sourceLineNo">060</span>        testNt = Files.createTempFile("test", ".nt");<a name="line.60"></a>
+<span class="sourceLineNo">061</span>        testTtl = Files.createTempFile("test", ".ttl");<a name="line.61"></a>
+<span class="sourceLineNo">062</span>        testXml = Files.createTempFile("test", ".xml");<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span>        // No need to populate the files as the dummy parser<a name="line.64"></a>
+<span class="sourceLineNo">065</span>        // doesn't actually read anything<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>    @After<a name="line.68"></a>
+<span class="sourceLineNo">069</span>    public void deleteTempFiles() throws IOException {<a name="line.69"></a>
+<span class="sourceLineNo">070</span>        Files.deleteIfExists(testNt);<a name="line.70"></a>
+<span class="sourceLineNo">071</span>        Files.deleteIfExists(testTtl);<a name="line.71"></a>
+<span class="sourceLineNo">072</span>        Files.deleteIfExists(testXml);<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 guessRDFSyntax() throws Exception {<a name="line.76"></a>
+<span class="sourceLineNo">077</span>        assertEquals(RDFSyntax.NTRIPLES, AbstractRDFParser.guessRDFSyntax(testNt).get());<a name="line.77"></a>
+<span class="sourceLineNo">078</span>        assertEquals(RDFSyntax.TURTLE, AbstractRDFParser.guessRDFSyntax(testTtl).get());<a name="line.78"></a>
+<span class="sourceLineNo">079</span>        assertFalse(AbstractRDFParser.guessRDFSyntax(testXml).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>    private void checkGraph(Graph g) throws Exception {<a name="line.82"></a>
+<span class="sourceLineNo">083</span>        assertTrue(g.size() &gt; 0);<a name="line.83"></a>
+<span class="sourceLineNo">084</span>        IRI greeting = factory.createIRI("http://example.com/greeting");<a name="line.84"></a>
+<span class="sourceLineNo">085</span>        // Should only have parsed once!<a name="line.85"></a>
+<span class="sourceLineNo">086</span>        assertEquals(1, g.stream(null, greeting, null).count());<a name="line.86"></a>
+<span class="sourceLineNo">087</span>        Triple triple = g.stream(null, greeting, null).findAny().get();<a name="line.87"></a>
+<span class="sourceLineNo">088</span>        assertTrue(triple.getSubject() instanceof IRI);<a name="line.88"></a>
+<span class="sourceLineNo">089</span>        IRI parsing = (IRI) triple.getSubject();<a name="line.89"></a>
+<span class="sourceLineNo">090</span>        assertTrue(parsing.getIRIString().startsWith("urn:uuid:"));<a name="line.90"></a>
+<span class="sourceLineNo">091</span><a name="line.91"></a>
+<span class="sourceLineNo">092</span>        assertEquals("http://example.com/greeting", triple.getPredicate().getIRIString());<a name="line.92"></a>
+<span class="sourceLineNo">093</span><a name="line.93"></a>
+<span class="sourceLineNo">094</span>        assertTrue(triple.getObject() instanceof Literal);<a name="line.94"></a>
+<span class="sourceLineNo">095</span>        Literal literal = (Literal) triple.getObject();<a name="line.95"></a>
+<span class="sourceLineNo">096</span>        assertEquals("Hello world", literal.getLexicalForm());<a name="line.96"></a>
+<span class="sourceLineNo">097</span>        assertFalse(literal.getLanguageTag().isPresent());<a name="line.97"></a>
+<span class="sourceLineNo">098</span>        assertEquals(Types.XSD_STRING, literal.getDatatype());<a name="line.98"></a>
+<span class="sourceLineNo">099</span><a name="line.99"></a>
+<span class="sourceLineNo">100</span>        // Check uniqueness of properties that are always present<a name="line.100"></a>
+<span class="sourceLineNo">101</span>        assertEquals(1, g.stream(null, factory.createIRI("http://example.com/source"), null).count());<a name="line.101"></a>
+<span class="sourceLineNo">102</span><a name="line.102"></a>
+<span class="sourceLineNo">103</span>        // Check optional properties that are unique<a name="line.103"></a>
+<span class="sourceLineNo">104</span>        assertTrue(2 &gt; g.stream(null, factory.createIRI("http://example.com/base"), null).count());<a name="line.104"></a>
+<span class="sourceLineNo">105</span>        assertTrue(2 &gt; g.stream(null, factory.createIRI("http://example.com/contentType"), null).count());<a name="line.105"></a>
+<span class="sourceLineNo">106</span>        assertTrue(2 &gt; g.stream(null, factory.createIRI("http://example.com/contentTypeSyntax"), null).count());<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 parseFile() throws Exception {<a name="line.110"></a>
+<span class="sourceLineNo">111</span>        Graph g = factory.createGraph();<a name="line.111"></a>
+<span class="sourceLineNo">112</span>        RDFParser parser = dummyParser.source(testNt).target(g);<a name="line.112"></a>
+<span class="sourceLineNo">113</span>        parser.parse().get(5, TimeUnit.SECONDS);<a name="line.113"></a>
+<span class="sourceLineNo">114</span>        checkGraph(g);<a name="line.114"></a>
+<span class="sourceLineNo">115</span>        // FIXME: this could potentially break if the equivalent of /tmp<a name="line.115"></a>
+<span class="sourceLineNo">116</span>        // includes<a name="line.116"></a>
+<span class="sourceLineNo">117</span>        // international characters<a name="line.117"></a>
+<span class="sourceLineNo">118</span>        assertEquals("&lt;" + testNt.toUri().toString() + "&gt;", firstPredicate(g, "source"));<a name="line.118"></a>
+<span class="sourceLineNo">119</span>        // Should be set to the file path<a name="line.119"></a>
+<span class="sourceLineNo">120</span>        assertEquals("&lt;" + testNt.toUri().toString() + "&gt;", firstPredicate(g, "base"));<a name="line.120"></a>
+<span class="sourceLineNo">121</span><a name="line.121"></a>
+<span class="sourceLineNo">122</span>        // Should NOT have guessed the content type<a name="line.122"></a>
+<span class="sourceLineNo">123</span>        assertNull(firstPredicate(g, "contentType"));<a name="line.123"></a>
+<span class="sourceLineNo">124</span>        assertNull(firstPredicate(g, "contentTypeSyntax"));<a name="line.124"></a>
+<span class="sourceLineNo">125</span>    }<a name="line.125"></a>
+<span class="sourceLineNo">126</span><a name="line.126"></a>
+<span class="sourceLineNo">127</span>    @Test<a name="line.127"></a>
+<span class="sourceLineNo">128</span>    public void parseNoSource() throws Exception {<a name="line.128"></a>
+<span class="sourceLineNo">129</span>        thrown.expect(IllegalStateException.class);<a name="line.129"></a>
+<span class="sourceLineNo">130</span>        dummyParser.parse();<a name="line.130"></a>
+<span class="sourceLineNo">131</span>    }<a name="line.131"></a>
+<span class="sourceLineNo">132</span><a name="line.132"></a>
+<span class="sourceLineNo">133</span>    @Test<a name="line.133"></a>
+<span class="sourceLineNo">134</span>    public void parseBaseAndContentTypeNoSource() throws Exception {<a name="line.134"></a>
+<span class="sourceLineNo">135</span>        // Can set the other options, even without source()<a name="line.135"></a>
+<span class="sourceLineNo">136</span>        IRI base = dummyParser.createRDFTermFactory().createIRI("http://www.example.org/test.rdf");<a name="line.136"></a>
+<span class="sourceLineNo">137</span>        RDFParser parser = dummyParser.base(base).contentType(RDFSyntax.RDFXML);<a name="line.137"></a>
+<span class="sourceLineNo">138</span>        thrown.expect(IllegalStateException.class);<a name="line.138"></a>
+<span class="sourceLineNo">139</span>        thrown.expectMessage("No source has been set");<a name="line.139"></a>
+<span class="sourceLineNo">140</span>        // but .parse() should fail<a name="line.140"></a>
+<span class="sourceLineNo">141</span>        parser.parse();<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>    @Test<a name="line.144"></a>
+<span class="sourceLineNo">145</span>    public void parseFileMissing() throws Exception {<a name="line.145"></a>
+<span class="sourceLineNo">146</span>        Files.delete(testNt);<a name="line.146"></a>
+<span class="sourceLineNo">147</span>        // This should not fail yet<a name="line.147"></a>
+<span class="sourceLineNo">148</span>        RDFParser parser = dummyParser.source(testNt);<a name="line.148"></a>
+<span class="sourceLineNo">149</span>        // but here:<a name="line.149"></a>
+<span class="sourceLineNo">150</span>        thrown.expect(IOException.class);<a name="line.150"></a>
+<span class="sourceLineNo">151</span>        parser.parse();<a name="line.151"></a>
+<span class="sourceLineNo">152</span>    }<a name="line.152"></a>
+<span class="sourceLineNo">153</span><a name="line.153"></a>
+<span class="sourceLineNo">154</span>    @Test<a name="line.154"></a>
+<span class="sourceLineNo">155</span>    public void parseFileContentType() throws Exception {<a name="line.155"></a>
+<span class="sourceLineNo">156</span>        Graph g = factory.createGraph();<a name="line.156"></a>
+<span class="sourceLineNo">157</span>        RDFParser parser = dummyParser.source(testNt).contentType(RDFSyntax.NTRIPLES).target(g);<a name="line.157"></a>
+<span class="sourceLineNo">158</span>        parser.parse().get(5, TimeUnit.SECONDS);<a name="line.158"></a>
+<span class="sourceLineNo">159</span>        checkGraph(g);<a name="line.159"></a>
+<span class="sourceLineNo">160</span>        // FIXME: this could potentially break if the equivalent of /tmp<a name="line.160"></a>
+<span class="sourceLineNo">161</span>        // includes<a name="line.161"></a>
+<span class="sourceLineNo">162</span>        // international characters<a name="line.162"></a>
+<span class="sourceLineNo">163</span>        assertEquals("&lt;" + testNt.toUri().toString() + "&gt;", firstPredicate(g, "source"));<a name="line.163"></a>
+<span class="sourceLineNo">164</span>        assertEquals("&lt;" + testNt.toUri().toString() + "&gt;", firstPredicate(g, "base"));<a name="line.164"></a>
+<span class="sourceLineNo">165</span>        assertEquals("\"NTRIPLES\"", firstPredicate(g, "contentTypeSyntax"));<a name="line.165"></a>
+<span class="sourceLineNo">166</span>        assertEquals("\"application/n-triples\"", firstPredicate(g, "contentType"));<a name="line.166"></a>
+<span class="sourceLineNo">167</span>    }<a name="line.167"></a>
+<span class="sourceLineNo">168</span><a name="line.168"></a>
+<span class="sourceLineNo">169</span>    private String firstPredicate(Graph g, String pred) {<a name="line.169"></a>
+<span class="sourceLineNo">170</span>        return g.stream(null, factory.createIRI("http://example.com/" + pred), null).map(Triple::getObject)<a name="line.170"></a>
+<span class="sourceLineNo">171</span>                .map(RDFTerm::ntriplesString).findAny().orElse(null);<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>    @Rule<a name="line.174"></a>
+<span class="sourceLineNo">175</span>    public ExpectedException thrown = ExpectedException.none();<a name="line.175"></a>
+<span class="sourceLineNo">176</span><a name="line.176"></a>
+<span class="sourceLineNo">177</span>    @Test<a name="line.177"></a>
+<span class="sourceLineNo">178</span>    public void parseInputStreamFailsIfBaseMissing() throws Exception {<a name="line.178"></a>
+<span class="sourceLineNo">179</span>        InputStream inputStream = new ByteArrayInputStream(new byte[0]);<a name="line.179"></a>
+<span class="sourceLineNo">180</span>        // Should not fail at this point<a name="line.180"></a>
+<span class="sourceLineNo">181</span>        RDFParser parser = dummyParser.source(inputStream);<a name="line.181"></a>
+<span class="sourceLineNo">182</span>        // but here:<a name="line.182"></a>
+<span class="sourceLineNo">183</span>        thrown.expect(IllegalStateException.class);<a name="line.183"></a>
+<span class="sourceLineNo">184</span>        thrown.expectMessage("base iri required for inputstream source");<a name="line.184"></a>
+<span class="sourceLineNo">185</span>        parser.parse();<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>    @Test<a name="line.188"></a>
+<span class="sourceLineNo">189</span>    public void parseInputStreamWithBase() throws Exception {<a name="line.189"></a>
+<span class="sourceLineNo">190</span>        InputStream inputStream = new ByteArrayInputStream(new byte[0]);<a name="line.190"></a>
+<span class="sourceLineNo">191</span>        IRI base = dummyParser.createRDFTermFactory().createIRI("http://www.example.org/test.rdf");<a name="line.191"></a>
+<span class="sourceLineNo">192</span>        Graph g = factory.createGraph();<a name="line.192"></a>
+<span class="sourceLineNo">193</span>        RDFParser parser = dummyParser.source(inputStream).base(base).target(g);<a name="line.193"></a>
+<span class="sourceLineNo">194</span>        parser.parse().get(5, TimeUnit.SECONDS);<a name="line.194"></a>
+<span class="sourceLineNo">195</span>        checkGraph(g);<a name="line.195"></a>
+<span class="sourceLineNo">196</span>        assertEquals("&lt;http://www.example.org/test.rdf&gt;", firstPredicate(g, "base"));<a name="line.196"></a>
+<span class="sourceLineNo">197</span>        // in our particular debug output,<a name="line.197"></a>
+<span class="sourceLineNo">198</span>        // bnode source indicates InputStream<a name="line.198"></a>
+<span class="sourceLineNo">199</span>        assertTrue(firstPredicate(g, "source").startsWith("_:"));<a name="line.199"></a>
+<span class="sourceLineNo">200</span>        assertNull(firstPredicate(g, "contentType"));<a name="line.200"></a>
+<span class="sourceLineNo">201</span>        assertNull(firstPredicate(g, "contentTypeSyntax"));<a name="line.201"></a>
+<span class="sourceLineNo">202</span>    }<a name="line.202"></a>
+<span class="sourceLineNo">203</span><a name="line.203"></a>
+<span class="sourceLineNo">204</span>    @Test<a name="line.204"></a>
+<span class="sourceLineNo">205</span>    public void parseInputStreamWithNQuads() throws Exception {<a name="line.205"></a>
+<span class="sourceLineNo">206</span>        InputStream inputStream = new ByteArrayInputStream(new byte[0]);<a name="line.206"></a>
+<span class="sourceLineNo">207</span>        Graph g = factory.createGraph();<a name="line.207"></a>
+<span class="sourceLineNo">208</span>        RDFParser parser = dummyParser.source(inputStream).contentType(RDFSyntax.NQUADS).target(g);<a name="line.208"></a>
+<span class="sourceLineNo">209</span>        parser.parse().get(5, TimeUnit.SECONDS);<a name="line.209"></a>
+<span class="sourceLineNo">210</span>        checkGraph(g);<a name="line.210"></a>
+<span class="sourceLineNo">211</span>        assertNull(firstPredicate(g, "base"));<a name="line.211"></a>
+<span class="sourceLineNo">212</span>        // in our particular debug output,<a name="line.212"></a>
+<span class="sourceLineNo">213</span>        // bnode source indicates InputStream<a name="line.213"></a>
+<span class="sourceLineNo">214</span>        assertTrue(firstPredicate(g, "source").startsWith("_:"));<a name="line.214"></a>
+<span class="sourceLineNo">215</span>        assertEquals("\"application/n-quads\"", firstPredicate(g, "contentType"));<a name="line.215"></a>
+<span class="sourceLineNo">216</span>        assertEquals("\"NQUADS\"", firstPredicate(g, "contentTypeSyntax"));<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>    @Test<a name="line.219"></a>
+<span class="sourceLineNo">220</span>    public void parseIRI() throws Exception {<a name="line.220"></a>
+<span class="sourceLineNo">221</span>        IRI iri = dummyParser.createRDFTermFactory().createIRI("http://www.example.net/test.ttl");<a name="line.221"></a>
+<span class="sourceLineNo">222</span>        Graph g = factory.createGraph();<a name="line.222"></a>
+<span class="sourceLineNo">223</span>        RDFParser parser = dummyParser.source(iri).target(g);<a name="line.223"></a>
+<span class="sourceLineNo">224</span>        parser.parse().get(5, TimeUnit.SECONDS);<a name="line.224"></a>
+<span class="sourceLineNo">225</span>        checkGraph(g);<a name="line.225"></a>
+<span class="sourceLineNo">226</span>        assertEquals("&lt;http://www.example.net/test.ttl&gt;", firstPredicate(g, "source"));<a name="line.226"></a>
+<span class="sourceLineNo">227</span>        // No base - assuming the above IRI is always<a name="line.227"></a>
+<span class="sourceLineNo">228</span>        // the base would break server-supplied base from<a name="line.228"></a>
+<span class="sourceLineNo">229</span>        // any HTTP Location redirects and Content-Location header<a name="line.229"></a>
+<span class="sourceLineNo">230</span>        assertNull(firstPredicate(g, "base"));<a name="line.230"></a>
+<span class="sourceLineNo">231</span>        // ".ttl" in IRI string does not imply any content type<a name="line.231"></a>
+<span class="sourceLineNo">232</span>        assertNull(firstPredicate(g, "contentType"));<a name="line.232"></a>
+<span class="sourceLineNo">233</span>        assertNull(firstPredicate(g, "contentTypeSyntax"));<a name="line.233"></a>
+<span class="sourceLineNo">234</span><a name="line.234"></a>
+<span class="sourceLineNo">235</span>    }<a name="line.235"></a>
+<span class="sourceLineNo">236</span><a name="line.236"></a>
+<span class="sourceLineNo">237</span>    @Test<a name="line.237"></a>
+<span class="sourceLineNo">238</span>    public void parseIRIBaseContentType() throws Exception {<a name="line.238"></a>
+<span class="sourceLineNo">239</span>        IRI iri = dummyParser.createRDFTermFactory().createIRI("http://www.example.net/test.ttl");<a name="line.239"></a>
+<span class="sourceLineNo">240</span>        Graph g = factory.createGraph();<a name="line.240"></a>
+<span class="sourceLineNo">241</span>        RDFParser parser = dummyParser.source(iri).base(iri).contentType(RDFSyntax.TURTLE).target(g);<a name="line.241"></a>
+<span class="sourceLineNo">242</span>        parser.parse().get(5, TimeUnit.SECONDS);<a name="line.242"></a>
+<span class="sourceLineNo">243</span>        checkGraph(g);<a name="line.243"></a>
+<span class="sourceLineNo">244</span>        assertEquals("&lt;http://www.example.net/test.ttl&gt;", firstPredicate(g, "source"));<a name="line.244"></a>
+<span class="sourceLineNo">245</span>        assertEquals("&lt;http://www.example.net/test.ttl&gt;", firstPredicate(g, "base"));<a name="line.245"></a>
+<span class="sourceLineNo">246</span>        assertEquals("\"TURTLE\"", firstPredicate(g, "contentTypeSyntax"));<a name="line.246"></a>
+<span class="sourceLineNo">247</span>        assertEquals("\"text/turtle\"", firstPredicate(g, "contentType"));<a name="line.247"></a>
+<span class="sourceLineNo">248</span>    }<a name="line.248"></a>
+<span class="sourceLineNo">249</span><a name="line.249"></a>
+<span class="sourceLineNo">250</span>}<a name="line.250"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Modified: websites/production/commonsrdf/content/xref-test/allclasses-frame.html
==============================================================================
--- websites/production/commonsrdf/content/xref-test/allclasses-frame.html (original)
+++ websites/production/commonsrdf/content/xref-test/allclasses-frame.html Wed Nov 16 10:57:28 2016
@@ -12,61 +12,31 @@
 
 		<ul>
 						<li>
-				<a href="org/apache/commons/rdf/api/AbstractBlankNodeTest.html" target="classFrame">AbstractBlankNodeTest</a>
+				<a href="org/apache/commons/rdf/simple/experimental/AbstractRDFParserTest.html" target="classFrame">AbstractRDFParserTest</a>
 			</li>
 						<li>
-				<a href="org/apache/commons/rdf/api/AbstractDatasetTest.html" target="classFrame">AbstractDatasetTest</a>
+				<a href="org/apache/commons/rdf/simple/BlankNodeImplTest.html" target="classFrame">BlankNodeImplTest</a>
 			</li>
 						<li>
-				<a href="org/apache/commons/rdf/api/AbstractGraphTest.html" target="classFrame">AbstractGraphTest</a>
+				<a href="org/apache/commons/rdf/simple/DummyRDFParserBuilder.html" target="classFrame">DummyRDFParserBuilder</a>
 			</li>
 						<li>
-				<a href="org/apache/commons/rdf/api/AbstractRDFTest.html" target="classFrame">AbstractRDFTest</a>
+				<a href="org/apache/commons/rdf/simple/SimpleDatasetTest.html" target="classFrame">SimpleDatasetTest</a>
 			</li>
 						<li>
-				<a href="org/apache/commons/rdf/api/DefaultDatasetTest.html" target="classFrame">DefaultDatasetTest</a>
+				<a href="org/apache/commons/rdf/simple/SimpleGraphTest.html" target="classFrame">SimpleGraphTest</a>
 			</li>
 						<li>
-				<a href="org/apache/commons/rdf/api/DefaultGraphTest.html" target="classFrame">DefaultGraphTest</a>
+				<a href="org/apache/commons/rdf/simple/SimpleRDFTest.html" target="classFrame">SimpleRDFTest</a>
 			</li>
 						<li>
-				<a href="org/apache/commons/rdf/api/DefaultQuadTest.html" target="classFrame">DefaultQuadTest</a>
+				<a href="org/apache/commons/rdf/simple/SimpleServiceLoaderTest.html" target="classFrame">SimpleServiceLoaderTest</a>
 			</li>
 						<li>
-				<a href="org/apache/commons/rdf/api/DefaultRDFTermFactoryTest.html" target="classFrame">DefaultRDFTermFactoryTest</a>
+				<a href="org/apache/commons/rdf/simple/TestWritingGraph.html" target="classFrame">TestWritingGraph</a>
 			</li>
 						<li>
-				<a href="org/apache/commons/rdf/api/DummyDataset.html" target="classFrame">DummyDataset</a>
-			</li>
-						<li>
-				<a href="org/apache/commons/rdf/api/DummyDatasetTest.html" target="classFrame">DummyDatasetTest</a>
-			</li>
-						<li>
-				<a href="org/apache/commons/rdf/api/DummyGraph.html" target="classFrame">DummyGraph</a>
-			</li>
-						<li>
-				<a href="org/apache/commons/rdf/api/DummyGraphTest.html" target="classFrame">DummyGraphTest</a>
-			</li>
-						<li>
-				<a href="org/apache/commons/rdf/api/DummyIRI.html" target="classFrame">DummyIRI</a>
-			</li>
-						<li>
-				<a href="org/apache/commons/rdf/api/DummyIRITest.html" target="classFrame">DummyIRITest</a>
-			</li>
-						<li>
-				<a href="org/apache/commons/rdf/api/DummyQuad.html" target="classFrame">DummyQuad</a>
-			</li>
-						<li>
-				<a href="org/apache/commons/rdf/api/DummyQuadTest.html" target="classFrame">DummyQuadTest</a>
-			</li>
-						<li>
-				<a href="org/apache/commons/rdf/api/DummyTriple.html" target="classFrame">DummyTriple</a>
-			</li>
-						<li>
-				<a href="org/apache/commons/rdf/api/DummyTripleTest.html" target="classFrame">DummyTripleTest</a>
-			</li>
-						<li>
-				<a href="org/apache/commons/rdf/api/RDFSyntaxTest.html" target="classFrame">RDFSyntaxTest</a>
+				<a href="org/apache/commons/rdf/simple/TypesTest.html" target="classFrame">TypesTest</a>
 			</li>
 			      </ul>
 

Modified: websites/production/commonsrdf/content/xref-test/index.html
==============================================================================
--- websites/production/commonsrdf/content/xref-test/index.html (original)
+++ websites/production/commonsrdf/content/xref-test/index.html Wed Nov 16 10:57:28 2016
@@ -4,7 +4,7 @@
 <!-- this is a JXR report set -->
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Commons RDF API 0.3.0-incubating Reference</title>
+		<title>Commons RDF impl: Simple 0.3.0-incubating Reference</title>
 	</head>
     <frameset cols="20%,80%">
 		<frameset rows="30%,70%">

Added: websites/production/commonsrdf/content/xref-test/org/apache/commons/rdf/simple/BlankNodeImplTest.html
==============================================================================
--- websites/production/commonsrdf/content/xref-test/org/apache/commons/rdf/simple/BlankNodeImplTest.html (added)
+++ websites/production/commonsrdf/content/xref-test/org/apache/commons/rdf/simple/BlankNodeImplTest.html Wed Nov 16 10:57:28 2016
@@ -0,0 +1,56 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>BlankNodeImplTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/commons/rdf/simple/BlankNodeImplTest.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements. See the NOTICE file</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership. The ASF licenses this file</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_javadoccomment"> *     <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.rdf.simple;
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> java.util.UUID;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.AbstractBlankNodeTest;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.BlankNode;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <em class="jxr_javadoccomment"> * Concrete implementation of BlankNodeImpl test.</em>
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/rdf/simple/BlankNodeImplTest.html">BlankNodeImplTest</a> <strong class="jxr_keyword">extends</strong> AbstractBlankNodeTest {
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>      <em class="jxr_comment">// Fixed salt just for this test</em>
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> UUID SALT = UUID.fromString(<span class="jxr_string">"35019b59-18b3-4e74-8707-ec55f62a37d6"</span>);
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      @Override
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      <strong class="jxr_keyword">protected</strong> BlankNode getBlankNode() {
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> BlankNodeImpl();
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>      }
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>  
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>      @Override
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>      <strong class="jxr_keyword">protected</strong> BlankNode getBlankNode(String identifier) {
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> BlankNodeImpl(SALT, identifier);
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>      }
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>  
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2015&#x2013;2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/xref-test/org/apache/commons/rdf/simple/DummyRDFParserBuilder.html
==============================================================================
--- websites/production/commonsrdf/content/xref-test/org/apache/commons/rdf/simple/DummyRDFParserBuilder.html (added)
+++ websites/production/commonsrdf/content/xref-test/org/apache/commons/rdf/simple/DummyRDFParserBuilder.html Wed Nov 16 10:57:28 2016
@@ -0,0 +1,106 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>DummyRDFParserBuilder xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../testapidocs/org/apache/commons/rdf/simple/DummyRDFParserBuilder.html">View Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements. See the NOTICE file</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership. The ASF licenses this file</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_javadoccomment"> *     <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_javadoccomment"> * limitations under the License.</em>
+<a class="jxr_linenumber" name="L17" href="#L17">17</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L18" href="#L18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.rdf.simple;
+<a class="jxr_linenumber" name="L19" href="#L19">19</a>  
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> java.io.IOException;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> java.util.UUID;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> java.util.function.Consumer;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.IRI;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.Quad;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.api.RDF;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.experimental.RDFParser;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.simple.experimental.AbstractRDFParser;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.rdf.simple.experimental.RDFParseException;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  <em class="jxr_javadoccomment"> * For test purposes - a {@link RDFParser} that inserts information about what</em>
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  <em class="jxr_javadoccomment"> * it has been asked to parse instead of actually parsing anything.</em>
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>  <em class="jxr_javadoccomment"> * &lt;p&gt;</em>
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>  <em class="jxr_javadoccomment"> * This always insert at least the triple equivalent to:</em>
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  <em class="jxr_javadoccomment"> * </em>
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>  <em class="jxr_javadoccomment"> * &lt;pre&gt;</em>
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>  <em class="jxr_javadoccomment"> *    &amp;lt;urn:uuid:b7ac3fcc-4d86-4d28-8358-a1cd094974a6&amp;gt; &amp;lt;<a href="http://example.com/greeting&amp;gt;" target="alexandria_uri">http://example.com/greeting&amp;gt;</a> "Hello world" .</em>
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>  <em class="jxr_javadoccomment"> * &lt;/pre&gt;</em>
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>  <em class="jxr_javadoccomment"> * </em>
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>  <em class="jxr_javadoccomment"> * Additional triples match the corresponding getter in AbstractRDFParser, e.g.:</em>
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>  <em class="jxr_javadoccomment"> * </em>
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>  <em class="jxr_javadoccomment"> * &lt;pre&gt;</em>
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>  <em class="jxr_javadoccomment"> *   &amp;lt;urn:uuid:b7ac3fcc-4d86-4d28-8358-a1cd094974a6&amp;gt; &amp;lt;<a href="http://example.com/base&amp;gt;" target="alexandria_uri">http://example.com/base&amp;gt;</a> &amp;lt;http://www.example.org/&amp;gt; .</em>
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>  <em class="jxr_javadoccomment"> *   &amp;lt;urn:uuid:b7ac3fcc-4d86-4d28-8358-a1cd094974a6&amp;gt; &amp;lt;<a href="http://example.com/sourceFile&amp;gt;" target="alexandria_uri">http://example.com/sourceFile&amp;gt;</a> "/tmp/file.ttl" .</em>
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>  <em class="jxr_javadoccomment"> * &lt;/pre&gt;</em>
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>  <em class="jxr_javadoccomment"> * </em>
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>  <em class="jxr_javadoccomment"> *</em>
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/rdf/simple/DummyRDFParserBuilder.html">DummyRDFParserBuilder</a> <strong class="jxr_keyword">extends</strong> AbstractRDFParser&lt;DummyRDFParserBuilder&gt; {
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>  
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>      @Override
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>      <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> parseSynchronusly() <strong class="jxr_keyword">throws</strong> IOException, IllegalStateException, RDFParseException {
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>          <em class="jxr_comment">// From parseSynchronusly both of these are always present</em>
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          RDF factory = getRdfTermFactory().get();
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>          Consumer&lt;Quad&gt; t = getTarget();
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>  
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>          <em class="jxr_comment">// well - each parsing is unique. This should hopefully</em>
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>          <em class="jxr_comment">// catch any accidental double parsing</em>
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>          IRI parsing = factory.createIRI(<span class="jxr_string">"urn:uuid:"</span> + UUID.randomUUID());
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>          t.accept(factory.createQuad(<strong class="jxr_keyword">null</strong>, parsing, factory.createIRI(<span class="jxr_string">"http://example.com/greeting"</span>),
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>                  factory.createLiteral(<span class="jxr_string">"Hello world"</span>)));
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>  
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>          <em class="jxr_comment">// Now we'll expose the finalized AbstractRDFParser settings</em>
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          <em class="jxr_comment">// so they can be inspected by the junit test</em>
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>  
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>          <strong class="jxr_keyword">if</strong> (getSourceIri().isPresent()) {
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>              t.accept(factory.createQuad(<strong class="jxr_keyword">null</strong>, parsing, factory.createIRI(<span class="jxr_string">"http://example.com/source"</span>),
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>                      getSourceIri().get()));
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>          }
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>          <strong class="jxr_keyword">if</strong> (getSourceFile().isPresent()) {
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>              t.accept(factory.createQuad(<strong class="jxr_keyword">null</strong>, parsing, factory.createIRI(<span class="jxr_string">"http://example.com/source"</span>),
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>                      factory.createIRI(getSourceFile().get().toUri().toString())));
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>          }
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>          <strong class="jxr_keyword">if</strong> (getSourceInputStream().isPresent()) {
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>              t.accept(factory.createQuad(<strong class="jxr_keyword">null</strong>, parsing, factory.createIRI(<span class="jxr_string">"http://example.com/source"</span>),
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>                      factory.createBlankNode()));
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>          }
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>  
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>          <strong class="jxr_keyword">if</strong> (getBase().isPresent()) {
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>              t.accept(factory.createQuad(<strong class="jxr_keyword">null</strong>, parsing, factory.createIRI(<span class="jxr_string">"http://example.com/base"</span>), getBase().get()));
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>          }
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>          <strong class="jxr_keyword">if</strong> (getContentType().isPresent()) {
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>              t.accept(factory.createQuad(<strong class="jxr_keyword">null</strong>, parsing, factory.createIRI(<span class="jxr_string">"http://example.com/contentType"</span>),
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>                      factory.createLiteral(getContentType().get())));
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>          }
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>          <strong class="jxr_keyword">if</strong> (getContentTypeSyntax().isPresent()) {
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>              t.accept(factory.createQuad(<strong class="jxr_keyword">null</strong>, parsing, factory.createIRI(<span class="jxr_string">"http://example.com/contentTypeSyntax"</span>),
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>                      factory.createLiteral(getContentTypeSyntax().get().name())));
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>          }
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>      }
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>  
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2015&#x2013;2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+</body>
+</html>
\ No newline at end of file



Mime
View raw message