commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1001278 [16/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apach...
Date Thu, 17 Nov 2016 14:45:36 GMT
Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/RDFSyntax.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/RDFSyntax.html (added)
+++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/RDFSyntax.html Thu Nov 17 14:45:34 2016
@@ -0,0 +1,266 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements. See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership. The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.commons.rdf.api;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import java.util.Arrays;<a name="line.20"></a>
+<span class="sourceLineNo">021</span>import java.util.Locale;<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>/**<a name="line.24"></a>
+<span class="sourceLineNo">025</span> * Enumeration of the RDF 1.1 serialization syntaxes.<a name="line.25"></a>
+<span class="sourceLineNo">026</span> * &lt;p&gt;<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * This enumeration lists the W3C standardized RDF 1.1 syntaxes like<a name="line.27"></a>
+<span class="sourceLineNo">028</span> * {@link #TURTLE} and {@link #JSONLD}. Note the existence of other RDF syntaxes<a name="line.28"></a>
+<span class="sourceLineNo">029</span> * that are not included here, e.g.<a name="line.29"></a>
+<span class="sourceLineNo">030</span> * &lt;a href="http://www.w3.org/TeamSubmission/n3/"&gt;N3&lt;/a&gt; and<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * &lt;a href="https://en.wikipedia.org/wiki/TriX_%28syntax%29"&gt;TriX&lt;/a&gt;.<a name="line.31"></a>
+<span class="sourceLineNo">032</span> * <a name="line.32"></a>
+<span class="sourceLineNo">033</span> * @see &lt;a href="https://www.w3.org/TR/rdf11-primer/#section-graph-syntax"&gt;RDF<a name="line.33"></a>
+<span class="sourceLineNo">034</span> *      1.1 Primer&lt;/a&gt;<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * @see org.apache.commons.rdf.experimental.RDFParser<a name="line.35"></a>
+<span class="sourceLineNo">036</span> */<a name="line.36"></a>
+<span class="sourceLineNo">037</span>public enum RDFSyntax {<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>     * JSON-LD 1.0<a name="line.40"></a>
+<span class="sourceLineNo">041</span>     * <a name="line.41"></a>
+<span class="sourceLineNo">042</span>     * @see &lt;a href=<a name="line.42"></a>
+<span class="sourceLineNo">043</span>     *      "https://www.w3.org/TR/json-ld/"&gt;https://www.w3.org/TR/json-ld/&lt;/a&gt;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>     * <a name="line.44"></a>
+<span class="sourceLineNo">045</span>     */<a name="line.45"></a>
+<span class="sourceLineNo">046</span>    JSONLD("JSON-LD 1.0", "application/ld+json", ".jsonld", true),<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>     * RDF 1.1 Turtle<a name="line.49"></a>
+<span class="sourceLineNo">050</span>     * <a name="line.50"></a>
+<span class="sourceLineNo">051</span>     * @see &lt;a href=<a name="line.51"></a>
+<span class="sourceLineNo">052</span>     *      "https://www.w3.org/TR/turtle/"&gt;https://www.w3.org/TR/turtle/&lt;/a&gt;<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>    TURTLE("RDF 1.1 Turtle", "text/turtle", ".ttl", false),<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>     * RDF 1.1 N-Quads<a name="line.58"></a>
+<span class="sourceLineNo">059</span>     * <a name="line.59"></a>
+<span class="sourceLineNo">060</span>     * @see &lt;a href=<a name="line.60"></a>
+<span class="sourceLineNo">061</span>     *      "https://www.w3.org/TR/n-quads/"&gt;https://www.w3.org/TR/n-quads/&lt;/a&gt;<a name="line.61"></a>
+<span class="sourceLineNo">062</span>     */<a name="line.62"></a>
+<span class="sourceLineNo">063</span>    NQUADS("RDF 1.1 N-Quads", "application/n-quads", ".nq", true),<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>     * RDF 1.1 N-Triples<a name="line.66"></a>
+<span class="sourceLineNo">067</span>     * <a name="line.67"></a>
+<span class="sourceLineNo">068</span>     * @see &lt;a href=<a name="line.68"></a>
+<span class="sourceLineNo">069</span>     *      "https://www.w3.org/TR/n-triples/"&gt;https://www.w3.org/TR/n-triples/&lt;/a&gt;<a name="line.69"></a>
+<span class="sourceLineNo">070</span>     */<a name="line.70"></a>
+<span class="sourceLineNo">071</span>    NTRIPLES("RDF 1.1 N-Triples", "application/n-triples", ".nt", false),<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>     * HTML+RDFa 1.1<a name="line.74"></a>
+<span class="sourceLineNo">075</span>     * <a name="line.75"></a>
+<span class="sourceLineNo">076</span>     * @see &lt;a href=<a name="line.76"></a>
+<span class="sourceLineNo">077</span>     *      "https://www.w3.org/TR/html-rdfa/"&gt;https://www.w3.org/TR/html-rdfa/&lt;/a&gt;<a name="line.77"></a>
+<span class="sourceLineNo">078</span>     */<a name="line.78"></a>
+<span class="sourceLineNo">079</span>    RDFA_HTML("HTML+RDFa 1.1", "text/html", ".html", false),<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>     * XHTML+RDFa 1.1<a name="line.82"></a>
+<span class="sourceLineNo">083</span>     * <a name="line.83"></a>
+<span class="sourceLineNo">084</span>     * @see &lt;a href=<a name="line.84"></a>
+<span class="sourceLineNo">085</span>     *      "https://www.w3.org/TR/xhtml-rdfa/"&gt;https://www.w3.org/TR/xhtml-rdfa/&lt;/a&gt;<a name="line.85"></a>
+<span class="sourceLineNo">086</span>     */<a name="line.86"></a>
+<span class="sourceLineNo">087</span>    RDFA_XHTML("XHTML+RDFa 1.1", "application/xhtml+xml", ".xhtml", false),<a name="line.87"></a>
+<span class="sourceLineNo">088</span><a name="line.88"></a>
+<span class="sourceLineNo">089</span>    /**<a name="line.89"></a>
+<span class="sourceLineNo">090</span>     * RDF 1.1 XML Syntax<a name="line.90"></a>
+<span class="sourceLineNo">091</span>     * <a name="line.91"></a>
+<span class="sourceLineNo">092</span>     * @see &lt;a href=<a name="line.92"></a>
+<span class="sourceLineNo">093</span>     *      "https://www.w3.org/TR/rdf-syntax-grammar/"&gt;https://www.w3.org/TR/rdf-syntax-grammar/&lt;/a&gt;<a name="line.93"></a>
+<span class="sourceLineNo">094</span>     */<a name="line.94"></a>
+<span class="sourceLineNo">095</span>    RDFXML("RDF 1.1 XML Syntax", "application/rdf+xml", ".rdf", false),<a name="line.95"></a>
+<span class="sourceLineNo">096</span><a name="line.96"></a>
+<span class="sourceLineNo">097</span>    /**<a name="line.97"></a>
+<span class="sourceLineNo">098</span>     * RDF 1.1 TriG<a name="line.98"></a>
+<span class="sourceLineNo">099</span>     * <a name="line.99"></a>
+<span class="sourceLineNo">100</span>     * @see &lt;a href=<a name="line.100"></a>
+<span class="sourceLineNo">101</span>     *      "https://www.w3.org/TR/trig/"&gt;https://www.w3.org/TR/trig/&lt;/a&gt;<a name="line.101"></a>
+<span class="sourceLineNo">102</span>     */<a name="line.102"></a>
+<span class="sourceLineNo">103</span>    TRIG("RDF 1.1 TriG", "application/trig", ".trig", true);<a name="line.103"></a>
+<span class="sourceLineNo">104</span><a name="line.104"></a>
+<span class="sourceLineNo">105</span>    /**<a name="line.105"></a>
+<span class="sourceLineNo">106</span>     * The &lt;a href="https://tools.ietf.org/html/rfc2046"&gt;IANA media type&lt;/a&gt; for<a name="line.106"></a>
+<span class="sourceLineNo">107</span>     * the RDF syntax.<a name="line.107"></a>
+<span class="sourceLineNo">108</span>     * &lt;p&gt;<a name="line.108"></a>
+<span class="sourceLineNo">109</span>     * The media type can be used as part of &lt;code&gt;Content-Type&lt;/code&gt; and<a name="line.109"></a>
+<span class="sourceLineNo">110</span>     * &lt;code&gt;Accept&lt;/code&gt; for &lt;em&gt;content negotiation&lt;/em&gt; in the<a name="line.110"></a>
+<span class="sourceLineNo">111</span>     * &lt;a href="https://tools.ietf.org/html/rfc7231#section-3.1.1.1"&gt;HTTP<a name="line.111"></a>
+<span class="sourceLineNo">112</span>     * protocol&lt;/a&gt;.<a name="line.112"></a>
+<span class="sourceLineNo">113</span>     */<a name="line.113"></a>
+<span class="sourceLineNo">114</span>    public final String mediaType;<a name="line.114"></a>
+<span class="sourceLineNo">115</span><a name="line.115"></a>
+<span class="sourceLineNo">116</span>    /**<a name="line.116"></a>
+<span class="sourceLineNo">117</span>     * The &lt;a href="https://tools.ietf.org/html/rfc2046"&gt;IANA-registered&lt;/a&gt;<a name="line.117"></a>
+<span class="sourceLineNo">118</span>     * file extension.<a name="line.118"></a>
+<span class="sourceLineNo">119</span>     * &lt;p&gt;<a name="line.119"></a>
+<span class="sourceLineNo">120</span>     * The file extension includes the leading period, e.g. &lt;code&gt;.jsonld&lt;/code&gt;<a name="line.120"></a>
+<span class="sourceLineNo">121</span>     */<a name="line.121"></a>
+<span class="sourceLineNo">122</span>    public final String fileExtension;<a name="line.122"></a>
+<span class="sourceLineNo">123</span><a name="line.123"></a>
+<span class="sourceLineNo">124</span>    /**<a name="line.124"></a>
+<span class="sourceLineNo">125</span>     * Indicate if this RDF syntax supports<a name="line.125"></a>
+<span class="sourceLineNo">126</span>     * &lt;a href="https://www.w3.org/TR/rdf11-concepts/#section-dataset"&gt;RDF<a name="line.126"></a>
+<span class="sourceLineNo">127</span>     * Datasets&lt;/a&gt;.<a name="line.127"></a>
+<span class="sourceLineNo">128</span>     */<a name="line.128"></a>
+<span class="sourceLineNo">129</span>    public final boolean supportsDataset;<a name="line.129"></a>
+<span class="sourceLineNo">130</span><a name="line.130"></a>
+<span class="sourceLineNo">131</span>    private final String name;<a name="line.131"></a>
+<span class="sourceLineNo">132</span><a name="line.132"></a>
+<span class="sourceLineNo">133</span>    /**<a name="line.133"></a>
+<span class="sourceLineNo">134</span>     * A human-readable name for the RDF syntax.<a name="line.134"></a>
+<span class="sourceLineNo">135</span>     * &lt;p&gt;<a name="line.135"></a>
+<span class="sourceLineNo">136</span>     * The name is equivalent to the the title of the corresponding W3C<a name="line.136"></a>
+<span class="sourceLineNo">137</span>     * Specification.<a name="line.137"></a>
+<span class="sourceLineNo">138</span>     */<a name="line.138"></a>
+<span class="sourceLineNo">139</span>    @Override<a name="line.139"></a>
+<span class="sourceLineNo">140</span>    public String toString() {<a name="line.140"></a>
+<span class="sourceLineNo">141</span>        return name;<a name="line.141"></a>
+<span class="sourceLineNo">142</span>    }<a name="line.142"></a>
+<span class="sourceLineNo">143</span><a name="line.143"></a>
+<span class="sourceLineNo">144</span>    private RDFSyntax(final String name, final String mediaType, final String fileExtension, final boolean supportsDataset) {<a name="line.144"></a>
+<span class="sourceLineNo">145</span>        this.name = name;<a name="line.145"></a>
+<span class="sourceLineNo">146</span>        this.mediaType = mediaType;<a name="line.146"></a>
+<span class="sourceLineNo">147</span>        this.fileExtension = fileExtension;<a name="line.147"></a>
+<span class="sourceLineNo">148</span>        this.supportsDataset = supportsDataset;<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>     * Return the RDFSyntax with the specified media type.<a name="line.152"></a>
+<span class="sourceLineNo">153</span>     * &lt;p&gt;<a name="line.153"></a>
+<span class="sourceLineNo">154</span>     * The &lt;code&gt;mediaType&lt;/code&gt; is compared in lower case, therefore it might<a name="line.154"></a>
+<span class="sourceLineNo">155</span>     * not be equal to the {@link RDFSyntax#mediaType} of the returned<a name="line.155"></a>
+<span class="sourceLineNo">156</span>     * RDFSyntax.<a name="line.156"></a>
+<span class="sourceLineNo">157</span>     * &lt;p&gt;<a name="line.157"></a>
+<span class="sourceLineNo">158</span>     * For convenience matching of media types used in a<a name="line.158"></a>
+<span class="sourceLineNo">159</span>     * &lt;code&gt;Content-Type&lt;/code&gt; header, if the &lt;code&gt;mediaType&lt;/code&gt; contains<a name="line.159"></a>
+<span class="sourceLineNo">160</span>     * the characters &lt;code&gt;;&lt;/code&gt;, &lt;code&gt;,&lt;/code&gt; or white space, only the<a name="line.160"></a>
+<span class="sourceLineNo">161</span>     * part of the string to the left of those characters are considered.<a name="line.161"></a>
+<span class="sourceLineNo">162</span>     * <a name="line.162"></a>
+<span class="sourceLineNo">163</span>     * @param mediaType<a name="line.163"></a>
+<span class="sourceLineNo">164</span>     *            The media type to match<a name="line.164"></a>
+<span class="sourceLineNo">165</span>     * @return If {@link Optional#isPresent()}, the {@link RDFSyntax} which has<a name="line.165"></a>
+<span class="sourceLineNo">166</span>     *         a matching {@link RDFSyntax#mediaType}, otherwise<a name="line.166"></a>
+<span class="sourceLineNo">167</span>     *         {@link Optional#empty()} indicating that no matching syntax was<a name="line.167"></a>
+<span class="sourceLineNo">168</span>     *         found.<a name="line.168"></a>
+<span class="sourceLineNo">169</span>     */<a name="line.169"></a>
+<span class="sourceLineNo">170</span>    public static Optional&lt;RDFSyntax&gt; byMediaType(final String mediaType) {<a name="line.170"></a>
+<span class="sourceLineNo">171</span>        final String type = mediaType.toLowerCase(Locale.ENGLISH).split("\\s*[;,]", 2)[0];<a name="line.171"></a>
+<span class="sourceLineNo">172</span>        return Arrays.stream(RDFSyntax.values()).filter(t -&gt; t.mediaType.equals(type)).findAny();<a name="line.172"></a>
+<span class="sourceLineNo">173</span>    }<a name="line.173"></a>
+<span class="sourceLineNo">174</span><a name="line.174"></a>
+<span class="sourceLineNo">175</span>    /**<a name="line.175"></a>
+<span class="sourceLineNo">176</span>     * Return the RDFSyntax with the specified file extension.<a name="line.176"></a>
+<span class="sourceLineNo">177</span>     * &lt;p&gt;<a name="line.177"></a>
+<span class="sourceLineNo">178</span>     * The &lt;code&gt;fileExtension&lt;/code&gt; is compared in lower case, therefore it<a name="line.178"></a>
+<span class="sourceLineNo">179</span>     * might not be equal to the {@link RDFSyntax#fileExtension} of the returned<a name="line.179"></a>
+<span class="sourceLineNo">180</span>     * RDFSyntax.<a name="line.180"></a>
+<span class="sourceLineNo">181</span>     * <a name="line.181"></a>
+<span class="sourceLineNo">182</span>     * @param fileExtension<a name="line.182"></a>
+<span class="sourceLineNo">183</span>     *            The fileExtension to match, starting with &lt;code&gt;.&lt;/code&gt;<a name="line.183"></a>
+<span class="sourceLineNo">184</span>     * @return If {@link Optional#isPresent()}, the {@link RDFSyntax} which has<a name="line.184"></a>
+<span class="sourceLineNo">185</span>     *         a matching {@link RDFSyntax#fileExtension}, otherwise<a name="line.185"></a>
+<span class="sourceLineNo">186</span>     *         {@link Optional#empty()} indicating that no matching file<a name="line.186"></a>
+<span class="sourceLineNo">187</span>     *         extension was found.<a name="line.187"></a>
+<span class="sourceLineNo">188</span>     */<a name="line.188"></a>
+<span class="sourceLineNo">189</span>    public static Optional&lt;RDFSyntax&gt; byFileExtension(final String fileExtension) {<a name="line.189"></a>
+<span class="sourceLineNo">190</span>        final String ext = fileExtension.toLowerCase(Locale.ENGLISH);<a name="line.190"></a>
+<span class="sourceLineNo">191</span>        return Arrays.stream(RDFSyntax.values()).filter(t -&gt; t.fileExtension.equals(ext)).findAny();<a name="line.191"></a>
+<span class="sourceLineNo">192</span>    }<a name="line.192"></a>
+<span class="sourceLineNo">193</span><a name="line.193"></a>
+<span class="sourceLineNo">194</span>}<a name="line.194"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/RDFTerm.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/RDFTerm.html (added)
+++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/RDFTerm.html Thu Nov 17 14:45:34 2016
@@ -0,0 +1,179 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements. See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership. The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.commons.rdf.api;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>/**<a name="line.20"></a>
+<span class="sourceLineNo">021</span> * An &lt;a href= "http://www.w3.org/TR/rdf11-concepts/#dfn-rdf-term" &gt;RDF-1.1<a name="line.21"></a>
+<span class="sourceLineNo">022</span> * Term&lt;/a&gt;, as defined by<a name="line.22"></a>
+<span class="sourceLineNo">023</span> * &lt;a href= "http://www.w3.org/TR/rdf11-concepts/" &gt;RDF-1.1 Concepts and<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * Abstract Syntax&lt;/a&gt;, a W3C Recommendation published on 25 February 2014.<a name="line.24"></a>
+<span class="sourceLineNo">025</span> * &lt;p&gt;<a name="line.25"></a>
+<span class="sourceLineNo">026</span> * A {@link RDFTerm} object in Commons RDF is considered<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * &lt;strong&gt;immutable&lt;/strong&gt;, that is, over its life time it will have<a name="line.27"></a>
+<span class="sourceLineNo">028</span> * consistent behaviour for its {@link #equals(Object)} and {@link #hashCode()},<a name="line.28"></a>
+<span class="sourceLineNo">029</span> * and objects returned from its getter methods (e.g. {@link IRI#getIRIString()}<a name="line.29"></a>
+<span class="sourceLineNo">030</span> * and {@link Literal#getLanguageTag()}) will have consistent<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * {@link #equals(Object)} behaviour.<a name="line.31"></a>
+<span class="sourceLineNo">032</span> * &lt;p&gt;<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * Note that methods in &lt;code&gt;RDFTerm&lt;/code&gt; and its Commons RDF specialisations<a name="line.33"></a>
+<span class="sourceLineNo">034</span> * {@link IRI}, {@link BlankNode} and {@link Literal} are not required to return<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * object identical (&lt;code&gt;==&lt;/code&gt;) instances as long as they are equivalent<a name="line.35"></a>
+<span class="sourceLineNo">036</span> * according to their {@link Object#equals(Object)}. Further specialisations may<a name="line.36"></a>
+<span class="sourceLineNo">037</span> * provide additional methods that are documented to be mutable.<a name="line.37"></a>
+<span class="sourceLineNo">038</span> * &lt;p&gt;<a name="line.38"></a>
+<span class="sourceLineNo">039</span> * Methods in &lt;code&gt;RDFTerm&lt;/code&gt; and its Commons RDF specialisations<a name="line.39"></a>
+<span class="sourceLineNo">040</span> * {@link IRI}, {@link BlankNode} and {@link Literal} are<a name="line.40"></a>
+<span class="sourceLineNo">041</span> * &lt;strong&gt;thread-safe&lt;/strong&gt;, however further specialisations may add<a name="line.41"></a>
+<span class="sourceLineNo">042</span> * additional methods that are documented to not be thread-safe.<a name="line.42"></a>
+<span class="sourceLineNo">043</span> * &lt;p&gt;<a name="line.43"></a>
+<span class="sourceLineNo">044</span> * &lt;code&gt;RDFTerm&lt;/code&gt;s can be safely used in hashing collections like<a name="line.44"></a>
+<span class="sourceLineNo">045</span> * {@link java.util.HashSet} and {@link java.util.HashMap}.<a name="line.45"></a>
+<span class="sourceLineNo">046</span> * &lt;p&gt;<a name="line.46"></a>
+<span class="sourceLineNo">047</span> * Any &lt;code&gt;RDFTerm&lt;/code&gt; can be used interchangeably across Commons RDF<a name="line.47"></a>
+<span class="sourceLineNo">048</span> * implementations.<a name="line.48"></a>
+<span class="sourceLineNo">049</span> *<a name="line.49"></a>
+<span class="sourceLineNo">050</span> * @see &lt;a href= "http://www.w3.org/TR/rdf11-concepts/#dfn-rdf-term" &gt;RDF-1.1<a name="line.50"></a>
+<span class="sourceLineNo">051</span> *      Term&lt;/a&gt;<a name="line.51"></a>
+<span class="sourceLineNo">052</span> */<a name="line.52"></a>
+<span class="sourceLineNo">053</span>public interface RDFTerm {<a name="line.53"></a>
+<span class="sourceLineNo">054</span><a name="line.54"></a>
+<span class="sourceLineNo">055</span>    /**<a name="line.55"></a>
+<span class="sourceLineNo">056</span>     * Return the term serialised as specified by the RDF-1.1 N-Triples<a name="line.56"></a>
+<span class="sourceLineNo">057</span>     * Canonical form.<a name="line.57"></a>
+<span class="sourceLineNo">058</span>     *<a name="line.58"></a>
+<span class="sourceLineNo">059</span>     * @return The term serialised as RDF-1.1 N-Triples.<a name="line.59"></a>
+<span class="sourceLineNo">060</span>     * @see &lt;a href="http://www.w3.org/TR/n-triples/#canonical-ntriples"&gt;<a name="line.60"></a>
+<span class="sourceLineNo">061</span>     *      RDF-1.1 N-Triples Canonical form&lt;/a&gt;<a name="line.61"></a>
+<span class="sourceLineNo">062</span>     */<a name="line.62"></a>
+<span class="sourceLineNo">063</span>    String ntriplesString();<a name="line.63"></a>
+<span class="sourceLineNo">064</span><a name="line.64"></a>
+<span class="sourceLineNo">065</span>        /**<a name="line.65"></a>
+<span class="sourceLineNo">066</span>         * Check it this RDFTerm is equal to another RDFTerm.<a name="line.66"></a>
+<span class="sourceLineNo">067</span>         * &lt;p&gt;<a name="line.67"></a>
+<span class="sourceLineNo">068</span>         * If this object is an {@link IRI}, equality is checked using<a name="line.68"></a>
+<span class="sourceLineNo">069</span>         * {@link IRI#equals(Object)}, or if this object is a {@link BlankNode},<a name="line.69"></a>
+<span class="sourceLineNo">070</span>         * equality is checked using {@link BlankNode#equals(Object)}, or if this<a name="line.70"></a>
+<span class="sourceLineNo">071</span>         * object is a {@link Literal}, equality is checked using<a name="line.71"></a>
+<span class="sourceLineNo">072</span>         * {@link Literal#equals(Object)}.<a name="line.72"></a>
+<span class="sourceLineNo">073</span>         * &lt;p&gt;<a name="line.73"></a>
+<span class="sourceLineNo">074</span>         * Implementations MUST also override {@link #hashCode()} so that two equal<a name="line.74"></a>
+<span class="sourceLineNo">075</span>         * Literals produce the same hash code.<a name="line.75"></a>
+<span class="sourceLineNo">076</span>         *<a name="line.76"></a>
+<span class="sourceLineNo">077</span>         * @see IRI#equals(Object)<a name="line.77"></a>
+<span class="sourceLineNo">078</span>         * @see BlankNode#equals(Object)<a name="line.78"></a>
+<span class="sourceLineNo">079</span>         * @see Literal#equals(Object)<a name="line.79"></a>
+<span class="sourceLineNo">080</span>         *<a name="line.80"></a>
+<span class="sourceLineNo">081</span>         * @param other<a name="line.81"></a>
+<span class="sourceLineNo">082</span>         *            Another object<a name="line.82"></a>
+<span class="sourceLineNo">083</span>         * @return true if other is a RDFTerm and is equal to this<a name="line.83"></a>
+<span class="sourceLineNo">084</span>         */<a name="line.84"></a>
+<span class="sourceLineNo">085</span>    @Override<a name="line.85"></a>
+<span class="sourceLineNo">086</span>    public boolean equals(Object other);<a name="line.86"></a>
+<span class="sourceLineNo">087</span><a name="line.87"></a>
+<span class="sourceLineNo">088</span>        /**<a name="line.88"></a>
+<span class="sourceLineNo">089</span>         * Calculate a hash code for this RDFTerm.<a name="line.89"></a>
+<span class="sourceLineNo">090</span>         * &lt;p&gt;<a name="line.90"></a>
+<span class="sourceLineNo">091</span>         * As an {@link RDFTerm} is &lt;em&gt;immutable&lt;/em&gt;, this method will always<a name="line.91"></a>
+<span class="sourceLineNo">092</span>         * return the same hashCode over the lifetime of this object.<a name="line.92"></a>
+<span class="sourceLineNo">093</span>         * &lt;p&gt;<a name="line.93"></a>
+<span class="sourceLineNo">094</span>         * This method MUST be implemented in conjunction with<a name="line.94"></a>
+<span class="sourceLineNo">095</span>         * {@link #equals(Object)} so that two equal RDFTerm produce the same hash<a name="line.95"></a>
+<span class="sourceLineNo">096</span>         * code.<a name="line.96"></a>
+<span class="sourceLineNo">097</span>         *<a name="line.97"></a>
+<span class="sourceLineNo">098</span>         * @see IRI#hashCode()<a name="line.98"></a>
+<span class="sourceLineNo">099</span>         * @see Literal#hashCode()<a name="line.99"></a>
+<span class="sourceLineNo">100</span>         * @see BlankNode#hashCode()<a name="line.100"></a>
+<span class="sourceLineNo">101</span>         *<a name="line.101"></a>
+<span class="sourceLineNo">102</span>         * @return a hash code value for this RDFTerm.<a name="line.102"></a>
+<span class="sourceLineNo">103</span>         */<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    @Override<a name="line.104"></a>
+<span class="sourceLineNo">105</span>    public int hashCode();<a name="line.105"></a>
+<span class="sourceLineNo">106</span><a name="line.106"></a>
+<span class="sourceLineNo">107</span>}<a name="line.107"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/RDFTermFactory.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/RDFTermFactory.html (added)
+++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/RDFTermFactory.html Thu Nov 17 14:45:34 2016
@@ -0,0 +1,138 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements. See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership. The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.commons.rdf.api;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>/**<a name="line.20"></a>
+<span class="sourceLineNo">021</span> * Factory for creating RDFTerm instances..<a name="line.21"></a>
+<span class="sourceLineNo">022</span> * &lt;p&gt;<a name="line.22"></a>
+<span class="sourceLineNo">023</span> * This interface is &lt;strong&gt;deprecated&lt;/strong&gt; in favour of the richer<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * {@link RDF}.<a name="line.24"></a>
+<span class="sourceLineNo">025</span> * <a name="line.25"></a>
+<span class="sourceLineNo">026</span> * @see RDF<a name="line.26"></a>
+<span class="sourceLineNo">027</span> */<a name="line.27"></a>
+<span class="sourceLineNo">028</span>@Deprecated<a name="line.28"></a>
+<span class="sourceLineNo">029</span>public interface RDFTermFactory {<a name="line.29"></a>
+<span class="sourceLineNo">030</span><a name="line.30"></a>
+<span class="sourceLineNo">031</span>    default BlankNode createBlankNode() throws UnsupportedOperationException {<a name="line.31"></a>
+<span class="sourceLineNo">032</span>        throw new UnsupportedOperationException("createBlankNode() not supported");<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>    default BlankNode createBlankNode(final String name) throws UnsupportedOperationException {<a name="line.35"></a>
+<span class="sourceLineNo">036</span>        throw new UnsupportedOperationException("createBlankNode(String) not supported");<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>    default Graph createGraph() throws UnsupportedOperationException {<a name="line.39"></a>
+<span class="sourceLineNo">040</span>        throw new UnsupportedOperationException("createGraph() not supported");<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>    default IRI createIRI(final String iri) throws IllegalArgumentException, UnsupportedOperationException {<a name="line.43"></a>
+<span class="sourceLineNo">044</span>        throw new UnsupportedOperationException("createIRI(String) not supported");<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>    default Literal createLiteral(final String lexicalForm) throws IllegalArgumentException, UnsupportedOperationException {<a name="line.47"></a>
+<span class="sourceLineNo">048</span>        throw new UnsupportedOperationException("createLiteral(String) not supported");<a name="line.48"></a>
+<span class="sourceLineNo">049</span>    }<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span>    default Literal createLiteral(final String lexicalForm, final IRI dataType)<a name="line.51"></a>
+<span class="sourceLineNo">052</span>            throws IllegalArgumentException, UnsupportedOperationException {<a name="line.52"></a>
+<span class="sourceLineNo">053</span>        throw new UnsupportedOperationException("createLiteral(String) not supported");<a name="line.53"></a>
+<span class="sourceLineNo">054</span>    }<a name="line.54"></a>
+<span class="sourceLineNo">055</span><a name="line.55"></a>
+<span class="sourceLineNo">056</span>    default Literal createLiteral(final String lexicalForm, final String languageTag)<a name="line.56"></a>
+<span class="sourceLineNo">057</span>            throws IllegalArgumentException, UnsupportedOperationException {<a name="line.57"></a>
+<span class="sourceLineNo">058</span>        throw new UnsupportedOperationException("createLiteral(String,String) not supported");<a name="line.58"></a>
+<span class="sourceLineNo">059</span>    }<a name="line.59"></a>
+<span class="sourceLineNo">060</span><a name="line.60"></a>
+<span class="sourceLineNo">061</span>    default Triple createTriple(final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object)<a name="line.61"></a>
+<span class="sourceLineNo">062</span>            throws IllegalArgumentException, UnsupportedOperationException {<a name="line.62"></a>
+<span class="sourceLineNo">063</span>        throw new UnsupportedOperationException("createTriple(BlankNodeOrIRI,IRI,RDFTerm) not supported");<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>}<a name="line.66"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/Triple.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/Triple.html (added)
+++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/Triple.html Thu Nov 17 14:45:34 2016
@@ -0,0 +1,201 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements. See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership. The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.commons.rdf.api;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>import java.util.Objects;<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> * An &lt;a href= "http://www.w3.org/TR/rdf11-concepts/#dfn-rdf-triple" &gt;RDF-1.1<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * Triple&lt;/a&gt;, as defined by<a name="line.24"></a>
+<span class="sourceLineNo">025</span> * &lt;a href= "http://www.w3.org/TR/rdf11-concepts/" &gt;RDF-1.1 Concepts and<a name="line.25"></a>
+<span class="sourceLineNo">026</span> * Abstract Syntax&lt;/a&gt;, a W3C Recommendation published on 25 February 2014.<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * &lt;p&gt;<a name="line.27"></a>
+<span class="sourceLineNo">028</span> * A &lt;code&gt;Triple&lt;/code&gt; object in Commons RDF is considered<a name="line.28"></a>
+<span class="sourceLineNo">029</span> * &lt;strong&gt;immutable&lt;/strong&gt;, that is, over its life time it will have<a name="line.29"></a>
+<span class="sourceLineNo">030</span> * consistent behaviour for its {@link #equals(Object)}, and the {@link RDFTerm}<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * instances returned from {@link #getSubject()}, {@link #getPredicate()} and<a name="line.31"></a>
+<span class="sourceLineNo">032</span> * {@link #getObject()} will have consistent {@link RDFTerm#equals(Object)}<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * behaviour.<a name="line.33"></a>
+<span class="sourceLineNo">034</span> * &lt;p&gt;<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * Note that &lt;code&gt;Triple&lt;/code&gt; methods are not required to return object<a name="line.35"></a>
+<span class="sourceLineNo">036</span> * identical (&lt;code&gt;==&lt;/code&gt;) instances as long as they are equivalent<a name="line.36"></a>
+<span class="sourceLineNo">037</span> * according to {@link RDFTerm#equals(Object)}. Specialisations of<a name="line.37"></a>
+<span class="sourceLineNo">038</span> * &lt;code&gt;Triple&lt;/code&gt; may provide additional methods that are documented to be<a name="line.38"></a>
+<span class="sourceLineNo">039</span> * mutable.<a name="line.39"></a>
+<span class="sourceLineNo">040</span> * &lt;p&gt;<a name="line.40"></a>
+<span class="sourceLineNo">041</span> * &lt;code&gt;Triple&lt;/code&gt; methods are &lt;strong&gt;thread-safe&lt;/strong&gt;, however<a name="line.41"></a>
+<span class="sourceLineNo">042</span> * specialisations may provide additional methods that are documented to not be<a name="line.42"></a>
+<span class="sourceLineNo">043</span> * thread-safe.<a name="line.43"></a>
+<span class="sourceLineNo">044</span> * &lt;p&gt;<a name="line.44"></a>
+<span class="sourceLineNo">045</span> * &lt;code&gt;Triple&lt;/code&gt;s can be safely used in hashing collections like<a name="line.45"></a>
+<span class="sourceLineNo">046</span> * {@link java.util.HashSet} and {@link java.util.HashMap}.<a name="line.46"></a>
+<span class="sourceLineNo">047</span> * &lt;p&gt;<a name="line.47"></a>
+<span class="sourceLineNo">048</span> * Any &lt;code&gt;Triple&lt;/code&gt; can be used interchangeably across Commons RDF<a name="line.48"></a>
+<span class="sourceLineNo">049</span> * implementations.<a name="line.49"></a>
+<span class="sourceLineNo">050</span> *<a name="line.50"></a>
+<span class="sourceLineNo">051</span> * @see Quad<a name="line.51"></a>
+<span class="sourceLineNo">052</span> * @see RDF#createTriple(BlankNodeOrIRI,IRI,RDFTerm)<a name="line.52"></a>
+<span class="sourceLineNo">053</span> * @see &lt;a href= "http://www.w3.org/TR/rdf11-concepts/#dfn-rdf-triple" &gt;RDF-1.1<a name="line.53"></a>
+<span class="sourceLineNo">054</span> *      Triple&lt;/a&gt;<a name="line.54"></a>
+<span class="sourceLineNo">055</span> */<a name="line.55"></a>
+<span class="sourceLineNo">056</span>public interface Triple extends TripleLike {<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>     * The subject of this triple, which may be either a {@link BlankNode} or an<a name="line.59"></a>
+<span class="sourceLineNo">060</span>     * {@link IRI}, which are represented in Commons RDF by the interface<a name="line.60"></a>
+<span class="sourceLineNo">061</span>     * {@link BlankNodeOrIRI}.<a name="line.61"></a>
+<span class="sourceLineNo">062</span>     *<a name="line.62"></a>
+<span class="sourceLineNo">063</span>     * @return The subject {@link BlankNodeOrIRI} of this triple.<a name="line.63"></a>
+<span class="sourceLineNo">064</span>     * @see &lt;a href="http://www.w3.org/TR/rdf11-concepts/#dfn-subject"&gt;RDF-1.1<a name="line.64"></a>
+<span class="sourceLineNo">065</span>     *      Triple subject&lt;/a&gt;<a name="line.65"></a>
+<span class="sourceLineNo">066</span>     */<a name="line.66"></a>
+<span class="sourceLineNo">067</span>    @Override<a name="line.67"></a>
+<span class="sourceLineNo">068</span>    BlankNodeOrIRI getSubject();<a name="line.68"></a>
+<span class="sourceLineNo">069</span><a name="line.69"></a>
+<span class="sourceLineNo">070</span>    /**<a name="line.70"></a>
+<span class="sourceLineNo">071</span>     * The predicate {@link IRI} of this triple.<a name="line.71"></a>
+<span class="sourceLineNo">072</span>     *<a name="line.72"></a>
+<span class="sourceLineNo">073</span>     * @return The predicate {@link IRI} of this triple.<a name="line.73"></a>
+<span class="sourceLineNo">074</span>     * @see &lt;a href="http://www.w3.org/TR/rdf11-concepts/#dfn-predicate"&gt;RDF-1.1<a name="line.74"></a>
+<span class="sourceLineNo">075</span>     *      Triple predicate&lt;/a&gt;<a name="line.75"></a>
+<span class="sourceLineNo">076</span>     */<a name="line.76"></a>
+<span class="sourceLineNo">077</span>    @Override<a name="line.77"></a>
+<span class="sourceLineNo">078</span>    IRI getPredicate();<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>     * The object of this triple, which may be either a {@link BlankNode}, an<a name="line.81"></a>
+<span class="sourceLineNo">082</span>     * {@link IRI}, or a {@link Literal}, which are represented in Commons RDF<a name="line.82"></a>
+<span class="sourceLineNo">083</span>     * by the interface {@link RDFTerm}.<a name="line.83"></a>
+<span class="sourceLineNo">084</span>     *<a name="line.84"></a>
+<span class="sourceLineNo">085</span>     * @return The object {@link RDFTerm} of this triple.<a name="line.85"></a>
+<span class="sourceLineNo">086</span>     * @see &lt;a href="http://www.w3.org/TR/rdf11-concepts/#dfn-object"&gt;RDF-1.1<a name="line.86"></a>
+<span class="sourceLineNo">087</span>     *      Triple object&lt;/a&gt;<a name="line.87"></a>
+<span class="sourceLineNo">088</span>     */<a name="line.88"></a>
+<span class="sourceLineNo">089</span>    @Override<a name="line.89"></a>
+<span class="sourceLineNo">090</span>    RDFTerm getObject();<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>     * Check it this Triple is equal to another Triple.<a name="line.93"></a>
+<span class="sourceLineNo">094</span>     * &lt;p&gt;<a name="line.94"></a>
+<span class="sourceLineNo">095</span>     * Two Triples are equal if and only if their {@link #getSubject()},<a name="line.95"></a>
+<span class="sourceLineNo">096</span>     * {@link #getPredicate()} and {@link #getObject()} are equal.<a name="line.96"></a>
+<span class="sourceLineNo">097</span>     * &lt;/p&gt;<a name="line.97"></a>
+<span class="sourceLineNo">098</span>     * &lt;p&gt;<a name="line.98"></a>
+<span class="sourceLineNo">099</span>     * Implementations MUST also override {@link #hashCode()} so that two equal<a name="line.99"></a>
+<span class="sourceLineNo">100</span>     * Triples produce the same hash code.<a name="line.100"></a>
+<span class="sourceLineNo">101</span>     * &lt;/p&gt;<a name="line.101"></a>
+<span class="sourceLineNo">102</span>     *<a name="line.102"></a>
+<span class="sourceLineNo">103</span>     * @param other<a name="line.103"></a>
+<span class="sourceLineNo">104</span>     *            Another object<a name="line.104"></a>
+<span class="sourceLineNo">105</span>     * @return true if other is a Triple and is equal to this<a name="line.105"></a>
+<span class="sourceLineNo">106</span>     * @see Object#equals(Object)<a name="line.106"></a>
+<span class="sourceLineNo">107</span>     */<a name="line.107"></a>
+<span class="sourceLineNo">108</span>    @Override<a name="line.108"></a>
+<span class="sourceLineNo">109</span>    public boolean equals(Object other);<a name="line.109"></a>
+<span class="sourceLineNo">110</span><a name="line.110"></a>
+<span class="sourceLineNo">111</span>    /**<a name="line.111"></a>
+<span class="sourceLineNo">112</span>     * Calculate a hash code for this Triple.<a name="line.112"></a>
+<span class="sourceLineNo">113</span>     * &lt;p&gt;<a name="line.113"></a>
+<span class="sourceLineNo">114</span>     * The returned hash code MUST be equal to the result of<a name="line.114"></a>
+<span class="sourceLineNo">115</span>     * {@link Objects#hash(Object...)} with the arguments {@link #getSubject()},<a name="line.115"></a>
+<span class="sourceLineNo">116</span>     * {@link #getPredicate()}, {@link #getObject()}.<a name="line.116"></a>
+<span class="sourceLineNo">117</span>     * &lt;p&gt;<a name="line.117"></a>
+<span class="sourceLineNo">118</span>     * This method MUST be implemented in conjunction with<a name="line.118"></a>
+<span class="sourceLineNo">119</span>     * {@link #equals(Object)} so that two equal {@link Triple}s produce the<a name="line.119"></a>
+<span class="sourceLineNo">120</span>     * same hash code.<a name="line.120"></a>
+<span class="sourceLineNo">121</span>     *<a name="line.121"></a>
+<span class="sourceLineNo">122</span>     * @return a hash code value for this Triple.<a name="line.122"></a>
+<span class="sourceLineNo">123</span>     * @see Object#hashCode()<a name="line.123"></a>
+<span class="sourceLineNo">124</span>     * @see Objects#hash(Object...)<a name="line.124"></a>
+<span class="sourceLineNo">125</span>     */<a name="line.125"></a>
+<span class="sourceLineNo">126</span>    @Override<a name="line.126"></a>
+<span class="sourceLineNo">127</span>    public int hashCode();<a name="line.127"></a>
+<span class="sourceLineNo">128</span><a name="line.128"></a>
+<span class="sourceLineNo">129</span>}<a name="line.129"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/TripleLike.html
==============================================================================
--- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/TripleLike.html (added)
+++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/TripleLike.html Thu Nov 17 14:45:34 2016
@@ -0,0 +1,136 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+<title>Source code</title>
+<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
+</head>
+<body>
+<div class="sourceContainer">
+<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
+<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * or more contributor license agreements. See the NOTICE file<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * regarding copyright ownership. The ASF licenses this file<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
+<span class="sourceLineNo">009</span> *<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *<a name="line.11"></a>
+<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
+<span class="sourceLineNo">017</span> */<a name="line.17"></a>
+<span class="sourceLineNo">018</span>package org.apache.commons.rdf.api;<a name="line.18"></a>
+<span class="sourceLineNo">019</span><a name="line.19"></a>
+<span class="sourceLineNo">020</span>/**<a name="line.20"></a>
+<span class="sourceLineNo">021</span> * A generalised "triple-like" interface, extended by {@link Triple} and<a name="line.21"></a>
+<span class="sourceLineNo">022</span> * {@link Quad}.<a name="line.22"></a>
+<span class="sourceLineNo">023</span> * &lt;p&gt;<a name="line.23"></a>
+<span class="sourceLineNo">024</span> * A TripleLike statement has at least a {@link #getSubject()},<a name="line.24"></a>
+<span class="sourceLineNo">025</span> * {@link #getPredicate()} and {@link #getObject()}, but unlike a {@link Triple}<a name="line.25"></a>
+<span class="sourceLineNo">026</span> * does not have a formalised {@link Triple#equals(Object)} or<a name="line.26"></a>
+<span class="sourceLineNo">027</span> * {@link Triple#hashCode()} semantics and is not required to be<a name="line.27"></a>
+<span class="sourceLineNo">028</span> * &lt;em&gt;immutable&lt;/em&gt; or &lt;em&gt;thread-safe&lt;/em&gt;. This interfaced can also be used<a name="line.28"></a>
+<span class="sourceLineNo">029</span> * for &lt;em&gt;generalised triples&lt;/em&gt; (e.g. a {@link BlankNode} as predicate).<a name="line.29"></a>
+<span class="sourceLineNo">030</span> * &lt;p&gt;<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * Implementations should specialise which specific {@link RDFTerm} types they<a name="line.31"></a>
+<span class="sourceLineNo">032</span> * return by overriding {@link #getSubject()}, {@link #getPredicate()} and<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * {@link #getObject()}.<a name="line.33"></a>
+<span class="sourceLineNo">034</span> * <a name="line.34"></a>
+<span class="sourceLineNo">035</span> * <a name="line.35"></a>
+<span class="sourceLineNo">036</span> * @since 0.3.0-incubating<a name="line.36"></a>
+<span class="sourceLineNo">037</span> * @see Triple<a name="line.37"></a>
+<span class="sourceLineNo">038</span> * @see Quad<a name="line.38"></a>
+<span class="sourceLineNo">039</span> * @see QuadLike<a name="line.39"></a>
+<span class="sourceLineNo">040</span> */<a name="line.40"></a>
+<span class="sourceLineNo">041</span>public interface TripleLike {<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>     * The subject of this statement.<a name="line.44"></a>
+<span class="sourceLineNo">045</span>     *<a name="line.45"></a>
+<span class="sourceLineNo">046</span>     * @return The subject, typically an {@link IRI} or {@link BlankNode}.<a name="line.46"></a>
+<span class="sourceLineNo">047</span>     */<a name="line.47"></a>
+<span class="sourceLineNo">048</span>    RDFTerm getSubject();<a name="line.48"></a>
+<span class="sourceLineNo">049</span><a name="line.49"></a>
+<span class="sourceLineNo">050</span>    /**<a name="line.50"></a>
+<span class="sourceLineNo">051</span>     * The predicate of this statement.<a name="line.51"></a>
+<span class="sourceLineNo">052</span>     *<a name="line.52"></a>
+<span class="sourceLineNo">053</span>     * @return The predicate, typically an {@link IRI}.<a name="line.53"></a>
+<span class="sourceLineNo">054</span>     */<a name="line.54"></a>
+<span class="sourceLineNo">055</span>    RDFTerm getPredicate();<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>     * The object of this statement.<a name="line.58"></a>
+<span class="sourceLineNo">059</span>     *<a name="line.59"></a>
+<span class="sourceLineNo">060</span>     * @return The object, typically an {@link IRI}, {@link BlankNode} or<a name="line.60"></a>
+<span class="sourceLineNo">061</span>     *         {@link Literal}.<a name="line.61"></a>
+<span class="sourceLineNo">062</span>     */<a name="line.62"></a>
+<span class="sourceLineNo">063</span>    RDFTerm getObject();<a name="line.63"></a>
+<span class="sourceLineNo">064</span>}<a name="line.64"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>
\ No newline at end of file



Mime
View raw message