svn commit: r1001278 [21/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/dependencies.html == --- websites/production/commonsrdf/content/commons-rdf-parent/dependencies.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/dependencies.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,547 @@ + + +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + + + + + +Apache Commons RDF Project Dependencies + + + + + + + + + + + + + +window.onload=function() { + prettyPrint(); + } + + + + http://commonsrdf.incubator.apache.org/; id="bannerLeft" title="Apache Commons RDF logo"> + + + + + + + + https://commonsrdf.incubator.apache.org/;>Commons RDF + + +Last Published: 17 November 2016 + | Version: 0.4.0-incubating-SNAPSHOT + + + + http://www.apachecon.com/; class="externalLink" title="ApacheCon"> +ApacheCon + + + http://www.apache.org; class="externalLink" title="Apache"> +Apache + + + http://commons.apache.org/; class="externalLink" title="Commons"> +Commons + + + http://incubator.apache.org/; class="externalLink" title="Incubator"> +Incubator + + + + + + + + + + + + + + Project + + +Home + + + +API + + + +Implementations + + + +User Guide + + + +Download + + + +Contributing + + + +Team + + + + Tools + + +Mailing Lists + + + https://git-wip-us.apache.org/repos/asf/incubator-commonsrdf.git; class="externalLink" title="Source (Git)"> +Source (Git) + + + https://github.com/apache/incubator-commonsrdf/; class="externalLink" title="Source (GitHub mirror)"> +Source (GitHub mirror) + + + https://issues.apache.org/jira/browse/COMMONSRDF; class="externalLink" title="Issues (Jira)"> +Issues (Jira) + + + + Modules + + +Commons RDF API + + + +Project Documentation + + +Project Information + + + +About + + + +Summary + + + +Project Modules + + + +Team + + + +Source Code Management + + + +Issue Management + + + +Mailing Lists + + + +Dependency Information + + + +Dependencies + + + +Dependency Convergence + + + +CI Management + + + +Distribution Management + + + +
svn commit: r1001278 [35/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/xref-test/org/apache/commons/rdf/api/DummyDataset.html == --- websites/production/commonsrdf/content/commons-rdf-parent/xref-test/org/apache/commons/rdf/api/DummyDataset.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/xref-test/org/apache/commons/rdf/api/DummyDataset.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,123 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +DummyDataset xref + + + +View Javadoc +1 /** +2* Licensed to the Apache Software Foundation (ASF) under one +3* or more contributor license agreements. See the NOTICE file +4* distributed with this work for additional information +5* regarding copyright ownership. The ASF licenses this file +6* to you under the Apache License, Version 2.0 (the +7* "License"); you may not use this file except in compliance +8* with the License. You may obtain a copy of the License at +9* +10 * http://www.apache.org/licenses/LICENSE-2.; target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0 +11 * +12 * Unless required by applicable law or agreed to in writing, software +13 * distributed under the License is distributed on an "AS IS" BASIS, +14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +15 * See the License for the specific language governing permissions and +16 * limitations under the License. +17 */ +18 package org.apache.commons.rdf.api; +19 +20 import java.util.Arrays; +21 import java.util.Optional; +22 import java.util.stream.Stream; +23 +24 class DummyDataset implements Dataset { +25 +26 boolean streamCalled = false; +27 boolean filteredStreamCalled; +28 +29 @Override +30 public void add(final Quad Quad) { +31 if (! contains(Quad)) { +32 throw new IllegalStateException("DummyDataset can't be modified"); +33 } +34 } +35 +36 @Override +37 public void add(final BlankNodeOrIRI graphName, final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object) { +38 if (! contains(Optional.ofNullable(graphName), subject, predicate, object)) { +39 throw new IllegalStateException("DummyDataset can't be modified"); +40 } +41 } +42 +43 @Override +44 public boolean contains(final Quad Quad) { +45 return Quad.equals(new DummyQuad()); +46 } +47 +48 @Override +49 public boolean contains(final OptionalBlankNodeOrIRI graphName, final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object) { +50 return (graphName == null || ! graphName.isPresent()) +51 (subject == null || subject.equals(new DummyIRI(1))) +52 (predicate == null || predicate.equals(new DummyIRI(2))) +53 (object == null || object.equals(new DummyIRI(3))); +54 } +55 @Override +56 public void remove(final Quad Quad) { +57 if (contains(Quad)) { +58 throw new IllegalStateException("DummyDataset can't be modified"); +59 } +60 } +61 @Override +62 public void remove(final OptionalBlankNodeOrIRI graphName, final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object) { +63 if (contains(graphName, subject, predicate, object)) { +64 throw new IllegalStateException("DummyDataset can't be modified"); +65 } +66 } +67 @Override +68 public void clear() { +69 throw new IllegalStateException("DummyDataset can't be modified"); +70 } +71 @Override +72 public long size() { +73 return 1; +74 } +75 @Override +76 public Stream? extends Quad stream() { +77 streamCalled = true; +78 return Arrays.asList(new DummyQuad()).stream(); +79 } +80 +81 @Override +82 public Stream? extends Quad stream(final OptionalBlankNodeOrIRI graphName, final BlankNodeOrIRI subject, final IRI predicate, +83 final RDFTerm object) { +84 filteredStreamCalled = true; +85 if (contains(graphName, subject, predicate, object)) { +86 return Stream.of(new DummyQuad()); +87 } else { +88 return Stream.empty(); +89 } +90 } +91 +92 @Override +93 public Graph getGraph() { +94 return new DummyGraph(); +95 } +96 +97 @Override +98 public OptionalGraph getGraph(final BlankNodeOrIRI graphName) { +99 if (graphName == null) { +100 return Optional.of(getGraph()); +101 } else { +102 return Optional.empty(); +103 } +104 } +105 +106 @Override +107 public StreamBlankNodeOrIRI
svn commit: r1001278 [31/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/xref-test/org/apache/commons/rdf/api/AbstractBlankNodeTest.html == --- websites/production/commonsrdf/content/commons-rdf-parent/xref-test/org/apache/commons/rdf/api/AbstractBlankNodeTest.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/xref-test/org/apache/commons/rdf/api/AbstractBlankNodeTest.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,221 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +AbstractBlankNodeTest xref + + + +View Javadoc +1 /** +2* Licensed to the Apache Software Foundation (ASF) under one +3* or more contributor license agreements. See the NOTICE file +4* distributed with this work for additional information +5* regarding copyright ownership. The ASF licenses this file +6* to you under the Apache License, Version 2.0 (the +7* "License"); you may not use this file except in compliance +8* with the License. You may obtain a copy of the License at +9* +10 * http://www.apache.org/licenses/LICENSE-2.; target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0 +11 * +12 * Unless required by applicable law or agreed to in writing, software +13 * distributed under the License is distributed on an "AS IS" BASIS, +14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +15 * See the License for the specific language governing permissions and +16 * limitations under the License. +17 */ +18 package org.apache.commons.rdf.api; +19 +20 import org.junit.Test; +21 +22 import static org.junit.Assert.assertEquals; +23 import static org.junit.Assert.assertNotEquals; +24 +25 /** +26 * Abstract test class for the BlankNode interface. +27 */ +28 public abstract class AbstractBlankNodeTest { +29 +30 /** +31 * This method must be overridden by the implementing test to create a +32 * {@link BlankNode} to be tested. +33 * p +34 * Each call to this method must provide a new, unique BlankNode. +35 * +36 * @return {@link RDF} instance to be tested. +37 */ +38 protected abstract BlankNode getBlankNode(); +39 +40 /** +41 * Gets a new blank node object based on the given identifier. +42 * p +43 * Subsequent calls to this method during a single test with the same +44 * identifier must return BlankNode objects that are equals and have the +45 * same hashCode. The objects returned from successive calls during a single +46 * test may be the same object, or they may be different objects. +47 * /p +48 * +49 * @param identifier +50 *The identifier to use as the reference for creating the blank +51 *node that is returned. +52 * @return A new blank node based on the +53 */ +54 protected abstract BlankNode getBlankNode(String identifier); +55 +56 /** +57 * Test method for {@link BlankNode#uniqueReference()}. +58 */ +59 @Test +60 public final void testInternalIdentifier() { +61 final BlankNode testNull = new BlankNode() { +62 @Override +63 public String ntriplesString() { +64 return null; +65 } +66 +67 @Override +68 public String uniqueReference() { +69 return null; +70 } +71 }; +72 final BlankNode testAutomatic1 = getBlankNode(); +73 final BlankNode testAutomatic2 = getBlankNode(); +74 final BlankNode testManual3a = getBlankNode("3"); +75 final BlankNode testManual3b = getBlankNode("3"); +76 final BlankNode testManual4 = getBlankNode("4"); +77 +78 // Test against our fake stub +79 assertNotEquals(testNull.uniqueReference(), testAutomatic1.uniqueReference()); +80 assertNotEquals(testAutomatic1.uniqueReference(), testNull.uniqueReference()); +81 assertNotEquals(testNull.uniqueReference(), testManual3a.uniqueReference()); +82 assertNotEquals(testManual3a.uniqueReference(), testNull.uniqueReference()); +83 +84 // Test the two imported instances against each other +85 assertEquals(testAutomatic1.uniqueReference(), testAutomatic1.uniqueReference()); +86 assertEquals(testAutomatic2.uniqueReference(), testAutomatic2.uniqueReference()); +87 assertNotEquals(testAutomatic1.uniqueReference(), testAutomatic2.uniqueReference()); +88 assertNotEquals(testAutomatic2.uniqueReference(), testAutomatic1.uniqueReference()); +89 assertNotEquals(testAutomatic1.uniqueReference(), testManual3a.uniqueReference()); +90 assertEquals(testManual3b.uniqueReference(), testManual3a.uniqueReference()); +91
svn commit: r1001278 [6/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ ap
Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/RDF.html == --- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/RDF.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/RDF.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,585 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + + +RDF (Commons RDF 0.4.0-incubating-SNAPSHOT API) + + + + + +var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; +var altColor = "altColor"; +var rowColor = "rowColor"; +var tableTab = "tableTab"; +var activeTableTab = "activeTableTab"; + + +JavaScript is disabled on your browser. + + + + + +Skip navigation links + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +PrevClass +NextClass + + +Frames +NoFrames + + +AllClasses + + + + + + + +Summary: +Nested| +Field| +Constr| +Method + + +Detail: +Field| +Constr| +Method + + + + + + + + +org.apache.commons.rdf.api +Interface RDF + + + + + + + +public interface RDF +A RDF implementation. + + A RDF implementation can create instances of the RDFTerm + types IRI, BlankNode and Literal, as well as creating + instances of the types Triple, Quad, Graph or + Dataset. + + A partial RDF implementation should be clearly documented as such, + and may throw https://docs.oracle.com/javase/8/docs/api/java/lang/UnsupportedOperationException.html?is-external=true; title="class or interface in java.lang">UnsupportedOperationException where applicable, e.g. if + it does not support creating Datasets or Quads. + + Instances of RDF work like a factory for creating Commons RDF + instances. spezializations of this interface may also provide methods for + conversions from/to their underlying RDF framework. + + If a factory method of a particular implementation does not allow or support + a provided parameter, e.g. because an IRI is considered invalid, then it + SHOULD throw https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true; title="class or interface in java.lang">IllegalArgumentException. + +Since: +0.3.0-incubating +See Also: +RDFTerm, +Graph, +Quad + + + + + + + + + + + + +Method Summary + +All MethodsInstance MethodsAbstract Methods + +Modifier and Type +Method and Description + + +BlankNode +createBlankNode() +Create a new blank node. + + + +BlankNode +createBlankNode(https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">Stringname) +Create a blank node based on the given name. + + + +Dataset +createDataset() +Create a new dataset. + + + +Graph +createGraph() +Create a new graph. + + + +IRI +createIRI(https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">Stringiri) +Create an IRI from a (possibly escaped) String. + + + +Literal +createLiteral(https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">StringlexicalForm) +Create a simple literal. + + + +Literal +createLiteral(https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">StringlexicalForm, + IRIdataType) +Create a literal with the specified data type. + + + +Literal +createLiteral(https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">StringlexicalForm, + https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">StringlanguageTag) +Create a language-tagged literal. + + + +Quad +createQuad(BlankNodeOrIRIgraphName, + BlankNodeOrIRIsubject, + IRIpredicate, + RDFTermobject) +Create a quad. + + + +Triple +createTriple(BlankNodeOrIRIsubject, +IRIpredicate, +RDFTermobject) +Create a triple. + + + + + + + + + + + + + + + + +Method Detail + + + + + +createBlankNode +BlankNodecreateBlankNode() +Create a new blank node. + + The returned blank node MUST NOT be equal to any existing + BlankNode instances according to + BlankNode.equals(Object). + +Returns: +A new, unique BlankNode + + + + + + + + +createBlankNode
svn commit: r1001278 [13/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/experimental/class-use/RDFParser.html == --- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/experimental/class-use/RDFParser.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/experimental/class-use/RDFParser.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,235 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + + +Uses of Interface org.apache.commons.rdf.experimental.RDFParser (Commons RDF 0.4.0-incubating-SNAPSHOT API) + + + + + + + +JavaScript is disabled on your browser. + + + + + +Skip navigation links + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +Prev +Next + + +Frames +NoFrames + + +AllClasses + + + + + + + + + + +Uses of Interfaceorg.apache.commons.rdf.experimental.RDFParser + + + + + +Packages that use RDFParser + +Package +Description + + + +org.apache.commons.rdf.experimental + +Experimental Commons RDF features. + + + + + + + + + + +Uses of RDFParser in org.apache.commons.rdf.experimental + +Methods in org.apache.commons.rdf.experimental that return RDFParser + +Modifier and Type +Method and Description + + + +RDFParser +RDFParser.base(IRIbase) +Specify a base IRI to use for parsing any relative IRI references. + + + +RDFParser +RDFParser.base(https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">Stringbase) +Specify a base IRI to use for parsing any relative IRI references. + + + +RDFParser +RDFParser.contentType(RDFSyntaxrdfSyntax) +Specify the content type of the RDF syntax to parse. + + + +RDFParser +RDFParser.contentType(https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">StringcontentType) +Specify the content type of the RDF syntax to parse. + + + +RDFParser +RDFParser.rdfTermFactory(RDFrdfTermFactory) +Specify which RDF to use for generating RDFTerms. + + + +RDFParser +RDFParser.source(https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true; title="class or interface in java.io">InputStreaminputStream) +Specify a source https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true; title="class or interface in java.io">InputStream to parse. + + + +RDFParser +RDFParser.source(IRIiri) +Specify an absolute source IRI to retrieve and parse. + + + +RDFParser +RDFParser.source(https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html?is-external=true; title="class or interface in java.nio.file">Pathfile) +Specify a source file https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html?is-external=true; title="class or interface in java.nio.file">Path to parse. + + + +RDFParser +RDFParser.source(https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">Stringiri) +Specify an absolute source IRI to retrieve and parse. + + + +RDFParser +RDFParser.target(https://docs.oracle.com/javase/8/docs/api/java/util/function/Consumer.html?is-external=true; title="class or interface in java.util.function">ConsumerQuadconsumer) +Specify a consumer for parsed quads. + + + +default RDFParser +RDFParser.target(Datasetdataset) +Specify a Dataset to add parsed quads to. + + + +default RDFParser +RDFParser.target(Graphgraph) +Specify a Graph to add parsed triples to. + + + + + + + + + + + + + +Skip navigation links + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +Prev +Next + + +Frames +NoFrames + + +AllClasses + + + + + + + + + +Copyright 20152016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. + + \ No newline at end of file Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/experimental/package-frame.html == --- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/experimental/package-frame.html (added) +++
svn commit: r1001278 [28/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/rat-report.html == --- websites/production/commonsrdf/content/commons-rdf-parent/rat-report.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/rat-report.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,27114 @@ + + +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + + + + + +Apache Commons RDF Rat (Release Audit Tool) results + + + + + + + + + + + + + +window.onload=function() { + prettyPrint(); + } + + + + http://commonsrdf.incubator.apache.org/; id="bannerLeft" title="Apache Commons RDF logo"> + + + + + + + + https://commonsrdf.incubator.apache.org/;>Commons RDF + + +Last Published: 17 November 2016 + | Version: 0.4.0-incubating-SNAPSHOT + + + + http://www.apachecon.com/; class="externalLink" title="ApacheCon"> +ApacheCon + + + http://www.apache.org; class="externalLink" title="Apache"> +Apache + + + http://commons.apache.org/; class="externalLink" title="Commons"> +Commons + + + http://incubator.apache.org/; class="externalLink" title="Incubator"> +Incubator + + + + + + + + + + + + + + Project + + +Home + + + +API + + + +Implementations + + + +User Guide + + + +Download + + + +Contributing + + + +Team + + + + Tools + + +Mailing Lists + + + https://git-wip-us.apache.org/repos/asf/incubator-commonsrdf.git; class="externalLink" title="Source (Git)"> +Source (Git) + + + https://github.com/apache/incubator-commonsrdf/; class="externalLink" title="Source (GitHub mirror)"> +Source (GitHub mirror) + + + https://issues.apache.org/jira/browse/COMMONSRDF; class="externalLink" title="Issues (Jira)"> +Issues (Jira) + + + + Modules + + +Commons RDF API + + + +Project Documentation + + +Project Information + + + +Project Reports + + + +JIRA Report + + + +JavaDocs + + + +Source Xref + + + +Test Source Xref + + + +Surefire Report + + + +Rat Report + + + +Checkstyle + + + +PMD + + + + + + Commons + + http://commons.apache.org/; class="externalLink" title="Home"> +
svn commit: r1001278 [9/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ ap
Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/IRI.html == --- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/IRI.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/IRI.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,371 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + + +Uses of Interface org.apache.commons.rdf.api.IRI (Commons RDF 0.4.0-incubating-SNAPSHOT API) + + + + + + + +JavaScript is disabled on your browser. + + + + + +Skip navigation links + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +Prev +Next + + +Frames +NoFrames + + +AllClasses + + + + + + + + + + +Uses of Interfaceorg.apache.commons.rdf.api.IRI + + + + + +Packages that use IRI + +Package +Description + + + +org.apache.commons.rdf.api + +Commons RDF, a common library of RDF 1.1 concepts. + + + +org.apache.commons.rdf.experimental + +Experimental Commons RDF features. + + + + + + + + + + +Uses of IRI in org.apache.commons.rdf.api + +Methods in org.apache.commons.rdf.api that return IRI + +Modifier and Type +Method and Description + + + +default IRI +RDFTermFactory.createIRI(https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">Stringiri) +Deprecated. + + + +IRI +RDF.createIRI(https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">Stringiri) +Create an IRI from a (possibly escaped) String. + + + +IRI +Literal.getDatatype() +The IRI identifying the datatype that determines how the lexical form + maps to a literal value. + + + +IRI +Triple.getPredicate() +The predicate IRI of this triple. + + + +IRI +Quad.getPredicate() +The predicate IRI of this quad. + + + + + +Methods in org.apache.commons.rdf.api with parameters of type IRI + +Modifier and Type +Method and Description + + + +void +Dataset.add(BlankNodeOrIRIgraphName, + BlankNodeOrIRIsubject, + IRIpredicate, + RDFTermobject) +Add a quad to the dataset, possibly mapping any of the components to + those supported by this dataset. + + + +void +Graph.add(BlankNodeOrIRIsubject, + IRIpredicate, + RDFTermobject) +Add a triple to the graph, possibly mapping any of the components to + those supported by this Graph. + + + +boolean +Graph.contains(BlankNodeOrIRIsubject, +IRIpredicate, +RDFTermobject) +Check if graph contains a pattern of triples. + + + +boolean +Dataset.contains(https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true; title="class or interface in java.util">OptionalBlankNodeOrIRIgraphName, +BlankNodeOrIRIsubject, +IRIpredicate, +RDFTermobject) +Check if dataset contains a pattern of quads. + + + +default Literal +RDFTermFactory.createLiteral(https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">StringlexicalForm, + IRIdataType) +Deprecated. + + + +Literal +RDF.createLiteral(https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">StringlexicalForm, + IRIdataType) +Create a literal with the specified data type. + + + +Quad +RDF.createQuad(BlankNodeOrIRIgraphName, + BlankNodeOrIRIsubject, + IRIpredicate, + RDFTermobject) +Create a quad. + + + +default Triple +RDFTermFactory.createTriple(BlankNodeOrIRIsubject, +IRIpredicate, +RDFTermobject) +Deprecated. + + + +Triple +RDF.createTriple(BlankNodeOrIRIsubject, +IRIpredicate, +RDFTermobject) +Create a triple. + + + +default https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html?is-external=true; title="class or interface in java.util.stream">Stream? extends Triple +Graph.getTriples(BlankNodeOrIRIsubject, + IRIpredicate, + RDFTermobject) +Deprecated. + + + +default https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true; title="class or interface in java.lang">IterableTriple +Graph.iterate(BlankNodeOrIRIsubject, + IRIpredicate, + RDFTermobject) +Get an Iterable for iterating over the triples in the graph that match + the pattern. + + + +default
svn commit: r1001278 [20/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/css/bootstrap-1.3.0.min.css == --- websites/production/commonsrdf/content/commons-rdf-parent/css/bootstrap-1.3.0.min.css (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/css/bootstrap-1.3.0.min.css Thu Nov 17 14:45:34 2016 @@ -0,0 +1,330 @@ +html,body{margin:0;padding:0;} +h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,cite,code,del,dfn,em,img,q,s,samp,small,strike,strong,sub,sup,tt,var,dd,dl,dt,li,ol,ul,fieldset,form,label,legend,button,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;font-weight:normal;font-style:normal;font-size:100%;line-height:1;font-family:inherit;} +table{border-collapse:collapse;border-spacing:0;} +ol,ul{list-style:none;} +q:before,q:after,blockquote:before,blockquote:after{content:"";} +html{overflow-y:scroll;font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;} +a:focus{outline:thin dotted;} +a:hover,a:active{outline:0;} +article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block;} +audio,canvas,video{display:inline-block;*display:inline;*zoom:1;} +audio:not([controls]){display:none;} +sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;} +sup{top:-0.5em;} +sub{bottom:-0.25em;} +img{border:0;-ms-interpolation-mode:bicubic;} +button,input,select,textarea{font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle;} +button,input{line-height:normal;*overflow:visible;} +button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;} +button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button;} +input[type="search"]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;} +input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;} +textarea{overflow:auto;vertical-align:top;} +html,body{background-color:#ff;} +body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;font-weight:normal;line-height:18px;color:#404040;} +.container{width:940px;margin-left:auto;margin-right:auto;zoom:1;}.container:before,.container:after{display:table;content:"";zoom:1;*display:inline;} +.container:after{clear:both;} +.container-fluid{position:relative;min-width:940px;padding-left:20px;padding-right:20px;zoom:1;}.container-fluid:before,.container-fluid:after{display:table;content:"";zoom:1;*display:inline;} +.container-fluid:after{clear:both;} +.container-fluid>.sidebar{float:left;width:220px;} +.container-fluid>.content{margin-left:240px;} +a{color:#0069d6;text-decoration:none;line-height:inherit;font-weight:inherit;}a:hover{color:#00438a;text-decoration:underline;} +.pull-right{float:right;} +.pull-left{float:left;} +.hide{display:none;} +.show{display:block;} +.row{zoom:1;margin-left:-20px;}.row:before,.row:after{display:table;content:"";zoom:1;*display:inline;} +.row:after{clear:both;} +[class*="span"]{display:inline;float:left;margin-left:20px;} +.span1{width:40px;} +.span2{width:100px;} +.span3{width:160px;} +.span4{width:220px;} +.span5{width:280px;} +.span6{width:340px;} +.span7{width:400px;} +.span8{width:460px;} +.span9{width:520px;} +.span10{width:580px;} +.span11{width:640px;} +.span12{width:700px;} +.span13{width:760px;} +.span14{width:820px;} +.span15{width:880px;} +.span16{width:940px;} +.span17{width:1000px;} +.span18{width:1060px;} +.span19{width:1120px;} +.span20{width:1180px;} +.span21{width:1240px;} +.span22{width:1300px;} +.span23{width:1360px;} +.span24{width:1420px;} +.offset1{margin-left:80px;} +.offset2{margin-left:140px;} +.offset3{margin-left:200px;} +.offset4{margin-left:260px;} +.offset5{margin-left:320px;} +.offset6{margin-left:380px;} +.offset7{margin-left:440px;} +.offset8{margin-left:500px;} +.offset9{margin-left:560px;} +.offset10{margin-left:620px;} +.offset11{margin-left:680px;} +.offset12{margin-left:740px;} +.span-one-third{width:300px;} +.span-two-thirds{width:620px;} +.offset-one-third{margin-left:340px;} +.offset-two-thirds{margin-left:660px;} +p{font-size:13px;font-weight:normal;line-height:18px;margin-bottom:9px;}p small{font-size:11px;color:#bfbfbf;} +h1,h2,h3,h4,h5,h6{font-weight:bold;color:#404040;}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{color:#bfbfbf;} +h1{margin-bottom:18px;font-size:30px;line-height:36px;}h1 small{font-size:18px;} +h2{font-size:24px;line-height:36px;}h2 small{font-size:14px;} +h3,h4,h5,h6{line-height:36px;} +h3{font-size:18px;}h3 small{font-size:14px;} +h4{font-size:16px;}h4 small{font-size:12px;} +h5{font-size:14px;} +h6{font-size:13px;color:#bfbfbf;text-transform:uppercase;} +ul,ol{margin:0 0 18px 25px;} +ul ul,ul ol,ol ol,ol ul{margin-bottom:0;} +ul{list-style:disc;} +ol{list-style:decimal;} +li{line-height:18px;color:#808080;} +ul.unstyled{list-style:none;margin-left:0;}
svn commit: r1001278 [15/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/Literal.html == --- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/Literal.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/api/Literal.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,202 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + +Source code + + + + +001/** +002 * Licensed to the Apache Software Foundation (ASF) under one +003 * or more contributor license agreements. See the NOTICE file +004 * distributed with this work for additional information +005 * regarding copyright ownership. The ASF licenses this file +006 * to you under the Apache License, Version 2.0 (the +007 * "License"); you may not use this file except in compliance +008 * with the License. You may obtain a copy of the License at +009 * +010 * http://www.apache.org/licenses/LICENSE-2.0 +011 * +012 * Unless required by applicable law or agreed to in writing, software +013 * distributed under the License is distributed on an "AS IS" BASIS, +014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +015 * See the License for the specific language governing permissions and +016 * limitations under the License. +017 */ +018package org.apache.commons.rdf.api; +019 +020import java.io.Serializable; +021import java.util.Objects; +022import java.util.Optional; +023 +024/** +025 * A RDF-1.1 Literal, as defined by +026 * a href= "http://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal; +027 * RDF-1.1 Concepts and Abstract Syntax/a, a W3C Recommendation published on +028 * 25 February 2014 +029 * +030 * @see RDF#createLiteral(String) +031 * @see RDF#createLiteral(String, IRI) +032 * @see RDF#createLiteral(String, String) +033 */ +034public interface Literal extends RDFTerm { +035 +036/** +037 * The lexical form of this literal, represented by a +038 * a href="http://www.unicode.org/versions/latest/"Unicode string/a. +039 * +040 * @return The lexical form of this literal. +041 * @see a href= +042 * "http://www.w3.org/TR/rdf11-concepts/#dfn-lexical-form"RDF-1.1 +043 * Literal lexical form/a +044 */ +045String getLexicalForm(); +046 +047/** +048 * The IRI identifying the datatype that determines how the lexical form +049 * maps to a literal value. +050 * +051 * If the datatype IRI is +052 * a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString; +053 * http://www.w3.org/1999/02/22-rdf-syntax-ns#langString/a;, +054 * {@link #getLanguageTag()} must not return {@link Optional#empty()}, and +055 * it must return a valid +056 * a href="http://tools.ietf.org/html/bcp47"BCP47/a; language tag. +057 * +058 * @return The datatype IRI for this literal. +059 * @see a href= +060 * "http://www.w3.org/TR/rdf11-concepts/#dfn-datatype-iri"RDF-1.1 +061 * Literal datatype IRI/a +062 */ +063IRI getDatatype(); +064 +065/** +066 * If and only if the datatype IRI is +067 * a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString; +068 * http://www.w3.org/1999/02/22-rdf-syntax-ns#langString/a;, the language +069 * tag for this Literal is a non-empty language tag as defined by +070 * a href="http://tools.ietf.org/html/bcp47"BCP47/a.br; +071 * If the datatype IRI is not +072 * a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString; +073 * http://www.w3.org/1999/02/22-rdf-syntax-ns#langString/a;, this method +074 * must return {@link Optional#empty()}. +075 * +076 * Implementation note: If your application requires {@link Serializable} +077 * objects, it is best not to store an {@link Optional} in a field. It is +078 * recommended to use {@link Optional#ofNullable(Object)} to create the +079 * return value for this method. +080 * +081 * @return The {@link Optional} language tag for this literal. If +082 * {@link Optional#isPresent()} returns true, the value returned by +083 * {@link Optional#get()} must be a non-empty string conforming to +084 * BCP47. +085 * @see a href= +086 * "http://www.w3.org/TR/rdf11-concepts/#dfn-language-tag"RDF-1.1 +087 * Literal language tag/a +088 */ +089OptionalString getLanguageTag(); +090 +091/** +092 * Check it this Literal is equal to another Literal. blockquote +093 * a href="http://www.w3.org/TR/rdf11-concepts/#dfn-literal-term"Literal +094 * term equality/a: Two literals are term-equal (the same RDF literal) if +095 * and only if the two lexical forms, the two datatype IRIs, and the two +096 * language tags (if any) compare equal, character by character. Thus,
svn commit: r1001278 [27/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/pmd.html == --- websites/production/commonsrdf/content/commons-rdf-parent/pmd.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/pmd.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,412 @@ + + +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + + + + + +Apache Commons RDF PMD Results + + + + + + + + + + + + + +window.onload=function() { + prettyPrint(); + } + + + + http://commonsrdf.incubator.apache.org/; id="bannerLeft" title="Apache Commons RDF logo"> + + + + + + + + https://commonsrdf.incubator.apache.org/;>Commons RDF + + +Last Published: 17 November 2016 + | Version: 0.4.0-incubating-SNAPSHOT + + + + http://www.apachecon.com/; class="externalLink" title="ApacheCon"> +ApacheCon + + + http://www.apache.org; class="externalLink" title="Apache"> +Apache + + + http://commons.apache.org/; class="externalLink" title="Commons"> +Commons + + + http://incubator.apache.org/; class="externalLink" title="Incubator"> +Incubator + + + + + + + + + + + + + + Project + + +Home + + + +API + + + +Implementations + + + +User Guide + + + +Download + + + +Contributing + + + +Team + + + + Tools + + +Mailing Lists + + + https://git-wip-us.apache.org/repos/asf/incubator-commonsrdf.git; class="externalLink" title="Source (Git)"> +Source (Git) + + + https://github.com/apache/incubator-commonsrdf/; class="externalLink" title="Source (GitHub mirror)"> +Source (GitHub mirror) + + + https://issues.apache.org/jira/browse/COMMONSRDF; class="externalLink" title="Issues (Jira)"> +Issues (Jira) + + + + Modules + + +Commons RDF API + + + +Project Documentation + + +Project Information + + + +Project Reports + + + +JIRA Report + + + +JavaDocs + + + +Source Xref + + + +Test Source Xref + + + +Surefire Report + + + +Rat Report + + + +Checkstyle + + + +PMD + + + + + + Commons + + http://commons.apache.org/; class="externalLink" title="Home"> +Home + +
svn commit: r1001278 [40/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/api/RDFSyntax.html == --- websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/api/RDFSyntax.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/api/RDFSyntax.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,207 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +RDFSyntax xref + + + +View Javadoc +1 /** +2* Licensed to the Apache Software Foundation (ASF) under one +3* or more contributor license agreements. See the NOTICE file +4* distributed with this work for additional information +5* regarding copyright ownership. The ASF licenses this file +6* to you under the Apache License, Version 2.0 (the +7* "License"); you may not use this file except in compliance +8* with the License. You may obtain a copy of the License at +9* +10 * http://www.apache.org/licenses/LICENSE-2.; target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0 +11 * +12 * Unless required by applicable law or agreed to in writing, software +13 * distributed under the License is distributed on an "AS IS" BASIS, +14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +15 * See the License for the specific language governing permissions and +16 * limitations under the License. +17 */ +18 package org.apache.commons.rdf.api; +19 +20 import java.util.Arrays; +21 import java.util.Locale; +22 import java.util.Optional; +23 +24 /** +25 * Enumeration of the RDF 1.1 serialization syntaxes. +26 * p +27 * This enumeration lists the W3C standardized RDF 1.1 syntaxes like +28 * {@link #TURTLE} and {@link #JSONLD}. Note the existence of other RDF syntaxes +29 * that are not included here, e.g. +30 * a href="http://www.w3.org/TeamSubmission/n3/; target="alexandria_uri">http://www.w3.org/TeamSubmission/n3/"N3/a and +31 * a href="https://en.wikipedia.org/wiki/TriX_%28syntax%29"TriX/a;. +32 * +33 * @see a href="https://www.w3.org/TR/rdf11-primer/#section-graph-syntax"RDF +34 * 1.1 Primer/a +35 * @see org.apache.commons.rdf.experimental.RDFParser +36 */ +37 public enum RDFSyntax { +38 +39 /** +40 * JSON-LD 1.0 +41 * +42 * @see a href= +43 * "https://www.w3.org/TR/json-ld/"https://www.w3.org/TR/json-ld//a; +44 * +45 */ +46 JSONLD("JSON-LD 1.0", "application/ld+json", ".jsonld", true), +47 +48 /** +49 * RDF 1.1 Turtle +50 * +51 * @see a href= +52 * "https://www.w3.org/TR/turtle/"https://www.w3.org/TR/turtle//a; +53 * +54 */ +55 TURTLE("RDF 1.1 Turtle", "text/turtle", ".ttl", false), +56 +57 /** +58 * RDF 1.1 N-Quads +59 * +60 * @see a href= +61 * "https://www.w3.org/TR/n-quads/"https://www.w3.org/TR/n-quads//a; +62 */ +63 NQUADS("RDF 1.1 N-Quads", "application/n-quads", ".nq", true), +64 +65 /** +66 * RDF 1.1 N-Triples +67 * +68 * @see a href= +69 * "https://www.w3.org/TR/n-triples/"https://www.w3.org/TR/n-triples//a; +70 */ +71 NTRIPLES("RDF 1.1 N-Triples", "application/n-triples", ".nt", false), +72 +73 /** +74 * HTML+RDFa 1.1 +75 * +76 * @see a href= +77 * "https://www.w3.org/TR/html-rdfa/"https://www.w3.org/TR/html-rdfa//a; +78 */ +79 RDFA_HTML("HTML+RDFa 1.1", "text/html", ".html", false), +80 +81 /** +82 * XHTML+RDFa 1.1 +83 * +84 * @see a href= +85 * "https://www.w3.org/TR/xhtml-rdfa/"https://www.w3.org/TR/xhtml-rdfa//a; +86 */ +87 RDFA_XHTML("XHTML+RDFa 1.1", "application/xhtml+xml", ".xhtml", false), +88 +89 /** +90 * RDF 1.1 XML Syntax +91 * +92 * @see a href= +93 * "https://www.w3.org/TR/rdf-syntax-grammar/"https://www.w3.org/TR/rdf-syntax-grammar//a; +94 */ +95 RDFXML("RDF 1.1 XML Syntax", "application/rdf+xml", ".rdf", false), +96 +97 /** +98 * RDF 1.1 TriG +99 * +100 * @see a href= +101 * "https://www.w3.org/TR/trig/"https://www.w3.org/TR/trig//a; +102 */ +103 TRIG("RDF 1.1 TriG", "application/trig", ".trig", true); +104 +105 /** +106 * The a href="https://tools.ietf.org/html/rfc2046"IANA media type/a for +107 * the RDF syntax. +108 * p +109 * The media type can be used as part of codeContent-Type/code and +110 * codeAccept/code for emcontent negotiation/em in the +111 * a href="https://tools.ietf.org/html/rfc7231#section-3.1.1.1"HTTP +112 * protocol/a. +113 */ +114 public final String mediaType; +115 +116 /** +117 * The a
svn commit: r1001278 [39/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/api/Quad.html == --- websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/api/Quad.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/api/Quad.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,253 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +Quad xref + + + +View Javadoc +1 /** +2* Licensed to the Apache Software Foundation (ASF) under one +3* or more contributor license agreements. See the NOTICE file +4* distributed with this work for additional information +5* regarding copyright ownership. The ASF licenses this file +6* to you under the Apache License, Version 2.0 (the +7* "License"); you may not use this file except in compliance +8* with the License. You may obtain a copy of the License at +9* +10 * http://www.apache.org/licenses/LICENSE-2.; target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0 +11 * +12 * Unless required by applicable law or agreed to in writing, software +13 * distributed under the License is distributed on an "AS IS" BASIS, +14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +15 * See the License for the specific language governing permissions and +16 * limitations under the License. +17 */ +18 package org.apache.commons.rdf.api; +19 +20 import java.util.Objects; +21 import java.util.Optional; +22 +23 /** +24 * A Quad is a statement in a +25 * a href= "http://www.w3.org/TR/rdf11-concepts/; target="alexandria_uri">http://www.w3.org/TR/rdf11-concepts/#section-dataset" RDF-1.1 +26 * Dataset/a, as defined by a href= +27 * "https://www.w3.org/TR/2014/NOTE-rdf11-datasets-20140225/#quad-semantics; +28 * RDF-1.1 Concepts and Abstract Syntax/a, a W3C Working Group Note published +29 * on 25 February 2014. +30 * p +31 * A codeQuad/code object in Commons RDF is considered +32 * strongimmutable/strong, that is, over its life time it will have +33 * consistent behaviour for its {@link #equals(Object)}, and the instances +34 * returned from {@link #getGraphName()}, {@link #getSubject()}, +35 * {@link #getPredicate()}, {@link #getObject()} and {@link #asTriple()} will +36 * have consistent {@link Object#equals(Object)} behaviour. +37 * p +38 * Note that codeQuad/code methods are not required to return object +39 * identical (code==/code) instances as long as they are equivalent +40 * according to {@link Object#equals(Object)}. Specialisations of +41 * codeQuad/code may provide additional methods that are documented to be +42 * mutable. +43 * p +44 * codeQuad/code methods are strongthread-safe/strong, however +45 * specialisations may provide additional methods that are documented to not be +46 * thread-safe. +47 * p +48 * codeQuad/codes can be safely used in hashing collections like +49 * {@link java.util.HashSet} and {@link java.util.HashMap}. +50 * p +51 * Any codeQuad/code can be used interchangeably across Commons RDF +52 * implementations. +53 * +54 * @since 0.3.0-incubating +55 * @see Dataset +56 * @see RDF#createQuad(BlankNodeOrIRI,BlankNodeOrIRI,IRI,RDFTerm) +57 * @see a href="http://www.w3.org/TR/2014/NOTE-rdf11-datasets-20140225/; target="alexandria_uri">http://www.w3.org/TR/2014/NOTE-rdf11-datasets-20140225/"RDF +58 * 1.1: On Semantics of RDF Datasets/a +59 * @see a href="http://www.w3.org/TR/rdf11-concepts/; target="alexandria_uri">http://www.w3.org/TR/rdf11-concepts/#section-dataset" /a +60 */ +61 public interface Quad extends QuadLikeBlankNodeOrIRI { +62 +63 /** +64 * The graph name (graph label) of this quad, if present. +65 * +66 * If {@link Optional#isPresent()}, then the {@link Optional#get()} is +67 * either a {@link BlankNode} or an {@link IRI}, indicating the +68 * a href="https://www.w3.org/TR/rdf11-concepts/#dfn-named-graph"graph +69 * name/a of this Quad. If the graph name is not present, e.g. the value +70 * is {@link Optional#empty()}, it indicates that this Quad is in the +71 * a href="https://www.w3.org/TR/rdf11-concepts/#dfn-default-graph"default +72 * graph/a. +73 * +74 * @return If {@link Optional#isPresent()}, the graph name +75 * {@link BlankNodeOrIRI} of this quad, otherwise +76 * {@link Optional#empty()}, indicating the default graph. +77 * +78 * @see a href="https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-dataset"RDF- +79 * 1.1 Dataset/a +80 */ +81 @Override +82 OptionalBlankNodeOrIRI getGraphName(); +83 +84 /** +85 * The subject of this quad, which may be either
svn commit: r1001278 [1/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ ap
Author: stain Date: Thu Nov 17 14:45:34 2016 New Revision: 1001278 Log: Site checkin for project Commons RDF Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/allclasses-frame.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/allclasses-noframe.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/constant-values.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/deprecated-list.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/help-doc.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/index-all.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/index.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/BlankNode.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/BlankNodeOrIRI.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/Dataset.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/Graph.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/GraphLike.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/IRI.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/Literal.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/Quad.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/QuadLike.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/RDF.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/RDFSyntax.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/RDFTerm.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/RDFTermFactory.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/Triple.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/TripleLike.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/BlankNode.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/BlankNodeOrIRI.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/Dataset.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/Graph.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/GraphLike.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/IRI.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/Literal.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/Quad.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/QuadLike.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/RDF.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/RDFSyntax.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/RDFTerm.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/RDFTermFactory.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/Triple.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/TripleLike.html websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/package-frame.html
svn commit: r1001278 [24/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/js/bootstrap.min.js == --- websites/production/commonsrdf/content/commons-rdf-parent/js/bootstrap.min.js (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/js/bootstrap.min.js Thu Nov 17 14:45:34 2016 @@ -0,0 +1,6 @@ +/*! +* Bootstrap.js by @fat & @mdo +* Copyright 2012 Twitter, Inc. +* http://www.apache.org/licenses/LICENSE-2.0.txt +*/ +!function(e){e(function(){"use strict";e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return t[n]}();return e&&{end:e}}()})}(window.jQuery),!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed").remove()}var n=e(this),r=n.attr("data-target"),i;r||(r=n.attr("href"),r=r&(/.*(?=#[^\s]*$)/,"")),i=e(r),t&(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&("fade")?i.on(e.support.transition.end,s):s()},e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");i||r.data("alert",i=new n(this)),type of t=="string"&[t].call(r)})},e.fn.alert.Constructor=n,e(function(){e("body").on("click.alert.data-api",t,n.prototype.close)})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.button.defaults,n)};t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";e+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[e]||this.options[e]),setTimeout(function(){e=="loadingText"?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.parent('[data-toggle="buttons-radio"]');e&(".active").removeClass("active"),this.$element.toggleClass("active")},e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),s=typeof n=="object"&i||r.data("button",i=new t(this,s)),n=="toggle"?i.toggle():n&(n)})},e.fn.button.defaults={loadingText:"loading..."},e.fn.button.Constructor=t,e(function(){e("body") .on("click.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle")})})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=n,this.options.slide&(this.options.slide),this.options.pause=="hover"&$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.prototype={cycle:function(t){return t||(this.paused=!1),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},to:function(t){var n=this.$element.find(".item.active"),r=n.parent().children(),i=r.index(n),s=this;if(t>r.length-1||t<0)return;return this.sliding?this.$element.one("slid",function(){s.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",e(r[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&&(this.$element.trigger(e.su pport.transition.end),this.cycle()),clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(t,n){var r=this.$element.find(".item.active"),i=n||r[t](),s=this.interval,o=t=="next"?"left":"right",u=t=="next"?"first":"last",a=this,f=e.Event("slide",{relatedTarget:i[0]});this.sliding=!0,s&(),i=i.length?i:this.$element.find(".item")[u]();if(i.hasClass("active"))return;if(e.support.transition&$element.hasClass("slide")){this.$element.trigger(f);if(f.isDefaultPrevented())return;i.addClass(t),i[0].offsetWidth,r.addClass(o),i.addClass(o),this.$element.one(e.support.transition.end,function(){i.removeClass([t,o].join(" ")).addClass("active"),r.removeClass(["active",o].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger("slid")},0)})}else{this.$element.trigger(f);if(f.isDefaultPrevented())return;r.removeClass("active"),i.ad dClass("active"),this.sliding=!1,this.$element.trigger("slid")}return s&(),this}},e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("carousel"),s=e.extend({},e.fn.carousel.defaults,typeof n=="object"&),o=typeof n=="string"?n:s.slide;i||r.data("carousel",i=new t(this,s)),typeof n=="number"?i.to(n):o?i[o]():s.interval&()})},e.fn.carousel.defaults={interval:5e3,pause:"hover"},e.fn.carousel.Constructor=t,e(function(){e("body").on("click.carousel.data-api","[data-slide]",function(t){var
svn commit: r1001278 [38/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/api/Graph.html == --- websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/api/Graph.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/api/Graph.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,311 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +Graph xref + + + +View Javadoc +1 /** +2* Licensed to the Apache Software Foundation (ASF) under one +3* or more contributor license agreements. See the NOTICE file +4* distributed with this work for additional information +5* regarding copyright ownership. The ASF licenses this file +6* to you under the Apache License, Version 2.0 (the +7* "License"); you may not use this file except in compliance +8* with the License. You may obtain a copy of the License at +9* +10 * http://www.apache.org/licenses/LICENSE-2.; target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0 +11 * +12 * Unless required by applicable law or agreed to in writing, software +13 * distributed under the License is distributed on an "AS IS" BASIS, +14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +15 * See the License for the specific language governing permissions and +16 * limitations under the License. +17 */ +18 package org.apache.commons.rdf.api; +19 +20 import java.util.ConcurrentModificationException; +21 import java.util.Iterator; +22 import java.util.stream.Stream; +23 +24 /** +25 * An a href="http://www.w3.org/TR/rdf11-concepts/; target="alexandria_uri">http://www.w3.org/TR/rdf11-concepts/#section-rdf-graph" RDF 1.1 +26 * Graph/a, a set of RDF triples, as defined by +27 * a href="http://www.w3.org/TR/rdf11-concepts/; target="alexandria_uri">http://www.w3.org/TR/rdf11-concepts/" RDF-1.1 Concepts and Abstract +28 * Syntax/a, a W3C Recommendation published on 25 February 2014. +29 * +30 * @see RDF#createGraph() +31 */ +32 public interface Graph extends AutoCloseable, GraphLikeTriple { +33 +34 /** +35 * Add a triple to the graph, possibly mapping any of the components of the +36 * Triple to those supported by this Graph. +37 * +38 * @param triple +39 *The triple to add +40 */ +41 @Override +42 void add(Triple triple); +43 +44 /** +45 * Add a triple to the graph, possibly mapping any of the components to +46 * those supported by this Graph. +47 * +48 * @param subject +49 *The triple subject +50 * @param predicate +51 *The triple predicate +52 * @param object +53 *The triple object +54 */ +55 void add(BlankNodeOrIRI subject, IRI predicate, RDFTerm object); +56 +57 /** +58 * Check if graph contains triple. +59 * +60 * @param triple +61 *The triple to check. +62 * @return True if the Graph contains the given Triple. +63 */ +64 @Override +65 boolean contains(Triple triple); +66 +67 /** +68 * Check if graph contains a pattern of triples. +69 * +70 * @param subject +71 *The triple subject (null is a wildcard) +72 * @param predicate +73 *The triple predicate (null is a wildcard) +74 * @param object +75 *The triple object (null is a wildcard) +76 * @return True if the Graph contains any Triples that match the given +77 * pattern. +78 */ +79 boolean contains(BlankNodeOrIRI subject, IRI predicate, RDFTerm object); +80 +81 /** +82 * Close the graph, relinquishing any underlying resources. +83 * p +84 * For example, this would close any open file and network streams and free +85 * database locks held by the Graph implementation. +86 * p +87 * The behaviour of the other Graph methods are undefined after closing the +88 * graph. +89 * p +90 * Implementations might not need {@link #close()}, hence the default +91 * implementation does nothing. +92 */ +93 @Override +94 default void close() throws Exception { +95 } +96 +97 /** +98 * Remove a concrete triple from the graph. +99 * +100 * @param triple +101 *triple to remove +102 */ +103 @Override +104 void remove(Triple triple); +105 +106 /** +107 * Remove a concrete pattern of triples from the graph. +108 * +109 * @param subject +110 *The triple subject (null is a wildcard) +111 * @param predicate +112 *The triple predicate (null is
svn commit: r1001278 [37/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/api/Dataset.html == --- websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/api/Dataset.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/api/Dataset.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,367 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +Dataset xref + + + +View Javadoc +1 /** +2* Licensed to the Apache Software Foundation (ASF) under one +3* or more contributor license agreements. See the NOTICE file +4* distributed with this work for additional information +5* regarding copyright ownership. The ASF licenses this file +6* to you under the Apache License, Version 2.0 (the +7* "License"); you may not use this file except in compliance +8* with the License. You may obtain a copy of the License at +9* +10 * http://www.apache.org/licenses/LICENSE-2.; target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0 +11 * +12 * Unless required by applicable law or agreed to in writing, software +13 * distributed under the License is distributed on an "AS IS" BASIS, +14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +15 * See the License for the specific language governing permissions and +16 * limitations under the License. +17 */ +18 package org.apache.commons.rdf.api; +19 +20 import java.util.ConcurrentModificationException; +21 import java.util.Iterator; +22 import java.util.Optional; +23 import java.util.stream.Stream; +24 +25 /** +26 * An a href="http://www.w3.org/TR/rdf11-concepts/; target="alexandria_uri">http://www.w3.org/TR/rdf11-concepts/#section-rdf-dataset" RDF +27 * 1.1 dataset/a, a set of RDF quads, as defined by +28 * a href="http://www.w3.org/TR/rdf11-concepts/; target="alexandria_uri">http://www.w3.org/TR/rdf11-concepts/" RDF-1.1 Concepts and Abstract +29 * Syntax/a, a W3C Recommendation published on 25 February 2014. +30 * +31 * @since 0.3.0-incubating +32 * @see RDF#createDataset() +33 */ +34 public interface Dataset extends AutoCloseable, GraphLikeQuad { +35 +36 /** +37 * Add a quad to the dataset, possibly mapping any of the components of the +38 * Quad to those supported by this dataset. +39 * +40 * @param quad +41 *The quad to add +42 */ +43 @Override +44 void add(Quad quad); +45 +46 /** +47 * Add a quad to the dataset, possibly mapping any of the components to +48 * those supported by this dataset. +49 * +50 * @param graphName +51 *The graph the quad belongs to, or codenull/code for the +52 *default graph +53 * @param subject +54 *The quad subject +55 * @param predicate +56 *The quad predicate +57 * @param object +58 *The quad object +59 */ +60 void add(BlankNodeOrIRI graphName, BlankNodeOrIRI subject, IRI predicate, RDFTerm object); +61 +62 /** +63 * Check if dataset contains quad. +64 * +65 * @param quad +66 *The quad to check. +67 * @return True if the dataset contains the given Quad. +68 */ +69 @Override +70 boolean contains(Quad quad); +71 +72 /** +73 * Check if dataset contains a pattern of quads. +74 * +75 * @param graphName +76 *The graph the quad belongs to, wrapped as an {@link Optional} +77 *(codenull/code is a wildcard, {@link Optional#empty()} is +78 *the default graph) +79 * @param subject +80 *The quad subject (codenull/code is a wildcard) +81 * @param predicate +82 *The quad predicate (codenull/code is a wildcard) +83 * @param object +84 *The quad object (codenull/code is a wildcard) +85 * @return True if the dataset contains any quads that match the given +86 * pattern. +87 */ +88 boolean contains(OptionalBlankNodeOrIRI graphName, BlankNodeOrIRI subject, IRI predicate, RDFTerm object); +89 +90 /** +91 * Close the dataset, relinquishing any underlying resources. +92 * p +93 * For example, this would close any open file and network streams and free +94 * database locks held by the dataset implementation. +95 * p +96 * The behaviour of the other dataset methods are undefined after closing +97 * the dataset. +98 * p +99 * Implementations might not need {@link #close()}, hence the default +100 * implementation does nothing. +101 */ +102 @Override +103
svn commit: r1001278 [26/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/js/prettify.js == --- websites/production/commonsrdf/content/commons-rdf-parent/js/prettify.js (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/js/prettify.js Thu Nov 17 14:45:34 2016 @@ -0,0 +1,640 @@ +/** + * + * Copyright (C) 2006 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +function H() { +var x = navigator && navigator.userAgent +&& /\bMSIE 6\./.test(navigator.userAgent); +H = function() { +return x +}; +return x +} +(function() { +function x(b) { +b = b.split(/ /g); +var a = {}; +for ( var c = b.length; --c >= 0;) { +var d = b[c]; +if (d) +a[d] = null +} +return a +} +var y = "break continue do else for if return while ", U = y ++ "auto case char const default double enum extern float goto int long register short signed sizeof static struct switch typedef union unsigned void volatile ", D = U ++ "catch class delete false import new operator private protected public this throw true try ", I = D ++ "alignof align_union asm axiom bool concept concept_map const_cast constexpr decltype dynamic_cast explicit export friend inline late_check mutable namespace nullptr reinterpret_cast static_assert static_cast template typeid typename typeof using virtual wchar_t where ", J = D ++ "boolean byte extends final finally implements import instanceof null native package strictfp super synchronized throws transient ", V = J ++ "as base by checked decimal delegate descending event fixed foreach from group implicit in interface internal into is lock object out override orderby params readonly ref sbyte sealed stackalloc string select uint ulong unchecked unsafe ushort var ", K = D ++ "debugger eval export function get null set undefined var with Infinity NaN ", L = "caller delete die do dump elsif eval exit foreach for goto if import last local my next no our print package redo require sub undef unless until use wantarray while BEGIN END ", M = y ++ "and as assert class def del elif except exec finally from global import in is lambda nonlocal not or pass print raise try with yield False True None ", N = y ++ "alias and begin case class def defined elsif end ensure false in module next nil not or redo rescue retry self super then true undef unless until when yield BEGIN END ", O = y ++ "case done elif esac eval fi function in local set then until ", W = I ++ V + K + L + M + N + O; +function X(b) { +return b >= "a" && b <= "z" || b >= "A" && b <= "Z" +} +function u(b, a, c, d) { +b.unshift(c, d || 0); +try { +a.splice.apply(a, b) +} finally { +b.splice(0, 2) +} +} +var Y = (function() { +var b = [ "!", "!=", "!==", "#", "%", "%=", "&", "&&", "&&=", "&=", +"(", "*", "*=", "+=", ",", "-=", "->", "/", "/=", ":", "::", +";", "<", "<<", "<<=", "<=", "=", "==", "===", ">", ">=", ">>", +">>=", ">>>", ">>>=", "?", "@", "[", "^", "^=", "^^", "^^=", +"{", "|", "|=", "||", "||=", "~", "break", "case", "continue", +"delete", "do", "else", "finally", "instanceof", "return", +"throw", "try", "typeof" ], a = "(?:(?:(?:^|[^0-9.])\\.{1,3})|(?:(?:^|[^\\+])\\+)|(?:(?:^|[^\\-])-)"; +for ( var c = 0; c < b.length; ++c) { +var d = b[c]; +a += X(d.charAt(0)) ? "|\\b" + d : "|" ++ d.replace(/([^=<>:&])/g, "\\$1") +} +a += "|^)\\s*$"; +return new RegExp(a) +})(), P = /&/g, Q = //g, Z = /\"/g; +function $(b) { +return b.replace(P, "").replace(Q, "").replace(R, "") +.replace(Z, "") +} +function E(b) { +return b.replace(P, "").replace(Q, "").replace(R, "") +} +var aa = //g, ba = //g, ca = //g, da = //g, ea = //g, fa = //g; +function ga(b) { +var a = b.indexOf("&"); +if (a < 0) +return b; +for (--a; (a = b.indexOf("
svn commit: r1001278 [36/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/xref-test/org/apache/commons/rdf/api/DummyQuadTest.html == --- websites/production/commonsrdf/content/commons-rdf-parent/xref-test/org/apache/commons/rdf/api/DummyQuadTest.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/xref-test/org/apache/commons/rdf/api/DummyQuadTest.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,71 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +DummyQuadTest xref + + + +View Javadoc +1 /** +2* Licensed to the Apache Software Foundation (ASF) under one +3* or more contributor license agreements. See the NOTICE file +4* distributed with this work for additional information +5* regarding copyright ownership. The ASF licenses this file +6* to you under the Apache License, Version 2.0 (the +7* "License"); you may not use this file except in compliance +8* with the License. You may obtain a copy of the License at +9* +10 * http://www.apache.org/licenses/LICENSE-2.; target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0 +11 * +12 * Unless required by applicable law or agreed to in writing, software +13 * distributed under the License is distributed on an "AS IS" BASIS, +14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +15 * See the License for the specific language governing permissions and +16 * limitations under the License. +17 */ +18 package org.apache.commons.rdf.api; +19 +20 import static org.junit.Assert.*; +21 +22 import java.util.Objects; +23 +24 import org.junit.Test; +25 +26 public class DummyQuadTest { +27 Quad quad = new DummyQuad(); +28 +29 @Test +30 public void getGraphName() throws Exception { +31 assertFalse(quad.getGraphName().isPresent()); +32 } +33 +34 @Test +35 public void getSubject() throws Exception { +36 assertEquals(1, ((DummyIRI) quad.getSubject()).i); +37 } +38 @Test +39 public void getPredicate() throws Exception { +40 assertEquals(2, ((DummyIRI) quad.getPredicate()).i); +41 } +42 @Test +43 public void getObject() throws Exception { +44 assertEquals(3, ((DummyIRI) quad.getObject()).i); +45 } +46 +47 @Test +48 public void equals() throws Exception { +49 assertEquals(quad, new DummyQuad()); +50 } +51 +52 @Test +53 public void testHashCode() { +54 final int expected = Objects.hash(quad.getSubject(), quad.getPredicate(), quad.getObject(), quad.getGraphName()); +55 assertEquals(expected, quad.hashCode()); +56 } +57 } +58 + + +Copyright 20152016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. + + \ No newline at end of file Added: websites/production/commonsrdf/content/commons-rdf-parent/xref-test/org/apache/commons/rdf/api/DummyTriple.html == --- websites/production/commonsrdf/content/commons-rdf-parent/xref-test/org/apache/commons/rdf/api/DummyTriple.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/xref-test/org/apache/commons/rdf/api/DummyTriple.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,70 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +DummyTriple xref + + + +View Javadoc +1 /** +2* Licensed to the Apache Software Foundation (ASF) under one +3* or more contributor license agreements. See the NOTICE file +4* distributed with this work for additional information +5* regarding copyright ownership. The ASF licenses this file +6* to you under the Apache License, Version 2.0 (the +7* "License"); you may not use this file except in compliance +8* with the License. You may obtain a copy of the License at +9* +10 * http://www.apache.org/licenses/LICENSE-2.; target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0 +11 * +12 * Unless required by applicable law or agreed to in writing, software +13 * distributed under the License is distributed on an "AS IS" BASIS, +14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +15 * See the License for the specific language governing permissions and +16 * limitations under the License. +17 */ +18 package org.apache.commons.rdf.api; +19 +20 import java.util.Arrays; +21 import java.util.List; +22 import java.util.Objects; +23 +24 class DummyTriple implements Triple { +25 @Override +26 public BlankNodeOrIRI getSubject() { +27 return new DummyIRI(1); +28 } +29 @Override +30 public IRI getPredicate() { +31 return new DummyIRI(2);
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/ a
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 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + +Source code + + + + +001/** +002 * Licensed to the Apache Software Foundation (ASF) under one +003 * or more contributor license agreements. See the NOTICE file +004 * distributed with this work for additional information +005 * regarding copyright ownership. The ASF licenses this file +006 * to you under the Apache License, Version 2.0 (the +007 * "License"); you may not use this file except in compliance +008 * with the License. You may obtain a copy of the License at +009 * +010 * http://www.apache.org/licenses/LICENSE-2.0 +011 * +012 * Unless required by applicable law or agreed to in writing, software +013 * distributed under the License is distributed on an "AS IS" BASIS, +014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +015 * See the License for the specific language governing permissions and +016 * limitations under the License. +017 */ +018package org.apache.commons.rdf.api; +019 +020import java.util.Arrays; +021import java.util.Locale; +022import java.util.Optional; +023 +024/** +025 * Enumeration of the RDF 1.1 serialization syntaxes. +026 * p +027 * This enumeration lists the W3C standardized RDF 1.1 syntaxes like +028 * {@link #TURTLE} and {@link #JSONLD}. Note the existence of other RDF syntaxes +029 * that are not included here, e.g. +030 * a href="http://www.w3.org/TeamSubmission/n3/"N3/a; and +031 * a href="https://en.wikipedia.org/wiki/TriX_%28syntax%29"TriX/a;. +032 * +033 * @see a href="https://www.w3.org/TR/rdf11-primer/#section-graph-syntax"RDF +034 * 1.1 Primer/a +035 * @see org.apache.commons.rdf.experimental.RDFParser +036 */ +037public enum RDFSyntax { +038 +039/** +040 * JSON-LD 1.0 +041 * +042 * @see a href= +043 * "https://www.w3.org/TR/json-ld/"https://www.w3.org/TR/json-ld//a; +044 * +045 */ +046JSONLD("JSON-LD 1.0", "application/ld+json", ".jsonld", true), +047 +048/** +049 * RDF 1.1 Turtle +050 * +051 * @see a href= +052 * "https://www.w3.org/TR/turtle/"https://www.w3.org/TR/turtle//a; +053 * +054 */ +055TURTLE("RDF 1.1 Turtle", "text/turtle", ".ttl", false), +056 +057/** +058 * RDF 1.1 N-Quads +059 * +060 * @see a href= +061 * "https://www.w3.org/TR/n-quads/"https://www.w3.org/TR/n-quads//a; +062 */ +063NQUADS("RDF 1.1 N-Quads", "application/n-quads", ".nq", true), +064 +065/** +066 * RDF 1.1 N-Triples +067 * +068 * @see a href= +069 * "https://www.w3.org/TR/n-triples/"https://www.w3.org/TR/n-triples//a; +070 */ +071NTRIPLES("RDF 1.1 N-Triples", "application/n-triples", ".nt", false), +072 +073/** +074 * HTML+RDFa 1.1 +075 * +076 * @see a href= +077 * "https://www.w3.org/TR/html-rdfa/"https://www.w3.org/TR/html-rdfa//a; +078 */ +079RDFA_HTML("HTML+RDFa 1.1", "text/html", ".html", false), +080 +081/** +082 * XHTML+RDFa 1.1 +083 * +084 * @see a href= +085 * "https://www.w3.org/TR/xhtml-rdfa/"https://www.w3.org/TR/xhtml-rdfa//a; +086 */ +087RDFA_XHTML("XHTML+RDFa 1.1", "application/xhtml+xml", ".xhtml", false), +088 +089/** +090 * RDF 1.1 XML Syntax +091 * +092 * @see a href= +093 * "https://www.w3.org/TR/rdf-syntax-grammar/"https://www.w3.org/TR/rdf-syntax-grammar//a; +094 */ +095RDFXML("RDF 1.1 XML Syntax", "application/rdf+xml", ".rdf", false), +096 +097/** +098 * RDF 1.1 TriG +099 * +100 * @see a href= +101 * "https://www.w3.org/TR/trig/"https://www.w3.org/TR/trig//a; +102 */ +103TRIG("RDF 1.1 TriG", "application/trig", ".trig", true); +104 +105/** +106 * The a href="https://tools.ietf.org/html/rfc2046"IANA media type/a for +107 * the RDF syntax. +108 * p +109 * The media type can be used as part of codeContent-Type/code and +110 * codeAccept/code for emcontent negotiation/em in the +111 * a href="https://tools.ietf.org/html/rfc7231#section-3.1.1.1"HTTP +112 * protocol/a. +113 */ +114public final String mediaType; +115 +116/** +117 * The a href="https://tools.ietf.org/html/rfc2046"IANA-registered/a; +118 * file extension. +119 * p +120 * The file extension includes the leading period, e.g. code.jsonld/code +121 */ +122public final String fileExtension; +123 +124/** +125 * Indicate if this RDF syntax
svn commit: r1001278 [3/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ ap
Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/BlankNodeOrIRI.html == --- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/BlankNodeOrIRI.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/BlankNodeOrIRI.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,203 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + + +BlankNodeOrIRI (Commons RDF 0.4.0-incubating-SNAPSHOT API) + + + + + + + +JavaScript is disabled on your browser. + + + + + +Skip navigation links + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +PrevClass +NextClass + + +Frames +NoFrames + + +AllClasses + + + + + + + +Summary: +Nested| +Field| +Constr| +Method + + +Detail: +Field| +Constr| +Method + + + + + + + + +org.apache.commons.rdf.api +Interface BlankNodeOrIRI + + + + + + +All Superinterfaces: +RDFTerm + + +All Known Subinterfaces: +BlankNode, IRI + + + +public interface BlankNodeOrIRI +extends RDFTerm +This interface represents the RDFTerms that may be used in the + subject position of an RDF-1.1 Triple as well as the graph name + position of a Quad. + + Instances of BlankNodeOrIRI SHOULD be a BlankNode or an IRI. + + + + + + + + + + + +Method Summary + + + + +Methods inherited from interfaceorg.apache.commons.rdf.api.RDFTerm +equals, hashCode, ntriplesString + + + + + + + + + + + + +Skip navigation links + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +PrevClass +NextClass + + +Frames +NoFrames + + +AllClasses + + + + + + + +Summary: +Nested| +Field| +Constr| +Method + + +Detail: +Field| +Constr| +Method + + + + + + +Copyright 20152016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. + + \ No newline at end of file Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/Dataset.html == --- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/Dataset.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/Dataset.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,771 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + + +Dataset (Commons RDF 0.4.0-incubating-SNAPSHOT API) + + + + + +var methods = {"i0":6,"i1":6,"i2":6,"i3":18,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":18,"i10":18,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],16:["t5","Default Methods"]}; +var altColor = "altColor"; +var rowColor = "rowColor"; +var tableTab = "tableTab"; +var activeTableTab = "activeTableTab"; + + +JavaScript is disabled on your browser. + + + + + +Skip navigation links + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +PrevClass +NextClass + + +Frames +NoFrames + + +AllClasses + + + + + + + +Summary: +Nested| +Field| +Constr| +Method + + +Detail: +Field| +Constr| +Method + + + + + + + + +org.apache.commons.rdf.api +Interface Dataset + + + + + + +All Superinterfaces: +https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true; title="class or interface in java.lang">AutoCloseable, GraphLikeQuad + + + +public interface Dataset +extends https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true; title="class or interface in java.lang">AutoCloseable, GraphLikeQuad +An http://www.w3.org/TR/rdf11-concepts/#section-rdf-dataset;> RDF + 1.1 dataset, a set of RDF quads, as defined by + http://www.w3.org/TR/rdf11-concepts/; >RDF-1.1 Concepts and Abstract + Syntax, a W3C Recommendation published on 25
svn commit: r1001278 [41/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/api/package-summary.html == --- websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/api/package-summary.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/api/package-summary.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,139 @@ + +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> + + + + Commons RDF 0.4.0-incubating-SNAPSHOT Reference Package org.apache.commons.rdf.api + + + + + + + Overview + + Package + + + + + + FRAMES + + + NO FRAMES + + + + + Package org.apache.commons.rdf.api + + + + + Class Summary + + + + + + BlankNode + + + + + BlankNodeOrIRI + + + + + Dataset + + + + + Graph + + + + + GraphLike + + + + + IRI + + + + + Literal + + + + + Quad + + + + + QuadLike + + + + + RDF + + + + + RDFSyntax + + + + + RDFTerm + + + + + RDFTermFactory + + + + + Triple + + + + + TripleLike + + + + + + + + + Overview + + Package + + + + + + FRAMES + + + NO FRAMES + + + + + + Copyright 20152016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. + + + \ No newline at end of file Added: websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/experimental/RDFParser.html == --- websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/experimental/RDFParser.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/xref/org/apache/commons/rdf/experimental/RDFParser.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,498 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> +
svn commit: r1001278 [29/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/source-repository.html == --- websites/production/commonsrdf/content/commons-rdf-parent/source-repository.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/source-repository.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,324 @@ + + +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + + + + + +Apache Commons RDF Source Code Management + + + + + + + + + + + + + +window.onload=function() { + prettyPrint(); + } + + + + http://commonsrdf.incubator.apache.org/; id="bannerLeft" title="Apache Commons RDF logo"> + + + + + + + + https://commonsrdf.incubator.apache.org/;>Commons RDF + + +Last Published: 17 November 2016 + | Version: 0.4.0-incubating-SNAPSHOT + + + + http://www.apachecon.com/; class="externalLink" title="ApacheCon"> +ApacheCon + + + http://www.apache.org; class="externalLink" title="Apache"> +Apache + + + http://commons.apache.org/; class="externalLink" title="Commons"> +Commons + + + http://incubator.apache.org/; class="externalLink" title="Incubator"> +Incubator + + + + + + + + + + + + + + Project + + +Home + + + +API + + + +Implementations + + + +User Guide + + + +Download + + + +Contributing + + + +Team + + + + Tools + + +Mailing Lists + + + https://git-wip-us.apache.org/repos/asf/incubator-commonsrdf.git; class="externalLink" title="Source (Git)"> +Source (Git) + + + https://github.com/apache/incubator-commonsrdf/; class="externalLink" title="Source (GitHub mirror)"> +Source (GitHub mirror) + + + https://issues.apache.org/jira/browse/COMMONSRDF; class="externalLink" title="Issues (Jira)"> +Issues (Jira) + + + + Modules + + +Commons RDF API + + + +Project Documentation + + +Project Information + + + +About + + + +Summary + + + +Project Modules + + + +Team + + + +Source Code Management + + + +Issue Management + + + +Mailing Lists + + + +Dependency Information + + + +Dependencies + + + +Dependency Convergence + + + +CI Management + + + +Distribution Management + + + +
svn commit: r1001278 [18/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/experimental/RDFParser.html == --- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/experimental/RDFParser.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/experimental/RDFParser.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,557 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + +Source code + + + + +001/** +002 * Licensed to the Apache Software Foundation (ASF) under one +003 * or more contributor license agreements. See the NOTICE file +004 * distributed with this work for additional information +005 * regarding copyright ownership. The ASF licenses this file +006 * to you under the Apache License, Version 2.0 (the +007 * "License"); you may not use this file except in compliance +008 * with the License. You may obtain a copy of the License at +009 * +010 * http://www.apache.org/licenses/LICENSE-2.0 +011 * +012 * Unless required by applicable law or agreed to in writing, software +013 * distributed under the License is distributed on an "AS IS" BASIS, +014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +015 * See the License for the specific language governing permissions and +016 * limitations under the License. +017 */ +018package org.apache.commons.rdf.experimental; +019 +020import java.io.IOException; +021import java.io.InputStream; +022import java.nio.charset.StandardCharsets; +023import java.nio.file.Path; +024import java.util.Optional; +025import java.util.concurrent.Future; +026import java.util.function.Consumer; +027 +028import org.apache.commons.rdf.api.BlankNode; +029import org.apache.commons.rdf.api.Dataset; +030import org.apache.commons.rdf.api.Graph; +031import org.apache.commons.rdf.api.IRI; +032import org.apache.commons.rdf.api.Quad; +033import org.apache.commons.rdf.api.RDFSyntax; +034import org.apache.commons.rdf.api.RDFTerm; +035import org.apache.commons.rdf.api.RDF; +036import org.apache.commons.rdf.api.Triple; +037 +038/** +039 * Parse an RDF source into a target (e.g. a Graph/Dataset). +040 * h2Experimental/h2 This interface (and its implementations) should be +041 * considered strongat risk/strong; they might change or be removed in the +042 * next minor update of Commons RDF. It may move to the the +043 * {@link org.apache.commons.rdf.api} package when it has stabilized. +044 * h2Description/h2 +045 * p +046 * This interface follows the +047 * a href="https://en.wikipedia.org/wiki/Builder_pattern"Builder pattern/a, +048 * allowing to set parser settings like {@link #contentType(RDFSyntax)} and +049 * {@link #base(IRI)}. A caller MUST call one of the codesource/code methods +050 * (e.g. {@link #source(IRI)}, {@link #source(Path)}, +051 * {@link #source(InputStream)}), and MUST call one of the codetarget/code +052 * methods (e.g. {@link #target(Consumer)}, {@link #target(Dataset)}, +053 * {@link #target(Graph)}) before calling {@link #parse()} on the returned +054 * RDFParser - however methods can be called in any order. +055 * p +056 * The call to {@link #parse()} returns a {@link Future}, allowing asynchronous +057 * parse operations. Callers are recommended to check {@link Future#get()} to +058 * ensure parsing completed successfully, or catch exceptions thrown during +059 * parsing. +060 * p +061 * Setting a method that has already been set will override any existing value +062 * in the returned builder - regardless of the parameter type (e.g. +063 * {@link #source(IRI)} will override a previous {@link #source(Path)}. Settings +064 * can be unset by passing codenull/code - note that this may require +065 * casting, e.g. codecontentType( (RDFSyntax) null )/code to undo a previous +066 * call to {@link #contentType(RDFSyntax)}. +067 * p +068 * It is undefined if a RDFParser is mutable or thread-safe, so callers should +069 * always use the returned modified RDFParser from the builder methods. The +070 * builder may return itself after modification, or a cloned builder with the +071 * modified settings applied. Implementations are however encouraged to be +072 * immutable, thread-safe and document this. As an example starting point, see +073 * codeorg.apache.commons.rdf.simple.AbstractRDFParser/code. +074 * p +075 * Example usage: +076 * /p +077 * +078 * pre +079 * Graph g1 = rDFTermFactory.createGraph(); +080 * new ExampleRDFParserBuilder().source(Paths.get("/tmp/graph.ttl")).contentType(RDFSyntax.TURTLE).target(g1).parse() +081 * .get(30, TimeUnit.Seconds); +082 * /pre +083 * +084 */ +085public interface RDFParser { +086 +087/** +088 * The result of {@link RDFParser#parse()} indicating parsing completed. +089 * p +090 * This is a marker interface that may be subclassed to include
svn commit: r1001278 [5/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ ap
Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/Literal.html == --- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/Literal.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/Literal.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,411 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + + +Literal (Commons RDF 0.4.0-incubating-SNAPSHOT API) + + + + + +var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; +var altColor = "altColor"; +var rowColor = "rowColor"; +var tableTab = "tableTab"; +var activeTableTab = "activeTableTab"; + + +JavaScript is disabled on your browser. + + + + + +Skip navigation links + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +PrevClass +NextClass + + +Frames +NoFrames + + +AllClasses + + + + + + + +Summary: +Nested| +Field| +Constr| +Method + + +Detail: +Field| +Constr| +Method + + + + + + + + +org.apache.commons.rdf.api +Interface Literal + + + + + + +All Superinterfaces: +RDFTerm + + + +public interface Literal +extends RDFTerm +A RDF-1.1 Literal, as defined by + http://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal; + >RDF-1.1 Concepts and Abstract Syntax, a W3C Recommendation published on + 25 February 2014 + +See Also: +RDF.createLiteral(String), +RDF.createLiteral(String, IRI), +RDF.createLiteral(String, String) + + + + + + + + + + + + +Method Summary + +All MethodsInstance MethodsAbstract Methods + +Modifier and Type +Method and Description + + +boolean +equals(https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true; title="class or interface in java.lang">Objectother) +Check it this Literal is equal to another Literal. + + + +IRI +getDatatype() +The IRI identifying the datatype that determines how the lexical form + maps to a literal value. + + + +https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true; title="class or interface in java.util">Optionalhttps://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">String +getLanguageTag() +If and only if the datatype IRI is + http://www.w3.org/1999/02/22-rdf-syntax-ns#langString; + >http://www.w3.org/1999/02/22-rdf-syntax-ns#langString, the language + tag for this Literal is a non-empty language tag as defined by + http://tools.ietf.org/html/bcp47;>BCP47. + If the datatype IRI is not + http://www.w3.org/1999/02/22-rdf-syntax-ns#langString; + >http://www.w3.org/1999/02/22-rdf-syntax-ns#langString, this method + must return https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#empty--; title="class or interface in java.util">Optional.empty(). + + + +https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">String +getLexicalForm() +The lexical form of this literal, represented by a + http://www.unicode.org/versions/latest/;>Unicode string. + + + +int +hashCode() +Calculate a hash code for this Literal. + + + + + + + +Methods inherited from interfaceorg.apache.commons.rdf.api.RDFTerm +ntriplesString + + + + + + + + + + + + + + +Method Detail + + + + + +getLexicalForm +https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">StringgetLexicalForm() +The lexical form of this literal, represented by a + http://www.unicode.org/versions/latest/;>Unicode string. + +Returns: +The lexical form of this literal. +See Also: +http://www.w3.org/TR/rdf11-concepts/#dfn-lexical-form;>RDF-1.1 + Literal lexical form + + + + + + + + +getDatatype +IRIgetDatatype() +The IRI identifying the datatype that determines how the lexical form + maps to a literal value. + + If the datatype IRI is + http://www.w3.org/1999/02/22-rdf-syntax-ns#langString; + >http://www.w3.org/1999/02/22-rdf-syntax-ns#langString, + getLanguageTag() must not return https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#empty--; title="class or interface in java.util">Optional.empty(), and + it must return a valid + http://tools.ietf.org/html/bcp47;>BCP47 language tag. + +Returns: +The datatype IRI for this literal. +See Also: +http://www.w3.org/TR/rdf11-concepts/#dfn-datatype-iri;>RDF-1.1 +
svn commit: r1001278 [10/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/RDFTerm.html == --- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/RDFTerm.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/class-use/RDFTerm.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,392 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + + +Uses of Interface org.apache.commons.rdf.api.RDFTerm (Commons RDF 0.4.0-incubating-SNAPSHOT API) + + + + + + + +JavaScript is disabled on your browser. + + + + + +Skip navigation links + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +Prev +Next + + +Frames +NoFrames + + +AllClasses + + + + + + + + + + +Uses of Interfaceorg.apache.commons.rdf.api.RDFTerm + + + + + +Packages that use RDFTerm + +Package +Description + + + +org.apache.commons.rdf.api + +Commons RDF, a common library of RDF 1.1 concepts. + + + + + + + + + + +Uses of RDFTerm in org.apache.commons.rdf.api + +Classes in org.apache.commons.rdf.api with type parameters of type RDFTerm + +Modifier and Type +Interface and Description + + + +interface +QuadLikeG extends RDFTerm +A generalised "quad-like" interface, extended by Quad. + + + + + +Subinterfaces of RDFTerm in org.apache.commons.rdf.api + +Modifier and Type +Interface and Description + + + +interface +BlankNode +A http://www.w3.org/TR/rdf11-concepts/#dfn-blank-node; >RDF-1.1 + Blank Node, as defined by + http://www.w3.org/TR/rdf11-concepts/#section-blank-nodes; >RDF-1.1 + Concepts and Abstract Syntax, a W3C Recommendation published on 25 + February 2014. + + Note: + http://www.w3.org/TR/rdf11-concepts/#dfn-blank-node;>Blank nodes + are disjoint from IRIs and literals. + + + +interface +BlankNodeOrIRI +This interface represents the RDFTerms that may be used in the + subject position of an RDF-1.1 Triple as well as the graph name + position of a Quad. + + + +interface +IRI +An http://www.w3.org/TR/rdf11-concepts/#dfn-iri; >RDF-1.1 IRI, + as defined by http://www.w3.org/TR/rdf11-concepts/; >RDF-1.1 + Concepts and Abstract Syntax, a W3C Recommendation published on 25 + February 2014. + + + +interface +Literal +A RDF-1.1 Literal, as defined by + http://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal; + >RDF-1.1 Concepts and Abstract Syntax, a W3C Recommendation published on + 25 February 2014 + + + + + +Methods in org.apache.commons.rdf.api that return RDFTerm + +Modifier and Type +Method and Description + + + +RDFTerm +TripleLike.getObject() +The object of this statement. + + + +RDFTerm +Triple.getObject() +The object of this triple, which may be either a BlankNode, an + IRI, or a Literal, which are represented in Commons RDF + by the interface RDFTerm. + + + +RDFTerm +Quad.getObject() +The object of this quad, which may be either a BlankNode, an + IRI, or a Literal, which are represented in Commons RDF + by the interface RDFTerm. + + + +RDFTerm +TripleLike.getPredicate() +The predicate of this statement. + + + +RDFTerm +TripleLike.getSubject() +The subject of this statement. + + + + + +Methods in org.apache.commons.rdf.api with parameters of type RDFTerm + +Modifier and Type +Method and Description + + + +void +Dataset.add(BlankNodeOrIRIgraphName, + BlankNodeOrIRIsubject, + IRIpredicate, + RDFTermobject) +Add a quad to the dataset, possibly mapping any of the components to + those supported by this dataset. + + + +void +Graph.add(BlankNodeOrIRIsubject, + IRIpredicate, + RDFTermobject) +Add a triple to the graph, possibly mapping any of the components to + those supported by this Graph. + + + +boolean +Graph.contains(BlankNodeOrIRIsubject, +IRIpredicate, +RDFTermobject) +Check if graph contains a pattern of triples. + + + +boolean +Dataset.contains(https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true; title="class or interface in java.util">OptionalBlankNodeOrIRIgraphName, +BlankNodeOrIRIsubject, +IRIpredicate, +RDFTermobject) +Check if dataset contains a pattern of quads. + + + +Quad +RDF.createQuad(BlankNodeOrIRIgraphName, + BlankNodeOrIRIsubject, + IRIpredicate, + RDFTermobject) +Create a quad. + + + +default Triple +RDFTermFactory.createTriple(BlankNodeOrIRIsubject, +IRIpredicate, +RDFTermobject) +Deprecated.
svn commit: r1001278 [33/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/xref-test/org/apache/commons/rdf/api/AbstractGraphTest.html == --- websites/production/commonsrdf/content/commons-rdf-parent/xref-test/org/apache/commons/rdf/api/AbstractGraphTest.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/xref-test/org/apache/commons/rdf/api/AbstractGraphTest.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,553 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +AbstractGraphTest xref + + + +View Javadoc +1 /** +2* Licensed to the Apache Software Foundation (ASF) under one +3* or more contributor license agreements. See the NOTICE file +4* distributed with this work for additional information +5* regarding copyright ownership. The ASF licenses this file +6* to you under the Apache License, Version 2.0 (the +7* "License"); you may not use this file except in compliance +8* with the License. You may obtain a copy of the License at +9* +10 * http://www.apache.org/licenses/LICENSE-2.; target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0 +11 * +12 * Unless required by applicable law or agreed to in writing, software +13 * distributed under the License is distributed on an "AS IS" BASIS, +14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +15 * See the License for the specific language governing permissions and +16 * limitations under the License. +17 */ +18 package org.apache.commons.rdf.api; +19 +20 import static org.junit.Assert.assertEquals; +21 import static org.junit.Assert.assertFalse; +22 import static org.junit.Assert.assertNotNull; +23 import static org.junit.Assert.assertTrue; +24 import static org.junit.Assert.fail; +25 +26 import java.util.ArrayList; +27 import java.util.HashSet; +28 import java.util.Iterator; +29 import java.util.List; +30 import java.util.Map; +31 import java.util.Optional; +32 import java.util.concurrent.ConcurrentHashMap; +33 import java.util.stream.Stream; +34 +35 import org.junit.Assume; +36 import org.junit.Before; +37 import org.junit.Test; +38 +39 /** +40 * Test Graph implementation +41 * p +42 * To add to your implementation's tests, create a subclass with a name ending +43 * in codeTest/code and provide {@link #createFactory()} which minimally +44 * must support {@link RDF#createGraph()} and {@link RDF#createIRI(String)}, but +45 * ideally support all operations. +46 * p +47 * This test uses try-with-resources blocks for calls to {@link Graph#stream()} +48 * and {@link Graph#iterate()}. +49 * +50 * @see Graph +51 * @see RDF +52 */ +53 public abstract class AbstractGraphTest { +54 +55 protected RDF factory; +56 protected Graph graph; +57 protected IRI alice; +58 protected IRI bob; +59 protected IRI name; +60 protected IRI knows; +61 protected IRI member; +62 protected BlankNode bnode1; +63 protected BlankNode bnode2; +64 protected Literal aliceName; +65 protected Literal bobName; +66 protected Literal secretClubName; +67 protected Literal companyName; +68 protected Triple bobNameTriple; +69 +70 /** +71 * +72 * This method must be overridden by the implementing test to provide a +73 * factory for the test to create {@link Graph}, {@link IRI} etc. +74 * +75 * @return {@link RDF} instance to be tested. +76 */ +77 protected abstract RDF createFactory(); +78 +79 @Before +80 public void createGraphAndAdd() { +81 factory = createFactory(); +82 graph = factory.createGraph(); +83 assertEquals(0, graph.size()); +84 +85 alice = factory.createIRI("http://example.com/alice;); +86 bob = factory.createIRI("http://example.com/bob;); +87 name = factory.createIRI("http://xmlns.com/foaf/0.1/name;); +88 knows = factory.createIRI("http://xmlns.com/foaf/0.1/knows;); +89 member = factory.createIRI("http://xmlns.com/foaf/0.1/member;); +90 try { +91 bnode1 = factory.createBlankNode("org1"); +92 bnode2 = factory.createBlankNode("org2"); +93 } catch (final UnsupportedOperationException ex) { +94 // leave as null +95 } +96 +97 try { +98 secretClubName = factory.createLiteral("The Secret Club"); +99 companyName = factory.createLiteral("A company"); +100 aliceName = factory.createLiteral("Alice"); +101 bobName = factory.createLiteral("Bob", "en-US"); +102 } catch (final UnsupportedOperationException ex) { +103 // leave as null +104 } +105 +106 if (aliceName != null) { +107
svn commit: r1001278 [7/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ ap
Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/RDFTerm.html == --- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/RDFTerm.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/org/apache/commons/rdf/api/RDFTerm.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,341 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + + +RDFTerm (Commons RDF 0.4.0-incubating-SNAPSHOT API) + + + + + +var methods = {"i0":6,"i1":6,"i2":6}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; +var altColor = "altColor"; +var rowColor = "rowColor"; +var tableTab = "tableTab"; +var activeTableTab = "activeTableTab"; + + +JavaScript is disabled on your browser. + + + + + +Skip navigation links + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +PrevClass +NextClass + + +Frames +NoFrames + + +AllClasses + + + + + + + +Summary: +Nested| +Field| +Constr| +Method + + +Detail: +Field| +Constr| +Method + + + + + + + + +org.apache.commons.rdf.api +Interface RDFTerm + + + + + + +All Known Subinterfaces: +BlankNode, BlankNodeOrIRI, IRI, Literal + + + +public interface RDFTerm +An http://www.w3.org/TR/rdf11-concepts/#dfn-rdf-term; >RDF-1.1 + Term, as defined by + http://www.w3.org/TR/rdf11-concepts/; >RDF-1.1 Concepts and + Abstract Syntax, a W3C Recommendation published on 25 February 2014. + + A RDFTerm object in Commons RDF is considered + immutable, that is, over its life time it will have + consistent behaviour for its equals(Object) and hashCode(), + and objects returned from its getter methods (e.g. IRI.getIRIString() + and Literal.getLanguageTag()) will have consistent + equals(Object) behaviour. + + Note that methods in RDFTerm and its Commons RDF specialisations + IRI, BlankNode and Literal are not required to return + object identical (==) instances as long as they are equivalent + according to their https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-; title="class or interface in java.lang">Object.equals(Object). Further specialisations may + provide additional methods that are documented to be mutable. + + Methods in RDFTerm and its Commons RDF specialisations + IRI, BlankNode and Literal are + thread-safe, however further specialisations may add + additional methods that are documented to not be thread-safe. + + RDFTerms can be safely used in hashing collections like + https://docs.oracle.com/javase/8/docs/api/java/util/HashSet.html?is-external=true; title="class or interface in java.util">HashSet and https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true; title="class or interface in java.util">HashMap. + + Any RDFTerm can be used interchangeably across Commons RDF + implementations. + +See Also: +http://www.w3.org/TR/rdf11-concepts/#dfn-rdf-term; >RDF-1.1 + Term + + + + + + + + + + + + +Method Summary + +All MethodsInstance MethodsAbstract Methods + +Modifier and Type +Method and Description + + +boolean +equals(https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true; title="class or interface in java.lang">Objectother) +Check it this RDFTerm is equal to another RDFTerm. + + + +int +hashCode() +Calculate a hash code for this RDFTerm. + + + +https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">String +ntriplesString() +Return the term serialised as specified by the RDF-1.1 N-Triples + Canonical form. + + + + + + + + + + + + + + + + +Method Detail + + + + + +ntriplesString +https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">StringntriplesString() +Return the term serialised as specified by the RDF-1.1 N-Triples + Canonical form. + +Returns: +The term serialised as RDF-1.1 N-Triples. +See Also: +http://www.w3.org/TR/n-triples/#canonical-ntriples;> + RDF-1.1 N-Triples Canonical form + + + + + + + + +equals +booleanequals(https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true; title="class or interface in java.lang">Objectother) +Check it this RDFTerm is equal to another RDFTerm. + + If this object is an IRI, equality is checked using + IRI.equals(Object), or if this object is a BlankNode, + equality is checked using
svn commit: r1001278 [17/41] - in /websites/production/commonsrdf/content/commons-rdf-parent: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/commons/ apidocs/org/apache/commons/rdf/ a
Added: websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/experimental/RDFParser.ParseResult.html == --- websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/experimental/RDFParser.ParseResult.html (added) +++ websites/production/commonsrdf/content/commons-rdf-parent/apidocs/src-html/org/apache/commons/rdf/experimental/RDFParser.ParseResult.html Thu Nov 17 14:45:34 2016 @@ -0,0 +1,557 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + +Source code + + + + +001/** +002 * Licensed to the Apache Software Foundation (ASF) under one +003 * or more contributor license agreements. See the NOTICE file +004 * distributed with this work for additional information +005 * regarding copyright ownership. The ASF licenses this file +006 * to you under the Apache License, Version 2.0 (the +007 * "License"); you may not use this file except in compliance +008 * with the License. You may obtain a copy of the License at +009 * +010 * http://www.apache.org/licenses/LICENSE-2.0 +011 * +012 * Unless required by applicable law or agreed to in writing, software +013 * distributed under the License is distributed on an "AS IS" BASIS, +014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +015 * See the License for the specific language governing permissions and +016 * limitations under the License. +017 */ +018package org.apache.commons.rdf.experimental; +019 +020import java.io.IOException; +021import java.io.InputStream; +022import java.nio.charset.StandardCharsets; +023import java.nio.file.Path; +024import java.util.Optional; +025import java.util.concurrent.Future; +026import java.util.function.Consumer; +027 +028import org.apache.commons.rdf.api.BlankNode; +029import org.apache.commons.rdf.api.Dataset; +030import org.apache.commons.rdf.api.Graph; +031import org.apache.commons.rdf.api.IRI; +032import org.apache.commons.rdf.api.Quad; +033import org.apache.commons.rdf.api.RDFSyntax; +034import org.apache.commons.rdf.api.RDFTerm; +035import org.apache.commons.rdf.api.RDF; +036import org.apache.commons.rdf.api.Triple; +037 +038/** +039 * Parse an RDF source into a target (e.g. a Graph/Dataset). +040 * h2Experimental/h2 This interface (and its implementations) should be +041 * considered strongat risk/strong; they might change or be removed in the +042 * next minor update of Commons RDF. It may move to the the +043 * {@link org.apache.commons.rdf.api} package when it has stabilized. +044 * h2Description/h2 +045 * p +046 * This interface follows the +047 * a href="https://en.wikipedia.org/wiki/Builder_pattern"Builder pattern/a, +048 * allowing to set parser settings like {@link #contentType(RDFSyntax)} and +049 * {@link #base(IRI)}. A caller MUST call one of the codesource/code methods +050 * (e.g. {@link #source(IRI)}, {@link #source(Path)}, +051 * {@link #source(InputStream)}), and MUST call one of the codetarget/code +052 * methods (e.g. {@link #target(Consumer)}, {@link #target(Dataset)}, +053 * {@link #target(Graph)}) before calling {@link #parse()} on the returned +054 * RDFParser - however methods can be called in any order. +055 * p +056 * The call to {@link #parse()} returns a {@link Future}, allowing asynchronous +057 * parse operations. Callers are recommended to check {@link Future#get()} to +058 * ensure parsing completed successfully, or catch exceptions thrown during +059 * parsing. +060 * p +061 * Setting a method that has already been set will override any existing value +062 * in the returned builder - regardless of the parameter type (e.g. +063 * {@link #source(IRI)} will override a previous {@link #source(Path)}. Settings +064 * can be unset by passing codenull/code - note that this may require +065 * casting, e.g. codecontentType( (RDFSyntax) null )/code to undo a previous +066 * call to {@link #contentType(RDFSyntax)}. +067 * p +068 * It is undefined if a RDFParser is mutable or thread-safe, so callers should +069 * always use the returned modified RDFParser from the builder methods. The +070 * builder may return itself after modification, or a cloned builder with the +071 * modified settings applied. Implementations are however encouraged to be +072 * immutable, thread-safe and document this. As an example starting point, see +073 * codeorg.apache.commons.rdf.simple.AbstractRDFParser/code. +074 * p +075 * Example usage: +076 * /p +077 * +078 * pre +079 * Graph g1 = rDFTermFactory.createGraph(); +080 * new ExampleRDFParserBuilder().source(Paths.get("/tmp/graph.ttl")).contentType(RDFSyntax.TURTLE).target(g1).parse() +081 * .get(30, TimeUnit.Seconds); +082 * /pre +083 * +084 */ +085public interface RDFParser { +086 +087/** +088 * The result of {@link RDFParser#parse()} indicating parsing completed. +089 * p +090 * This is a marker interface
svn commit: r1001279 [5/16] - in /websites/production/commonsrdf/content/commons-rdf-api: ./ apidocs/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apache/commons/rdf/api/class-use/ apidocs/org/apac
Modified: websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/RDFTermFactory.html == --- websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/RDFTermFactory.html (original) +++ websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/RDFTermFactory.html Thu Nov 17 14:48:10 2016 @@ -40,7 +40,7 @@ 032throw new UnsupportedOperationException("createBlankNode() not supported"); 033} 034 -035default BlankNode createBlankNode(String name) throws UnsupportedOperationException { +035default BlankNode createBlankNode(final String name) throws UnsupportedOperationException { 036throw new UnsupportedOperationException("createBlankNode(String) not supported"); 037} 038 @@ -48,25 +48,25 @@ 040throw new UnsupportedOperationException("createGraph() not supported"); 041} 042 -043default IRI createIRI(String iri) throws IllegalArgumentException, UnsupportedOperationException { +043default IRI createIRI(final String iri) throws IllegalArgumentException, UnsupportedOperationException { 044throw new UnsupportedOperationException("createIRI(String) not supported"); 045} 046 -047default Literal createLiteral(String lexicalForm) throws IllegalArgumentException, UnsupportedOperationException { +047default Literal createLiteral(final String lexicalForm) throws IllegalArgumentException, UnsupportedOperationException { 048throw new UnsupportedOperationException("createLiteral(String) not supported"); 049} 050 -051default Literal createLiteral(String lexicalForm, IRI dataType) +051default Literal createLiteral(final String lexicalForm, final IRI dataType) 052throws IllegalArgumentException, UnsupportedOperationException { 053throw new UnsupportedOperationException("createLiteral(String) not supported"); 054} 055 -056default Literal createLiteral(String lexicalForm, String languageTag) +056default Literal createLiteral(final String lexicalForm, final String languageTag) 057throws IllegalArgumentException, UnsupportedOperationException { 058throw new UnsupportedOperationException("createLiteral(String,String) not supported"); 059} 060 -061default Triple createTriple(BlankNodeOrIRI subject, IRI predicate, RDFTerm object) +061default Triple createTriple(final BlankNodeOrIRI subject, final IRI predicate, final RDFTerm object) 062throws IllegalArgumentException, UnsupportedOperationException { 063throw new UnsupportedOperationException("createTriple(BlankNodeOrIRI,IRI,RDFTerm) not supported"); 064} @@ -135,4 +135,4 @@ - + \ No newline at end of file Modified: websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/Triple.html == --- websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/Triple.html (original) +++ websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/Triple.html Thu Nov 17 14:48:10 2016 @@ -72,66 +72,69 @@ 064 * @see a href="http://www.w3.org/TR/rdf11-concepts/#dfn-subject"RDF-1.1 065 * Triple subject/a 066 */ -067BlankNodeOrIRI getSubject(); -068 -069/** -070 * The predicate {@link IRI} of this triple. -071 * -072 * @return The predicate {@link IRI} of this triple. -073 * @see a href="http://www.w3.org/TR/rdf11-concepts/#dfn-predicate"RDF-1.1 -074 * Triple predicate/a -075 */ -076IRI getPredicate(); -077 -078/** -079 * The object of this triple, which may be either a {@link BlankNode}, an -080 * {@link IRI}, or a {@link Literal}, which are represented in Commons RDF -081 * by the interface {@link RDFTerm}. -082 * -083 * @return The object {@link RDFTerm} of this triple. -084 * @see a href="http://www.w3.org/TR/rdf11-concepts/#dfn-object"RDF-1.1 -085 * Triple object/a -086 */ -087RDFTerm getObject(); -088 -089/** -090 * Check it this Triple is equal to another Triple. -091 * p -092 * Two Triples are equal if and only if their {@link #getSubject()}, -093 * {@link #getPredicate()} and {@link #getObject()} are equal. -094 * /p -095 * p -096 * Implementations MUST also override {@link #hashCode()} so that two equal -097 * Triples produce the same hash code. -098 * /p -099 * -100 * @param other -101 *Another object -102 * @return true if other is a Triple and is equal to this -103 * @see Object#equals(Object) -104 */ -105@Override -106public boolean equals(Object other);
svn commit: r1001279 [13/16] - in /websites/production/commonsrdf/content/commons-rdf-api: ./ apidocs/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apache/commons/rdf/api/class-use/ apidocs/org/apa
Modified: websites/production/commonsrdf/content/commons-rdf-api/xref-test/org/apache/commons/rdf/api/AbstractRDFTest.html == --- websites/production/commonsrdf/content/commons-rdf-api/xref-test/org/apache/commons/rdf/api/AbstractRDFTest.html (original) +++ websites/production/commonsrdf/content/commons-rdf-api/xref-test/org/apache/commons/rdf/api/AbstractRDFTest.html Thu Nov 17 14:48:10 2016 @@ -64,9 +64,9 @@ 56 57 @Test 58 public void testCreateBlankNode() throws Exception { -59 BlankNode bnode = factory.createBlankNode(); +59 final BlankNode bnode = factory.createBlankNode(); 60 -61 BlankNode bnode2 = factory.createBlankNode(); +61 final BlankNode bnode2 = factory.createBlankNode(); 62 assertNotEquals("Second blank node has not got a unique internal identifier", bnode.uniqueReference(), 63 bnode2.uniqueReference()); 64 } @@ -75,7 +75,7 @@ 67 public void testCreateBlankNodeIdentifierEmpty() throws Exception { 68 try { 69 factory.createBlankNode(""); -70 } catch (IllegalArgumentException e) { +70 } catch (final IllegalArgumentException e) { 71 // Expected exception 72 } 73 } @@ -124,12 +124,12 @@ 116 117 @Test 118 public void testCreateGraph() { -119 Graph graph = factory.createGraph(); +119 final Graph graph = factory.createGraph(); 120 121 assertEquals("Graph was not empty", 0, graph.size()); 122 graph.add(factory.createBlankNode(), factory.createIRI("http://example.com/;), factory.createBlankNode()); 123 -124 Graph graph2 = factory.createGraph(); +124 final Graph graph2 = factory.createGraph(); 125 assertNotSame(graph, graph2); 126 assertEquals("Graph was empty after adding", 1, graph.size()); 127 assertEquals("New graph was not empty", 0, graph2.size()); @@ -137,33 +137,33 @@ 129 130 @Test 131 public void testCreateIRI() throws Exception { -132 IRI example = factory.createIRI("http://example.com/;); +132 final IRI example = factory.createIRI("http://example.com/;); 133 134 assertEquals("http://example.com/;, example.getIRIString()); 135 assertEquals("http://example.com/;, example.ntriplesString()); 136 -137 IRI term = factory.createIRI("http://example.com/vocab#term;); +137 final IRI term = factory.createIRI("http://example.com/vocab#term;); 138 assertEquals("http://example.com/vocab#term;, term.getIRIString()); 139 assertEquals("http://example.com/vocab#term;, term.ntriplesString()); 140 141 // and now for the international fun! 142 -143 IRI latin1 = factory.createIRI("http://accént.example.com/première;); +143 final IRI latin1 = factory.createIRI("http://accént.example.com/première;); 144 assertEquals("http://accént.example.com/première;, latin1.getIRIString()); 145 assertEquals("http://accént.example.com/première;, latin1.ntriplesString()); 146 -147 IRI cyrillic = factory.createIRI("http://example.иÑпÑÑание/ÐиÑиллиÑа;); +147 final IRI cyrillic = factory.createIRI("http://example.иÑпÑÑание/ÐиÑиллиÑа;); 148 assertEquals("http://example.иÑпÑÑание/ÐиÑиллиÑа;, cyrillic.getIRIString()); 149 assertEquals("http://example.иÑпÑÑание/ÐиÑиллиÑа;, cyrillic.ntriplesString()); 150 -151 IRI deseret = factory.createIRI("http://ð.example.com/ð;); +151 final IRI deseret = factory.createIRI("http://ð.example.com/ð;); 152 assertEquals("http://ð.example.com/ð;, deseret.getIRIString()); 153 assertEquals("http://ð.example.com/ð;, deseret.ntriplesString()); 154 } 155 156 @Test 157 public void testCreateLiteral() throws Exception { -158 Literal example = factory.createLiteral("Example"); +158 final Literal example = factory.createLiteral("Example"); 159 assertEquals("Example", example.getLexicalForm()); 160 assertFalse(example.getLanguageTag().isPresent()); 161 assertEquals("http://www.w3.org/2001/XMLSchema#string;, example.getDatatype().getIRIString()); @@ -173,7 +173,7 @@ 165 166 @Test 167 public void testCreateLiteralDateTime() throws Exception { -168 Literal dateTime = factory.createLiteral("2014-12-27T00:50:00T-0600", +168 final Literal dateTime = factory.createLiteral("2014-12-27T00:50:00T-0600", 169 factory.createIRI("http://www.w3.org/2001/XMLSchema#dateTime;)); 170 assertEquals("2014-12-27T00:50:00T-0600", dateTime.getLexicalForm()); 171 assertFalse(dateTime.getLanguageTag().isPresent()); @@ -184,7
svn commit: r1001279 [9/16] - in /websites/production/commonsrdf/content/commons-rdf-api: ./ apidocs/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apache/commons/rdf/api/class-use/ apidocs/org/apac
Modified: websites/production/commonsrdf/content/commons-rdf-api/mail-lists.html == --- websites/production/commonsrdf/content/commons-rdf-api/mail-lists.html (original) +++ websites/production/commonsrdf/content/commons-rdf-api/mail-lists.html Thu Nov 17 14:48:10 2016 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Commons RDF API Project Mailing Lists @@ -29,19 +29,19 @@ - - + http://commonsrdf.incubator.apache.org/; id="bannerLeft" title="Apache Commons RDF logo"> + - http://commonsrdf.incubator.apache.org/commons-rdf-api/;>Commons RDF API + https://commonsrdf.incubator.apache.org/commons-rdf-api/;>Commons RDF API -Last Published: 16 November 2016 - | Version: 0.3.0-incubating +Last Published: 17 November 2016 + | Version: 0.4.0-incubating-SNAPSHOT @@ -264,4 +264,4 @@ - + \ No newline at end of file Modified: websites/production/commonsrdf/content/commons-rdf-api/pmd.html == --- websites/production/commonsrdf/content/commons-rdf-api/pmd.html (original) +++ websites/production/commonsrdf/content/commons-rdf-api/pmd.html Thu Nov 17 14:48:10 2016 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Commons RDF API PMD Results @@ -29,19 +29,19 @@ - - + http://commonsrdf.incubator.apache.org/; id="bannerLeft" title="Apache Commons RDF logo"> + - http://commonsrdf.incubator.apache.org/commons-rdf-api/;>Commons RDF API + https://commonsrdf.incubator.apache.org/commons-rdf-api/;>Commons RDF API -Last Published: 16 November 2016 - | Version: 0.3.0-incubating +Last Published: 17 November 2016 + | Version: 0.4.0-incubating-SNAPSHOT @@ -277,10 +277,10 @@ Line Avoid modifiers which are implied by the context -216 +220 Avoid modifiers which are implied by the context -234 +238 org/apache/commons/rdf/api/RDF.java @@ -337,10 +337,10 @@ Line Avoid modifiers which are implied by the context -106 +109 Avoid modifiers which are implied by the context -124 +127 org/apache/commons/rdf/experimental/RDFParser.java @@ -368,4 +368,4 @@ - + \ No newline at end of file Modified: websites/production/commonsrdf/content/commons-rdf-api/project-info.html == --- websites/production/commonsrdf/content/commons-rdf-api/project-info.html (original) +++ websites/production/commonsrdf/content/commons-rdf-api/project-info.html Thu Nov 17 14:48:10 2016 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Commons RDF API Project Information @@ -29,19 +29,19 @@ - - + http://commonsrdf.incubator.apache.org/; id="bannerLeft" title="Apache Commons RDF logo"> + - http://commonsrdf.incubator.apache.org/commons-rdf-api/;>Commons RDF API + https://commonsrdf.incubator.apache.org/commons-rdf-api/;>Commons RDF API -Last Published: 16 November 2016 - | Version: 0.3.0-incubating +Last Published: 17 November 2016 + | Version: 0.4.0-incubating-SNAPSHOT @@ -281,4 +281,4 @@ - + \ No newline at end of file Modified: websites/production/commonsrdf/content/commons-rdf-api/project-reports.html == ---
svn commit: r1001279 [15/16] - in /websites/production/commonsrdf/content/commons-rdf-api: ./ apidocs/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apache/commons/rdf/api/class-use/ apidocs/org/apa
Modified: websites/production/commonsrdf/content/commons-rdf-api/xref/org/apache/commons/rdf/api/Graph.html == --- websites/production/commonsrdf/content/commons-rdf-api/xref/org/apache/commons/rdf/api/Graph.html (original) +++ websites/production/commonsrdf/content/commons-rdf-api/xref/org/apache/commons/rdf/api/Graph.html Thu Nov 17 14:48:10 2016 @@ -46,259 +46,266 @@ 38 * @param triple 39 *The triple to add 40 */ -41 void add(Triple triple); -42 -43 /** -44 * Add a triple to the graph, possibly mapping any of the components to -45 * those supported by this Graph. -46 * -47 * @param subject -48 *The triple subject -49 * @param predicate -50 *The triple predicate -51 * @param object -52 *The triple object -53 */ -54 void add(BlankNodeOrIRI subject, IRI predicate, RDFTerm object); -55 -56 /** -57 * Check if graph contains triple. -58 * -59 * @param triple -60 *The triple to check. -61 * @return True if the Graph contains the given Triple. -62 */ -63 boolean contains(Triple triple); -64 -65 /** -66 * Check if graph contains a pattern of triples. -67 * -68 * @param subject -69 *The triple subject (null is a wildcard) -70 * @param predicate -71 *The triple predicate (null is a wildcard) -72 * @param object -73 *The triple object (null is a wildcard) -74 * @return True if the Graph contains any Triples that match the given -75 * pattern. -76 */ -77 boolean contains(BlankNodeOrIRI subject, IRI predicate, RDFTerm object); -78 -79 /** -80 * Close the graph, relinquishing any underlying resources. -81 * p -82 * For example, this would close any open file and network streams and free -83 * database locks held by the Graph implementation. -84 * p -85 * The behaviour of the other Graph methods are undefined after closing the -86 * graph. -87 * p -88 * Implementations might not need {@link #close()}, hence the default -89 * implementation does nothing. -90 */ -91 @Override -92 default void close() throws Exception { -93 } -94 -95 /** -96 * Remove a concrete triple from the graph. -97 * -98 * @param triple -99 *triple to remove -100 */ -101 void remove(Triple triple); -102 -103 /** -104 * Remove a concrete pattern of triples from the graph. -105 * -106 * @param subject -107 *The triple subject (null is a wildcard) -108 * @param predicate -109 *The triple predicate (null is a wildcard) -110 * @param object -111 *The triple object (null is a wildcard) -112 */ -113 void remove(BlankNodeOrIRI subject, IRI predicate, RDFTerm object); -114 -115 /** -116 * Clear the graph, removing all triples. -117 */ -118 void clear(); -119 -120 /** -121 * Number of triples contained by the graph. -122 * p -123 * The count of a set does not include duplicates, consistent with the -124 * {@link Triple#equals(Object)} equals method for each {@link Triple}. -125 * -126 * @return The number of triples in the graph -127 */ -128 long size(); -129 -130 /** -131 * Get all triples contained by the graph.br -132 * p -133 * The iteration does not contain any duplicate triples, as determined by -134 * the {@link Triple#equals(Object)} method for each {@link Triple}. -135 * p -136 * The behaviour of the {@link Stream} is not specified if -137 * {@link #add(Triple)}, {@link #remove(Triple)} or {@link #clear()} are -138 * called on the {@link Graph} before it terminates. -139 * p -140 * Implementations may throw {@link ConcurrentModificationException} from -141 * Stream methods if they detect a conflict while the Stream is active. -142 * -143 * @since 0.3.0-incubating -144 * @return A {@link Stream} over all of the triples in the graph -145 */ -146 Stream? extends Triple stream(); -147 -148 /** -149 * Get all triples contained by the graph matched with the pattern. -150 * p -151 * The iteration does not contain any duplicate triples, as determined by -152 * the {@link Triple#equals(Object)} method for each {@link Triple}. -153 * p -154 * The behaviour of the {@link Stream} is not specified if -155 * {@link #add(Triple)}, {@link #remove(Triple)} or {@link #clear()} are -156 * called on the {@link Graph} before it terminates. -157 * p -158 * Implementations may throw {@link
svn commit: r1001279 [4/16] - in /websites/production/commonsrdf/content/commons-rdf-api: ./ apidocs/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apache/commons/rdf/api/class-use/ apidocs/org/apac
Modified: websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/Graph.html == --- websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/Graph.html (original) +++ websites/production/commonsrdf/content/commons-rdf-api/apidocs/src-html/org/apache/commons/rdf/api/Graph.html Thu Nov 17 14:48:10 2016 @@ -46,257 +46,264 @@ 038 * @param triple 039 *The triple to add 040 */ -041void add(Triple triple); -042 -043/** -044 * Add a triple to the graph, possibly mapping any of the components to -045 * those supported by this Graph. -046 * -047 * @param subject -048 *The triple subject -049 * @param predicate -050 *The triple predicate -051 * @param object -052 *The triple object -053 */ -054void add(BlankNodeOrIRI subject, IRI predicate, RDFTerm object); -055 -056/** -057 * Check if graph contains triple. -058 * -059 * @param triple -060 *The triple to check. -061 * @return True if the Graph contains the given Triple. -062 */ -063boolean contains(Triple triple); -064 -065/** -066 * Check if graph contains a pattern of triples. -067 * -068 * @param subject -069 *The triple subject (null is a wildcard) -070 * @param predicate -071 *The triple predicate (null is a wildcard) -072 * @param object -073 *The triple object (null is a wildcard) -074 * @return True if the Graph contains any Triples that match the given -075 * pattern. -076 */ -077boolean contains(BlankNodeOrIRI subject, IRI predicate, RDFTerm object); -078 -079/** -080 * Close the graph, relinquishing any underlying resources. -081 * p -082 * For example, this would close any open file and network streams and free -083 * database locks held by the Graph implementation. -084 * p -085 * The behaviour of the other Graph methods are undefined after closing the -086 * graph. -087 * p -088 * Implementations might not need {@link #close()}, hence the default -089 * implementation does nothing. -090 */ -091@Override -092default void close() throws Exception { -093} -094 -095/** -096 * Remove a concrete triple from the graph. -097 * -098 * @param triple -099 *triple to remove -100 */ -101void remove(Triple triple); -102 -103/** -104 * Remove a concrete pattern of triples from the graph. -105 * -106 * @param subject -107 *The triple subject (null is a wildcard) -108 * @param predicate -109 *The triple predicate (null is a wildcard) -110 * @param object -111 *The triple object (null is a wildcard) -112 */ -113void remove(BlankNodeOrIRI subject, IRI predicate, RDFTerm object); -114 -115/** -116 * Clear the graph, removing all triples. -117 */ -118void clear(); -119 -120/** -121 * Number of triples contained by the graph. -122 * p -123 * The count of a set does not include duplicates, consistent with the -124 * {@link Triple#equals(Object)} equals method for each {@link Triple}. -125 * -126 * @return The number of triples in the graph -127 */ -128long size(); -129 -130/** -131 * Get all triples contained by the graph.br -132 * p -133 * The iteration does not contain any duplicate triples, as determined by -134 * the {@link Triple#equals(Object)} method for each {@link Triple}. -135 * p -136 * The behaviour of the {@link Stream} is not specified if -137 * {@link #add(Triple)}, {@link #remove(Triple)} or {@link #clear()} are -138 * called on the {@link Graph} before it terminates. -139 * p -140 * Implementations may throw {@link ConcurrentModificationException} from -141 * Stream methods if they detect a conflict while the Stream is active. -142 * -143 * @since 0.3.0-incubating -144 * @return A {@link Stream} over all of the triples in the graph -145 */ -146Stream? extends Triple stream(); -147 -148/** -149 * Get all triples contained by the graph matched with the pattern. -150 * p -151 * The iteration does not contain any duplicate triples, as determined by -152 * the {@link Triple#equals(Object)} method for each {@link Triple}. -153 * p -154 * The behaviour of the {@link Stream} is not specified if -155 * {@link #add(Triple)}, {@link #remove(Triple)} or {@link #clear()} are -156 * called on the {@link Graph} before it terminates. -157 * p -158 * Implementations may throw {@link ConcurrentModificationException} from -159 * Stream methods if they detect a conflict while
svn commit: r1001279 [16/16] - in /websites/production/commonsrdf/content/commons-rdf-api: ./ apidocs/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apache/commons/rdf/api/class-use/ apidocs/org/apa
Modified: websites/production/commonsrdf/content/commons-rdf-api/xref/org/apache/commons/rdf/api/Quad.html == --- websites/production/commonsrdf/content/commons-rdf-api/xref/org/apache/commons/rdf/api/Quad.html (original) +++ websites/production/commonsrdf/content/commons-rdf-api/xref/org/apache/commons/rdf/api/Quad.html Thu Nov 17 14:48:10 2016 @@ -86,164 +86,168 @@ 78 * @see a href="https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-dataset"RDF- 79 * 1.1 Dataset/a 80 */ -81 OptionalBlankNodeOrIRI getGraphName(); -82 -83 /** -84 * The subject of this quad, which may be either a {@link BlankNode} or an -85 * {@link IRI}, which are represented in Commons RDF by the interface -86 * {@link BlankNodeOrIRI}. -87 * -88 * @return The subject {@link BlankNodeOrIRI} of this quad. -89 * @see a href="http://www.w3.org/TR/rdf11-concepts/; target="alexandria_uri">http://www.w3.org/TR/rdf11-concepts/#dfn-subject"RDF-1.1 -90 * Triple subject/a -91 */ -92 BlankNodeOrIRI getSubject(); -93 -94 /** -95 * The predicate {@link IRI} of this quad. -96 * -97 * @return The predicate {@link IRI} of this quad. -98 * @see a href="http://www.w3.org/TR/rdf11-concepts/; target="alexandria_uri">http://www.w3.org/TR/rdf11-concepts/#dfn-predicate"RDF-1.1 -99 * Triple predicate/a -100 */ -101 IRI getPredicate(); -102 -103 /** -104 * The object of this quad, which may be either a {@link BlankNode}, an -105 * {@link IRI}, or a {@link Literal}, which are represented in Commons RDF -106 * by the interface {@link RDFTerm}. -107 * -108 * @return The object {@link RDFTerm} of this quad. -109 * @see a href="http://www.w3.org/TR/rdf11-concepts/; target="alexandria_uri">http://www.w3.org/TR/rdf11-concepts/#dfn-object"RDF-1.1 -110 * Triple object/a -111 */ -112 RDFTerm getObject(); -113 -114 /** -115 * Adapt this Quad to a Triple. -116 * p -117 * The returned {@link Triple} will have equivalent values returned from the -118 * methods {@link TripleLike#getSubject()}, -119 * {@link TripleLike#getPredicate()} and {@link TripleLike#getObject()}. +81 @Override +82 OptionalBlankNodeOrIRI getGraphName(); +83 +84 /** +85 * The subject of this quad, which may be either a {@link BlankNode} or an +86 * {@link IRI}, which are represented in Commons RDF by the interface +87 * {@link BlankNodeOrIRI}. +88 * +89 * @return The subject {@link BlankNodeOrIRI} of this quad. +90 * @see a href="http://www.w3.org/TR/rdf11-concepts/; target="alexandria_uri">http://www.w3.org/TR/rdf11-concepts/#dfn-subject"RDF-1.1 +91 * Triple subject/a +92 */ +93 @Override +94 BlankNodeOrIRI getSubject(); +95 +96 /** +97 * The predicate {@link IRI} of this quad. +98 * +99 * @return The predicate {@link IRI} of this quad. +100 * @see a href="http://www.w3.org/TR/rdf11-concepts/; target="alexandria_uri">http://www.w3.org/TR/rdf11-concepts/#dfn-predicate"RDF-1.1 +101 * Triple predicate/a +102 */ +103 @Override +104 IRI getPredicate(); +105 +106 /** +107 * The object of this quad, which may be either a {@link BlankNode}, an +108 * {@link IRI}, or a {@link Literal}, which are represented in Commons RDF +109 * by the interface {@link RDFTerm}. +110 * +111 * @return The object {@link RDFTerm} of this quad. +112 * @see a href="http://www.w3.org/TR/rdf11-concepts/; target="alexandria_uri">http://www.w3.org/TR/rdf11-concepts/#dfn-object"RDF-1.1 +113 * Triple object/a +114 */ +115 @Override +116 RDFTerm getObject(); +117 +118 /** +119 * Adapt this Quad to a Triple. 120 * p -121 * The returned {@link Triple} MUST NOT be {@link #equals(Object)} to this -122 * {@link Quad}, even if this quad has a default graph -123 * {@link #getGraphName()} value of {@link Optional#empty()}, but MUST -124 * follow the {@link Triple#equals(Object)} semantics. This means that the -125 * following MUST be true: -126 * -127 * pre -128 * Quad q1, q2; -129 * if (q1.equals(q2)) { -130 * assert (q1.asTriple().equals(q2.asTriple())); -131 * } else if (q1.asTriple().equals(q2.asTriple())) { -132 * assert (q1.getSubject().equals(q2.getSubject())); -133 * assert (q1.getPredicate().equals(q2.getPredicate())); -134 * assert (q1.getObject().equals(q2.getObject())); -135 * assert (!q1.getGraphName().equals(q2.getGraphName())); -136 * } -137 * /pre -138 * -139 * The codedefault/code implementation of this method return a proxy -140 * {@link Triple} instance that keeps a
svn commit: r1001279 [2/16] - in /websites/production/commonsrdf/content/commons-rdf-api: ./ apidocs/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apache/commons/rdf/api/class-use/ apidocs/org/apac
Modified: websites/production/commonsrdf/content/commons-rdf-api/apidocs/org/apache/commons/rdf/api/RDFSyntax.html == --- websites/production/commonsrdf/content/commons-rdf-api/apidocs/org/apache/commons/rdf/api/RDFSyntax.html (original) +++ websites/production/commonsrdf/content/commons-rdf-api/apidocs/org/apache/commons/rdf/api/RDFSyntax.html Thu Nov 17 14:48:10 2016 @@ -4,7 +4,7 @@ -RDFSyntax (Commons RDF API 0.3.0-incubating API) +RDFSyntax (Commons RDF API 0.4.0-incubating-SNAPSHOT API) @@ -12,7 +12,7 @@Copyright © 2015–2016 https://www.apache.org/">The Apache Software Foundation. All rights reserved.