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 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>BlankNodeOrIRI (Commons RDF 0.4.0-incubating-SNAPSHOT API)</title> +<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> +<script type="text/javascript" src="../../../../../script.js"></script> +</head> +<body> +<script type="text/javascript"><!-- + try { + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="BlankNodeOrIRI (Commons RDF 0.4.0-incubating-SNAPSHOT API)"; + } + } + catch(err) { + } +//--> +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="topNav"><a name="navbar.top"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.top.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/BlankNodeOrIRI.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../../org/apache/commons/rdf/api/Dataset.html" title="interface in org.apache.commons.rdf.api"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/commons/rdf/api/BlankNodeOrIRI.html" target="_top">Frames</a></li> +<li><a href="BlankNodeOrIRI.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li>Constr | </li> +<li>Method</li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li>Constr | </li> +<li>Method</li> +</ul> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<!-- ======== START OF CLASS DATA ======== --> +<div class="header"> +<div class="subTitle">org.apache.commons.rdf.api</div> +<h2 title="Interface BlankNodeOrIRI" class="title">Interface BlankNodeOrIRI</h2> +</div> +<div class="contentContainer"> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<dl> +<dt>All Superinterfaces:</dt> +<dd><a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api">RDFTerm</a></dd> +</dl> +<dl> +<dt>All Known Subinterfaces:</dt> +<dd><a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api">BlankNode</a>, <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a></dd> +</dl> +<hr> +<br> +<pre>public interface <a href="../../../../../src-html/org/apache/commons/rdf/api/BlankNodeOrIRI.html#line.27">BlankNodeOrIRI</a> +extends <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api">RDFTerm</a></pre> +<div class="block">This interface represents the <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api"><code>RDFTerm</code></a>s that may be used in the + subject position of an RDF-1.1 <a href="../../../../../org/apache/commons/rdf/api/Triple.html" title="interface in org.apache.commons.rdf.api"><code>Triple</code></a> as well as the graph name + position of a <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api"><code>Quad</code></a>. + <p> + Instances of BlankNodeOrIRI SHOULD be a <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a> or an <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api"><code>IRI</code></a>.</div> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- ========== METHOD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.org.apache.commons.rdf.api.RDFTerm"> +<!-- --> +</a> +<h3>Methods inherited from interface org.apache.commons.rdf.api.<a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api">RDFTerm</a></h3> +<code><a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html#equals-java.lang.Object-">equals</a>, <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html#hashCode--">hashCode</a>, <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html#ntriplesString--">ntriplesString</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +</div> +<!-- ========= END OF CLASS DATA ========= --> +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<div class="bottomNav"><a name="navbar.bottom"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.bottom.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/BlankNodeOrIRI.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../../org/apache/commons/rdf/api/Dataset.html" title="interface in org.apache.commons.rdf.api"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/commons/rdf/api/BlankNodeOrIRI.html" target="_top">Frames</a></li> +<li><a href="BlankNodeOrIRI.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_bottom"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_bottom"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li>Constr | </li> +<li>Method</li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li>Constr | </li> +<li>Method</li> +</ul> +</div> +<a name="skip.navbar.bottom"> +<!-- --> +</a></div> +<!-- ======== END OF BOTTOM NAVBAR ======= --> +<p class="legalCopy"><small>Copyright © 2015–2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> +</body> +</html> \ 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 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>Dataset (Commons RDF 0.4.0-incubating-SNAPSHOT API)</title> +<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> +<script type="text/javascript" src="../../../../../script.js"></script> +</head> +<body> +<script type="text/javascript"><!-- + try { + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="Dataset (Commons RDF 0.4.0-incubating-SNAPSHOT API)"; + } + } + catch(err) { + } +//--> +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"; +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="topNav"><a name="navbar.top"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.top.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/Dataset.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/commons/rdf/api/Dataset.html" target="_top">Frames</a></li> +<li><a href="Dataset.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<!-- ======== START OF CLASS DATA ======== --> +<div class="header"> +<div class="subTitle">org.apache.commons.rdf.api</div> +<h2 title="Interface Dataset" class="title">Interface Dataset</h2> +</div> +<div class="contentContainer"> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<dl> +<dt>All Superinterfaces:</dt> +<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a>, <a href="../../../../../org/apache/commons/rdf/api/GraphLike.html" title="interface in org.apache.commons.rdf.api">GraphLike</a><<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>></dd> +</dl> +<hr> +<br> +<pre>public interface <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.34">Dataset</a> +extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a>, <a href="../../../../../org/apache/commons/rdf/api/GraphLike.html" title="interface in org.apache.commons.rdf.api">GraphLike</a><<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>></pre> +<div class="block">An <a href="http://www.w3.org/TR/rdf11-concepts/#section-rdf-dataset"> RDF + 1.1 dataset</a>, a set of RDF quads, as defined by + <a href="http://www.w3.org/TR/rdf11-concepts/" >RDF-1.1 Concepts and Abstract + Syntax</a>, a W3C Recommendation published on 25 February 2014.</div> +<dl> +<dt><span class="simpleTagLabel">Since:</span></dt> +<dd>0.3.0-incubating</dd> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../../org/apache/commons/rdf/api/RDF.html#createDataset--"><code>RDF.createDataset()</code></a></dd> +</dl> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- ========== METHOD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t5" class="tableTab"><span><a href="javascript:show(16);">Default Methods</a></span><span class="tabEnd"> </span></span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Method and Description</th> +</tr> +<tr id="i0" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#add-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.IRI-org.apache.commons.rdf.api.RDFTerm-">add</a></span>(<a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a> graphName, + <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a> subject, + <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> predicate, + <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api">RDFTerm</a> object)</code> +<div class="block">Add a quad to the dataset, possibly mapping any of the components to + those supported by this dataset.</div> +</td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#add-org.apache.commons.rdf.api.Quad-">add</a></span>(<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a> quad)</code> +<div class="block">Add a quad to the dataset, possibly mapping any of the components of the + Quad to those supported by this dataset.</div> +</td> +</tr> +<tr id="i2" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#clear--">clear</a></span>()</code> +<div class="block">Clear the dataset, removing all quads.</div> +</td> +</tr> +<tr id="i3" class="rowColor"> +<td class="colFirst"><code>default void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#close--">close</a></span>()</code> +<div class="block">Close the dataset, relinquishing any underlying resources.</div> +</td> +</tr> +<tr id="i4" class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#contains-java.util.Optional-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.IRI-org.apache.commons.rdf.api.RDFTerm-">contains</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a><<a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a>> graphName, + <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a> subject, + <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> predicate, + <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api">RDFTerm</a> object)</code> +<div class="block">Check if dataset contains a pattern of quads.</div> +</td> +</tr> +<tr id="i5" class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#contains-org.apache.commons.rdf.api.Quad-">contains</a></span>(<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a> quad)</code> +<div class="block">Check if dataset contains quad.</div> +</td> +</tr> +<tr id="i6" class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api">Graph</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#getGraph--">getGraph</a></span>()</code> +<div class="block">Get the default graph of this dataset.</div> +</td> +</tr> +<tr id="i7" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a><<a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api">Graph</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#getGraph-org.apache.commons.rdf.api.BlankNodeOrIRI-">getGraph</a></span>(<a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a> graphName)</code> +<div class="block">Get a named graph in this dataset.</div> +</td> +</tr> +<tr id="i8" class="altColor"> +<td class="colFirst"><code><a href="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</a><<a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#getGraphNames--">getGraphNames</a></span>()</code> +<div class="block">Get the graph names in this Dataset.</div> +</td> +</tr> +<tr id="i9" class="rowColor"> +<td class="colFirst"><code>default <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#iterate--">iterate</a></span>()</code> +<div class="block">Get an Iterable for iterating over all quads in the dataset.</div> +</td> +</tr> +<tr id="i10" class="altColor"> +<td class="colFirst"><code>default <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#iterate-java.util.Optional-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.IRI-org.apache.commons.rdf.api.RDFTerm-">iterate</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a><<a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a>> graphName, + <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a> subject, + <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> predicate, + <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api">RDFTerm</a> object)</code> +<div class="block">Get an Iterable for iterating over the quads in the dataset that match + the pattern.</div> +</td> +</tr> +<tr id="i11" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#remove-java.util.Optional-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.IRI-org.apache.commons.rdf.api.RDFTerm-">remove</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a><<a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a>> graphName, + <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a> subject, + <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> predicate, + <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api">RDFTerm</a> object)</code> +<div class="block">Remove a concrete pattern of quads from the default graph of the dataset.</div> +</td> +</tr> +<tr id="i12" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#remove-org.apache.commons.rdf.api.Quad-">remove</a></span>(<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a> quad)</code> +<div class="block">Remove a concrete quad from the dataset.</div> +</td> +</tr> +<tr id="i13" class="rowColor"> +<td class="colFirst"><code>long</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#size--">size</a></span>()</code> +<div class="block">Number of quads contained by the dataset.</div> +</td> +</tr> +<tr id="i14" class="altColor"> +<td class="colFirst"><code><a href="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</a><? extends <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#stream--">stream</a></span>()</code> +<div class="block">Get all quads contained by the dataset.<br></div> +</td> +</tr> +<tr id="i15" class="rowColor"> +<td class="colFirst"><code><a href="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</a><? extends <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#stream-java.util.Optional-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.IRI-org.apache.commons.rdf.api.RDFTerm-">stream</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a><<a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a>> graphName, + <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a> subject, + <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> predicate, + <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api">RDFTerm</a> object)</code> +<div class="block">Get all quads contained by the dataset matched with the pattern.</div> +</td> +</tr> +</table> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="add-org.apache.commons.rdf.api.Quad-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>add</h4> +<pre>void <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.44">add</a>(<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a> quad)</pre> +<div class="block">Add a quad to the dataset, possibly mapping any of the components of the + Quad to those supported by this dataset.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/GraphLike.html#add-T-">add</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/GraphLike.html" title="interface in org.apache.commons.rdf.api">GraphLike</a><<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>quad</code> - The quad to add</dd> +</dl> +</li> +</ul> +<a name="add-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.IRI-org.apache.commons.rdf.api.RDFTerm-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>add</h4> +<pre>void <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.60">add</a>(<a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a> graphName, + <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a> subject, + <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> predicate, + <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api">RDFTerm</a> object)</pre> +<div class="block">Add a quad to the dataset, possibly mapping any of the components to + those supported by this dataset.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>graphName</code> - The graph the quad belongs to, or <code>null</code> for the + default graph</dd> +<dd><code>subject</code> - The quad subject</dd> +<dd><code>predicate</code> - The quad predicate</dd> +<dd><code>object</code> - The quad object</dd> +</dl> +</li> +</ul> +<a name="contains-org.apache.commons.rdf.api.Quad-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>contains</h4> +<pre>boolean <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.70">contains</a>(<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a> quad)</pre> +<div class="block">Check if dataset contains quad.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/GraphLike.html#contains-T-">contains</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/GraphLike.html" title="interface in org.apache.commons.rdf.api">GraphLike</a><<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>quad</code> - The quad to check.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>True if the dataset contains the given Quad.</dd> +</dl> +</li> +</ul> +<a name="contains-java.util.Optional-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.IRI-org.apache.commons.rdf.api.RDFTerm-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>contains</h4> +<pre>boolean <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.88">contains</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a><<a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a>> graphName, + <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a> subject, + <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> predicate, + <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api">RDFTerm</a> object)</pre> +<div class="block">Check if dataset contains a pattern of quads.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>graphName</code> - The graph the quad belongs to, wrapped as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a> + (<code>null</code> is a wildcard, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#empty--" title="class or interface in java.util"><code>Optional.empty()</code></a> is + the default graph)</dd> +<dd><code>subject</code> - The quad subject (<code>null</code> is a wildcard)</dd> +<dd><code>predicate</code> - The quad predicate (<code>null</code> is a wildcard)</dd> +<dd><code>object</code> - The quad object (<code>null</code> is a wildcard)</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>True if the dataset contains any quads that match the given + pattern.</dd> +</dl> +</li> +</ul> +<a name="close--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>close</h4> +<pre>default void <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.103">close</a>() + throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre> +<div class="block">Close the dataset, relinquishing any underlying resources. + <p> + For example, this would close any open file and network streams and free + database locks held by the dataset implementation. + <p> + The behaviour of the other dataset methods are undefined after closing + the dataset. + <p> + Implementations might not need <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#close--"><code>close()</code></a>, hence the default + implementation does nothing.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true#close--" title="class or interface in java.lang">close</a></code> in interface <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></code></dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd> +</dl> +</li> +</ul> +<a name="getGraph--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getGraph</h4> +<pre><a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api">Graph</a> <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.121">getGraph</a>()</pre> +<div class="block">Get the default graph of this dataset. + <p> + The <a href="../../../../../org/apache/commons/rdf/api/Triple.html" title="interface in org.apache.commons.rdf.api"><code>Triple</code></a>s of the default graph are equivalent to the + <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api"><code>Quad</code></a>s in this Dataset which has the <a href="../../../../../org/apache/commons/rdf/api/Quad.html#getGraphName--"><code>Quad.getGraphName()</code></a> + set to <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#empty--" title="class or interface in java.util"><code>Optional.empty()</code></a>. + <p> + It is unspecified if modifications to the returned Graph are reflected in + this Dataset. + <p> + The returned graph MAY be empty.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The default graph of this Dataset</dd> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#getGraph-org.apache.commons.rdf.api.BlankNodeOrIRI-"><code>getGraph(BlankNodeOrIRI)</code></a></dd> +</dl> +</li> +</ul> +<a name="getGraph-org.apache.commons.rdf.api.BlankNodeOrIRI-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getGraph</h4> +<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a><<a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api">Graph</a>> <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.145">getGraph</a>(<a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a> graphName)</pre> +<div class="block">Get a named graph in this dataset. + <p> + The <a href="../../../../../org/apache/commons/rdf/api/Triple.html" title="interface in org.apache.commons.rdf.api"><code>Triple</code></a>s of the named graph are equivalent to the the Quads of + this Dataset which has the <a href="../../../../../org/apache/commons/rdf/api/Quad.html#getGraphName--"><code>Quad.getGraphName()</code></a> equal to the + provided <code>graphName</code>, or equal to <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#empty--" title="class or interface in java.util"><code>Optional.empty()</code></a> if + the provided <code>graphName</code> is <code>null</code>. + <p> + It is unspecified if modifications to the returned Graph are reflected in + this Dataset. + <p> + It is unspecified if requesting an unknown or empty graph will return + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#empty--" title="class or interface in java.util"><code>Optional.empty()</code></a> or create a new empty <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a>.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>graphName</code> - The name of the graph, or <code>null</code> for the default + graph.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The named Graph, or <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#empty--" title="class or interface in java.util"><code>Optional.empty()</code></a> if the dataset do + not contain the named graph.</dd> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../../org/apache/commons/rdf/api/Dataset.html#getGraph--"><code>getGraph()</code></a>, +<a href="../../../../../org/apache/commons/rdf/api/Dataset.html#getGraphNames--"><code>getGraphNames()</code></a></dd> +</dl> +</li> +</ul> +<a name="getGraphNames--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getGraphNames</h4> +<pre><a href="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</a><<a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a>> <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.168">getGraphNames</a>()</pre> +<div class="block">Get the graph names in this Dataset. + <p> + The set of returned graph names is equivalent to the set of unique + <a href="../../../../../org/apache/commons/rdf/api/Quad.html#getGraphName--"><code>Quad.getGraphName()</code></a> of all the <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#stream--"><code>stream()</code></a> of this dataset + (excluding the default graph). + <p> + The returned <a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html?is-external=true" title="class or interface in java.util.stream"><code>Stream</code></a> SHOULD NOT contain duplicate graph names. + <p> + The graph names can be used with <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#getGraph-org.apache.commons.rdf.api.BlankNodeOrIRI-"><code>getGraph(BlankNodeOrIRI)</code></a> to + retrieve the corresponding <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a>, however callers should be aware + of any concurrent modifications to the Dataset may cause such calls to + return <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#empty--" title="class or interface in java.util"><code>Optional.empty()</code></a>. + <p> + Note that a Dataset always contains a <strong>default graph</strong> + which is not named, and thus is not represented in the returned Stream. + The default graph is accessible via <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#getGraph--"><code>getGraph()</code></a> or by using + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#empty--" title="class or interface in java.util"><code>Optional.empty()</code></a> in the Quad access methods).</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A <a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html?is-external=true" title="class or interface in java.util.stream"><code>Stream</code></a> of the graph names of this Dataset.</dd> +</dl> +</li> +</ul> +<a name="remove-org.apache.commons.rdf.api.Quad-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>remove</h4> +<pre>void <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.177">remove</a>(<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a> quad)</pre> +<div class="block">Remove a concrete quad from the dataset.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/GraphLike.html#remove-T-">remove</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/GraphLike.html" title="interface in org.apache.commons.rdf.api">GraphLike</a><<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>quad</code> - quad to remove</dd> +</dl> +</li> +</ul> +<a name="remove-java.util.Optional-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.IRI-org.apache.commons.rdf.api.RDFTerm-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>remove</h4> +<pre>void <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.193">remove</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a><<a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a>> graphName, + <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a> subject, + <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> predicate, + <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api">RDFTerm</a> object)</pre> +<div class="block">Remove a concrete pattern of quads from the default graph of the dataset.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>graphName</code> - The graph the quad belongs to, wrapped as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a> + (<code>null</code> is a wildcard, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#empty--" title="class or interface in java.util"><code>Optional.empty()</code></a> is + the default graph)</dd> +<dd><code>subject</code> - The quad subject (<code>null</code> is a wildcard)</dd> +<dd><code>predicate</code> - The quad predicate (<code>null</code> is a wildcard)</dd> +<dd><code>object</code> - The quad object (<code>null</code> is a wildcard)</dd> +</dl> +</li> +</ul> +<a name="clear--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>clear</h4> +<pre>void <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.199">clear</a>()</pre> +<div class="block">Clear the dataset, removing all quads.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/GraphLike.html#clear--">clear</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/GraphLike.html" title="interface in org.apache.commons.rdf.api">GraphLike</a><<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>></code></dd> +</dl> +</li> +</ul> +<a name="size--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>size</h4> +<pre>long <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.210">size</a>()</pre> +<div class="block">Number of quads contained by the dataset. + <p> + The count of a set does not include duplicates, consistent with the + <a href="../../../../../org/apache/commons/rdf/api/Quad.html#equals-java.lang.Object-"><code>Quad.equals(Object)</code></a> equals method for each <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api"><code>Quad</code></a>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/GraphLike.html#size--">size</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/GraphLike.html" title="interface in org.apache.commons.rdf.api">GraphLike</a><<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The number of quads in the dataset</dd> +</dl> +</li> +</ul> +<a name="stream--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>stream</h4> +<pre><a href="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</a><? extends <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>> <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.228">stream</a>()</pre> +<div class="block">Get all quads contained by the dataset.<br> + <p> + The iteration does not contain any duplicate quads, as determined by the + <a href="../../../../../org/apache/commons/rdf/api/Quad.html#equals-java.lang.Object-"><code>Quad.equals(Object)</code></a> method for each <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api"><code>Quad</code></a>. + <p> + The behaviour of the <a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html?is-external=true" title="class or interface in java.util.stream"><code>Stream</code></a> is not specified if + <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#add-org.apache.commons.rdf.api.Quad-"><code>add(Quad)</code></a>, <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#remove-org.apache.commons.rdf.api.Quad-"><code>remove(Quad)</code></a> or <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#clear--"><code>clear()</code></a> are called + on the <a href="../../../../../org/apache/commons/rdf/api/Dataset.html" title="interface in org.apache.commons.rdf.api"><code>Dataset</code></a> before it terminates. + <p> + Implementations may throw <a href="https://docs.oracle.com/javase/8/docs/api/java/util/ConcurrentModificationException.html?is-external=true" title="class or interface in java.util"><code>ConcurrentModificationException</code></a> from + Stream methods if they detect a conflict while the Stream is active.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/GraphLike.html#stream--">stream</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/GraphLike.html" title="interface in org.apache.commons.rdf.api">GraphLike</a><<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A <a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html?is-external=true" title="class or interface in java.util.stream"><code>Stream</code></a> over all of the quads in the dataset</dd> +</dl> +</li> +</ul> +<a name="stream-java.util.Optional-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.IRI-org.apache.commons.rdf.api.RDFTerm-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>stream</h4> +<pre><a href="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</a><? extends <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>> <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.255">stream</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a><<a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a>> graphName, + <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a> subject, + <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> predicate, + <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api">RDFTerm</a> object)</pre> +<div class="block">Get all quads contained by the dataset matched with the pattern. + <p> + The iteration does not contain any duplicate quads, as determined by the + <a href="../../../../../org/apache/commons/rdf/api/Quad.html#equals-java.lang.Object-"><code>Quad.equals(Object)</code></a> method for each <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api"><code>Quad</code></a>. + <p> + The behaviour of the <a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html?is-external=true" title="class or interface in java.util.stream"><code>Stream</code></a> is not specified if + <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#add-org.apache.commons.rdf.api.Quad-"><code>add(Quad)</code></a>, <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#remove-org.apache.commons.rdf.api.Quad-"><code>remove(Quad)</code></a> or <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#clear--"><code>clear()</code></a> are called + on the <a href="../../../../../org/apache/commons/rdf/api/Dataset.html" title="interface in org.apache.commons.rdf.api"><code>Dataset</code></a> before it terminates. + <p> + Implementations may throw <a href="https://docs.oracle.com/javase/8/docs/api/java/util/ConcurrentModificationException.html?is-external=true" title="class or interface in java.util"><code>ConcurrentModificationException</code></a> from + Stream methods if they detect a conflict while the Stream is active.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>graphName</code> - The graph the quad belongs to, wrapped as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a> + (<code>null</code> is a wildcard, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#empty--" title="class or interface in java.util"><code>Optional.empty()</code></a> is + the default graph)</dd> +<dd><code>subject</code> - The quad subject (<code>null</code> is a wildcard)</dd> +<dd><code>predicate</code> - The quad predicate (<code>null</code> is a wildcard)</dd> +<dd><code>object</code> - The quad object (<code>null</code> is a wildcard)</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A <a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html?is-external=true" title="class or interface in java.util.stream"><code>Stream</code></a> over the matched quads.</dd> +</dl> +</li> +</ul> +<a name="iterate--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>iterate</h4> +<pre>default <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>> <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.295">iterate</a>() + throws <a href="https://docs.oracle.com/javase/8/docs/api/java/util/ConcurrentModificationException.html?is-external=true" title="class or interface in java.util">ConcurrentModificationException</a>, + <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></pre> +<div class="block">Get an Iterable for iterating over all quads in the dataset. + <p> + This method is meant to be used with a Java for-each loop, e.g.: + + <pre> + for (Quad t : dataset.iterate()) { + System.out.println(t); + } + </pre> + + The behaviour of the iterator is not specified if <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#add-org.apache.commons.rdf.api.Quad-"><code>add(Quad)</code></a>, + <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#remove-org.apache.commons.rdf.api.Quad-"><code>remove(Quad)</code></a> or <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#clear--"><code>clear()</code></a>, are called on the + <a href="../../../../../org/apache/commons/rdf/api/Dataset.html" title="interface in org.apache.commons.rdf.api"><code>Dataset</code></a> before it terminates. It is undefined if the returned + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util"><code>Iterator</code></a> supports the <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true#remove--" title="class or interface in java.util"><code>Iterator.remove()</code></a> method. + <p> + Implementations may throw <a href="https://docs.oracle.com/javase/8/docs/api/java/util/ConcurrentModificationException.html?is-external=true" title="class or interface in java.util"><code>ConcurrentModificationException</code></a> from + Iterator methods if they detect a concurrency conflict while the Iterator + is active. + <p> + The <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true#iterator--" title="class or interface in java.lang"><code>Iterable.iterator()</code></a> must only be called once, that is the + Iterable must only be iterated over once. A <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang"><code>IllegalStateException</code></a> + may be thrown on attempt to reuse the Iterable. + <p> + The default implementation of this method will call <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#stream--"><code>stream()</code></a> to + return its <a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/BaseStream.html?is-external=true#iterator--" title="class or interface in java.util.stream"><code>BaseStream.iterator()</code></a>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/GraphLike.html#iterate--">iterate</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/GraphLike.html" title="interface in org.apache.commons.rdf.api">GraphLike</a><<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang"><code>Iterable</code></a> that returns <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util"><code>Iterator</code></a> over all of the + quads in the dataset</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - if the <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang"><code>Iterable</code></a> has been reused</dd> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/ConcurrentModificationException.html?is-external=true" title="class or interface in java.util">ConcurrentModificationException</a></code> - if a concurrency conflict occurs while the Iterator is + active.</dd> +</dl> +</li> +</ul> +<a name="iterate-java.util.Optional-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.IRI-org.apache.commons.rdf.api.RDFTerm-"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>iterate</h4> +<pre>default <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>> <a href="../../../../../src-html/org/apache/commons/rdf/api/Dataset.html#line.350">iterate</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util">Optional</a><<a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a>> graphName, + <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a> subject, + <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> predicate, + <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api">RDFTerm</a> object) + throws <a href="https://docs.oracle.com/javase/8/docs/api/java/util/ConcurrentModificationException.html?is-external=true" title="class or interface in java.util">ConcurrentModificationException</a>, + <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></pre> +<div class="block">Get an Iterable for iterating over the quads in the dataset that match + the pattern. + <p> + This method is meant to be used with a Java for-each loop, e.g.: + + <pre> + IRI alice = factory.createIRI("http://example.com/alice"); + IRI knows = factory.createIRI("http://xmlns.com/foaf/0.1/"); + for (Quad t : dataset.iterate(null, alice, knows, null)) { + System.out.println(t.getGraphName()); + System.out.println(t.getObject()); + } + </pre> + <p> + The behaviour of the iterator is not specified if <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#add-org.apache.commons.rdf.api.Quad-"><code>add(Quad)</code></a>, + <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#remove-org.apache.commons.rdf.api.Quad-"><code>remove(Quad)</code></a> or <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#clear--"><code>clear()</code></a>, are called on the + <a href="../../../../../org/apache/commons/rdf/api/Dataset.html" title="interface in org.apache.commons.rdf.api"><code>Dataset</code></a> before it terminates. It is undefined if the returned + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util"><code>Iterator</code></a> supports the <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true#remove--" title="class or interface in java.util"><code>Iterator.remove()</code></a> method. + <p> + Implementations may throw <a href="https://docs.oracle.com/javase/8/docs/api/java/util/ConcurrentModificationException.html?is-external=true" title="class or interface in java.util"><code>ConcurrentModificationException</code></a> from + Iterator methods if they detect a concurrency conflict while the Iterator + is active. + <p> + The <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true#iterator--" title="class or interface in java.lang"><code>Iterable.iterator()</code></a> must only be called once, that is the + Iterable must only be iterated over once. A <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang"><code>IllegalStateException</code></a> + may be thrown on attempt to reuse the Iterable. + <p> + The default implementation of this method will call + <a href="../../../../../org/apache/commons/rdf/api/Dataset.html#stream-java.util.Optional-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.IRI-org.apache.commons.rdf.api.RDFTerm-"><code>stream(Optional, BlankNodeOrIRI, IRI, RDFTerm)</code></a> to return its + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/BaseStream.html?is-external=true#iterator--" title="class or interface in java.util.stream"><code>BaseStream.iterator()</code></a>.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>graphName</code> - The graph the quad belongs to, wrapped as an <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true" title="class or interface in java.util"><code>Optional</code></a> + (<code>null</code> is a wildcard, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#empty--" title="class or interface in java.util"><code>Optional.empty()</code></a> is + the default graph)</dd> +<dd><code>subject</code> - The quad subject (<code>null</code> is a wildcard)</dd> +<dd><code>predicate</code> - The quad predicate (<code>null</code> is a wildcard)</dd> +<dd><code>object</code> - The quad object (<code>null</code> is a wildcard)</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang"><code>Iterable</code></a> that returns <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util"><code>Iterator</code></a> over the + matching quads in the dataset</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - if the <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang"><code>Iterable</code></a> has been reused</dd> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/ConcurrentModificationException.html?is-external=true" title="class or interface in java.util">ConcurrentModificationException</a></code> - if a concurrency conflict occurs while the Iterator is + active.</dd> +</dl> +</li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +</div> +<!-- ========= END OF CLASS DATA ========= --> +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<div class="bottomNav"><a name="navbar.bottom"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.bottom.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/Dataset.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/commons/rdf/api/Dataset.html" target="_top">Frames</a></li> +<li><a href="Dataset.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_bottom"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_bottom"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.bottom"> +<!-- --> +</a></div> +<!-- ======== END OF BOTTOM NAVBAR ======= --> +<p class="legalCopy"><small>Copyright © 2015–2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> +</body> +</html> \ No newline at end of file