Added: websites/staging/commonsrdf/trunk/apidocs/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html ============================================================================== --- websites/staging/commonsrdf/trunk/apidocs/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html (added) +++ websites/staging/commonsrdf/trunk/apidocs/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html Thu Nov 17 14:31:21 2016 @@ -0,0 +1,1484 @@ +<!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>AbstractRDFParser (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="AbstractRDFParser (Commons RDF 0.4.0-incubating-SNAPSHOT API)"; + } + } + catch(err) { + } +//--> +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":9,"i23":10,"i24":6,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10}; +var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete 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/AbstractRDFParser.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>Prev Class</li> +<li><a href="../../../../../../org/apache/commons/rdf/simple/experimental/RDFParseException.html" title="class in org.apache.commons.rdf.simple.experimental"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../../index.html?org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" target="_top">Frames</a></li> +<li><a href="AbstractRDFParser.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><a href="#field.summary">Field</a> | </li> +<li><a href="#constructor.summary">Constr</a> | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li><a href="#field.detail">Field</a> | </li> +<li><a href="#constructor.detail">Constr</a> | </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.simple.experimental</div> +<h2 title="Class AbstractRDFParser" class="title">Class AbstractRDFParser<T extends AbstractRDFParser<T>></h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> +<li> +<ul class="inheritance"> +<li>org.apache.commons.rdf.simple.experimental.AbstractRDFParser<T></li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<dl> +<dt>All Implemented Interfaces:</dt> +<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a>, <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental">RDFParser</a></dd> +</dl> +<hr> +<br> +<pre>public abstract class <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.59">AbstractRDFParser</a><T extends AbstractRDFParser<T>> +extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> +implements <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental">RDFParser</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a></pre> +<div class="block">Abstract RDFParser + <p> + This abstract class keeps the properties in protected fields like + <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#sourceFile"><code>sourceFile</code></a> using <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>. Some basic checking like + <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#checkIsAbsolute-org.apache.commons.rdf.api.IRI-"><code>checkIsAbsolute(IRI)</code></a> is performed. + <p> + This class and its subclasses are <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang"><code>Cloneable</code></a>, immutable and + (therefore) thread-safe - each call to option methods like + <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#contentType-java.lang.String-"><code>contentType(String)</code></a> or <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#source-org.apache.commons.rdf.api.IRI-"><code>source(IRI)</code></a> will return a cloned, + mutated copy. + <p> + By default, parsing is done by the abstract method + <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#parseSynchronusly--"><code>parseSynchronusly()</code></a> - which is executed in a cloned snapshot - hence + multiple <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#parse--"><code>parse()</code></a> calls are thread-safe. The default <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#parse--"><code>parse()</code></a> + uses a thread pool in <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#threadGroup"><code>threadGroup</code></a> - but implementations can override + <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#parse--"><code>parse()</code></a> (e.g. because it has its own threading model or use + asynchronous remote execution).</div> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- ======== NESTED CLASS SUMMARY ======== --> +<ul class="blockList"> +<li class="blockList"><a name="nested.class.summary"> +<!-- --> +</a> +<h3>Nested Class Summary</h3> +<ul class="blockList"> +<li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.commons.rdf.experimental.RDFParser"> +<!-- --> +</a> +<h3>Nested classes/interfaces inherited from interface org.apache.commons.rdf.experimental.<a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental">RDFParser</a></h3> +<code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.ParseResult.html" title="interface in org.apache.commons.rdf.experimental">RDFParser.ParseResult</a></code></li> +</ul> +</li> +</ul> +<!-- =========== FIELD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="field.summary"> +<!-- --> +</a> +<h3>Field Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> +<caption><span>Fields</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Field and Description</th> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ThreadGroup.html?is-external=true" title="class or interface in java.lang">ThreadGroup</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#threadGroup">threadGroup</a></span></code> </td> +</tr> +</table> +</li> +</ul> +<!-- ======== CONSTRUCTOR SUMMARY ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor.summary"> +<!-- --> +</a> +<h3>Constructor Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> +<caption><span>Constructors</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colOne" scope="col">Constructor and Description</th> +</tr> +<tr class="altColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#AbstractRDFParser--">AbstractRDFParser</a></span>()</code> </td> +</tr> +</table> +</li> +</ul> +<!-- ========== 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="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></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="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete 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>protected <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#asT--">asT</a></span>()</code> </td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#base-org.apache.commons.rdf.api.IRI-">base</a></span>(<a href="../../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> base)</code> +<div class="block">Specify a base IRI to use for parsing any relative IRI references.</div> +</td> +</tr> +<tr id="i2" class="altColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#base-java.lang.String-">base</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> base)</code> +<div class="block">Specify a base IRI to use for parsing any relative IRI references.</div> +</td> +</tr> +<tr id="i3" class="rowColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#checkBaseRequired--">checkBaseRequired</a></span>()</code> +<div class="block">Check if base is required.</div> +</td> +</tr> +<tr id="i4" class="altColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#checkContentType--">checkContentType</a></span>()</code> +<div class="block">Subclasses can override this method to check compatibility with the + contentType setting.</div> +</td> +</tr> +<tr id="i5" class="rowColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#checkIsAbsolute-org.apache.commons.rdf.api.IRI-">checkIsAbsolute</a></span>(<a href="../../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> iri)</code> +<div class="block">Check if an iri is absolute.</div> +</td> +</tr> +<tr id="i6" class="altColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#checkSource--">checkSource</a></span>()</code> +<div class="block">Check that one and only one source is present and valid.</div> +</td> +</tr> +<tr id="i7" class="rowColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#checkTarget--">checkTarget</a></span>()</code> +<div class="block">Subclasses can override this method to check the target is valid.</div> +</td> +</tr> +<tr id="i8" class="altColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#clone--">clone</a></span>()</code> </td> +</tr> +<tr id="i9" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#contentType-org.apache.commons.rdf.api.RDFSyntax-">contentType</a></span>(<a href="../../../../../../org/apache/commons/rdf/api/RDFSyntax.html" title="enum in org.apache.commons.rdf.api">RDFSyntax</a> rdfSyntax)</code> +<div class="block">Specify the content type of the RDF syntax to parse.</div> +</td> +</tr> +<tr id="i10" class="altColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#contentType-java.lang.String-">contentType</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> contentType)</code> +<div class="block">Specify the content type of the RDF syntax to parse.</div> +</td> +</tr> +<tr id="i11" class="rowColor"> +<td class="colFirst"><code>protected <a href="../../../../../../org/apache/commons/rdf/api/RDF.html" title="interface in org.apache.commons.rdf.api">RDF</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#createRDFTermFactory--">createRDFTermFactory</a></span>()</code> +<div class="block">Create a new <a href="../../../../../../org/apache/commons/rdf/api/RDF.html" title="interface in org.apache.commons.rdf.api"><code>RDF</code></a> for a parse session.</div> +</td> +</tr> +<tr id="i12" class="altColor"> +<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/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getBase--">getBase</a></span>()</code> +<div class="block">Get the set base <a href="../../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api"><code>IRI</code></a>, if present.</div> +</td> +</tr> +<tr id="i13" 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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getContentType--">getContentType</a></span>()</code> +<div class="block">Get the set content-type String, if any.</div> +</td> +</tr> +<tr id="i14" class="altColor"> +<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/RDFSyntax.html" title="enum in org.apache.commons.rdf.api">RDFSyntax</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getContentTypeSyntax--">getContentTypeSyntax</a></span>()</code> +<div class="block">Get the set content-type <a href="../../../../../../org/apache/commons/rdf/api/RDFSyntax.html" title="enum in org.apache.commons.rdf.api"><code>RDFSyntax</code></a>, if any.</div> +</td> +</tr> +<tr id="i15" 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/RDF.html" title="interface in org.apache.commons.rdf.api">RDF</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getRdfTermFactory--">getRdfTermFactory</a></span>()</code> +<div class="block">Get the set <a href="../../../../../../org/apache/commons/rdf/api/RDF.html" title="interface in org.apache.commons.rdf.api"><code>RDF</code></a>, if any.</div> +</td> +</tr> +<tr id="i16" class="altColor"> +<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="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</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getSourceFile--">getSourceFile</a></span>()</code> +<div class="block">Get the set source <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html?is-external=true" title="class or interface in java.nio.file"><code>Path</code></a>.</div> +</td> +</tr> +<tr id="i17" 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="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getSourceInputStream--">getSourceInputStream</a></span>()</code> +<div class="block">Get the set source <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a>.</div> +</td> +</tr> +<tr id="i18" class="altColor"> +<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/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getSourceIri--">getSourceIri</a></span>()</code> +<div class="block">Get the set source <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html?is-external=true" title="class or interface in java.nio.file"><code>Path</code></a>.</div> +</td> +</tr> +<tr id="i19" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Consumer.html?is-external=true" title="class or interface in java.util.function">Consumer</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/simple/experimental/AbstractRDFParser.html#getTarget--">getTarget</a></span>()</code> +<div class="block">Get the target to consume parsed Quads.</div> +</td> +</tr> +<tr id="i20" class="altColor"> +<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/Dataset.html" title="interface in org.apache.commons.rdf.api">Dataset</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getTargetDataset--">getTargetDataset</a></span>()</code> +<div class="block">Get the target dataset as set by <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#target-org.apache.commons.rdf.api.Dataset-"><code>target(Dataset)</code></a>.</div> +</td> +</tr> +<tr id="i21" 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/simple/experimental/AbstractRDFParser.html#getTargetGraph--">getTargetGraph</a></span>()</code> +<div class="block">Get the target graph as set by <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#target-org.apache.commons.rdf.api.Graph-"><code>target(Graph)</code></a>.</div> +</td> +</tr> +<tr id="i22" class="altColor"> +<td class="colFirst"><code>protected static <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/RDFSyntax.html" title="enum in org.apache.commons.rdf.api">RDFSyntax</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#guessRDFSyntax-java.nio.file.Path-">guessRDFSyntax</a></span>(<a href="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</a> path)</code> +<div class="block">Guess RDFSyntax from a local file's extension.</div> +</td> +</tr> +<tr id="i23" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Future.html?is-external=true" title="class or interface in java.util.concurrent">Future</a><<a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.ParseResult.html" title="interface in org.apache.commons.rdf.experimental">RDFParser.ParseResult</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#parse--">parse</a></span>()</code> +<div class="block">Parse the specified source.</div> +</td> +</tr> +<tr id="i24" class="altColor"> +<td class="colFirst"><code>protected abstract void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#parseSynchronusly--">parseSynchronusly</a></span>()</code> +<div class="block">Parse <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#sourceInputStream"><code>sourceInputStream</code></a>, <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#sourceFile"><code>sourceFile</code></a> or + <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#sourceIri"><code>sourceIri</code></a>.</div> +</td> +</tr> +<tr id="i25" class="rowColor"> +<td class="colFirst"><code>protected <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#prepareForParsing--">prepareForParsing</a></span>()</code> +<div class="block">Prepare a clone of this RDFParser which have been checked and completed.</div> +</td> +</tr> +<tr id="i26" class="altColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#rdfTermFactory-org.apache.commons.rdf.api.RDF-">rdfTermFactory</a></span>(<a href="../../../../../../org/apache/commons/rdf/api/RDF.html" title="interface in org.apache.commons.rdf.api">RDF</a> rdfTermFactory)</code> +<div class="block">Specify which <a href="../../../../../../org/apache/commons/rdf/api/RDF.html" title="interface in org.apache.commons.rdf.api"><code>RDF</code></a> to use for generating <a href="../../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api"><code>RDFTerm</code></a>s.</div> +</td> +</tr> +<tr id="i27" class="rowColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#resetSource--">resetSource</a></span>()</code> +<div class="block">Reset all source* fields to Optional.empty()</div> +</td> +</tr> +<tr id="i28" class="altColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#resetTarget--">resetTarget</a></span>()</code> +<div class="block">Reset all optional target* fields 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>.</div> +</td> +</tr> +<tr id="i29" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#source-java.io.InputStream-">source</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> inputStream)</code> +<div class="block">Specify a source <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a> to parse.</div> +</td> +</tr> +<tr id="i30" class="altColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#source-org.apache.commons.rdf.api.IRI-">source</a></span>(<a href="../../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> iri)</code> +<div class="block">Specify an absolute source <a href="../../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api"><code>IRI</code></a> to retrieve and parse.</div> +</td> +</tr> +<tr id="i31" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#source-java.nio.file.Path-">source</a></span>(<a href="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</a> file)</code> +<div class="block">Specify a source file <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html?is-external=true" title="class or interface in java.nio.file"><code>Path</code></a> to parse.</div> +</td> +</tr> +<tr id="i32" class="altColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#source-java.lang.String-">source</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> iri)</code> +<div class="block">Specify an absolute source IRI to retrieve and parse.</div> +</td> +</tr> +<tr id="i33" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#target-java.util.function.Consumer-">target</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Consumer.html?is-external=true" title="class or interface in java.util.function">Consumer</a><<a href="../../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api">Quad</a>> consumer)</code> +<div class="block">Specify a consumer for parsed quads.</div> +</td> +</tr> +<tr id="i34" class="altColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#target-org.apache.commons.rdf.api.Dataset-">target</a></span>(<a href="../../../../../../org/apache/commons/rdf/api/Dataset.html" title="interface in org.apache.commons.rdf.api">Dataset</a> dataset)</code> +<div class="block">Specify a <a href="../../../../../../org/apache/commons/rdf/api/Dataset.html" title="interface in org.apache.commons.rdf.api"><code>Dataset</code></a> to add parsed quads to.</div> +</td> +</tr> +<tr id="i35" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#target-org.apache.commons.rdf.api.Graph-">target</a></span>(<a href="../../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api">Graph</a> graph)</code> +<div class="block">Specify a <a href="../../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a> to add parsed triples to.</div> +</td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> +<code><a href="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">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/doc s/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ============ FIELD DETAIL =========== --> +<ul class="blockList"> +<li class="blockList"><a name="field.detail"> +<!-- --> +</a> +<h3>Field Detail</h3> +<a name="threadGroup"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>threadGroup</h4> +<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ThreadGroup.html?is-external=true" title="class or interface in java.lang">ThreadGroup</a> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.61">threadGroup</a></pre> +</li> +</ul> +</li> +</ul> +<!-- ========= CONSTRUCTOR DETAIL ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor.detail"> +<!-- --> +</a> +<h3>Constructor Detail</h3> +<a name="AbstractRDFParser--"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>AbstractRDFParser</h4> +<pre>public <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.59">AbstractRDFParser</a>()</pre> +</li> +</ul> +</li> +</ul> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="getRdfTermFactory--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getRdfTermFactory</h4> +<pre>public <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/RDF.html" title="interface in org.apache.commons.rdf.api">RDF</a>> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.73">getRdfTermFactory</a>()</pre> +<div class="block">Get the set <a href="../../../../../../org/apache/commons/rdf/api/RDF.html" title="interface in org.apache.commons.rdf.api"><code>RDF</code></a>, if any.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The <a href="../../../../../../org/apache/commons/rdf/api/RDF.html" title="interface in org.apache.commons.rdf.api"><code>RDF</code></a> to use, 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 it has not + been set</dd> +</dl> +</li> +</ul> +<a name="getContentTypeSyntax--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getContentTypeSyntax</h4> +<pre>public <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/RDFSyntax.html" title="enum in org.apache.commons.rdf.api">RDFSyntax</a>> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.86">getContentTypeSyntax</a>()</pre> +<div class="block">Get the set content-type <a href="../../../../../../org/apache/commons/rdf/api/RDFSyntax.html" title="enum in org.apache.commons.rdf.api"><code>RDFSyntax</code></a>, if any. + <p> + If this is <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#isPresent--" title="class or interface in java.util"><code>Optional.isPresent()</code></a>, then <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getContentType--"><code>getContentType()</code></a> + contains the value of <a href="../../../../../../org/apache/commons/rdf/api/RDFSyntax.html#mediaType"><code>RDFSyntax.mediaType</code></a>.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The <a href="../../../../../../org/apache/commons/rdf/api/RDFSyntax.html" title="enum in org.apache.commons.rdf.api"><code>RDFSyntax</code></a> of the content type, 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 it has not been set</dd> +</dl> +</li> +</ul> +<a name="getContentType--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getContentType</h4> +<pre>public final <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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.101">getContentType</a>()</pre> +<div class="block">Get the set content-type String, if any. + <p> + If this is <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#isPresent--" title="class or interface in java.util"><code>Optional.isPresent()</code></a> and is recognized by + <a href="../../../../../../org/apache/commons/rdf/api/RDFSyntax.html#byMediaType-java.lang.String-"><code>RDFSyntax.byMediaType(String)</code></a>, then the corresponding + <a href="../../../../../../org/apache/commons/rdf/api/RDFSyntax.html" title="enum in org.apache.commons.rdf.api"><code>RDFSyntax</code></a> is set on <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getContentType--"><code>getContentType()</code></a>, otherwise that is + <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>.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The Content-Type IANA media type, e.g. <code>text/turtle</code>, + 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 it has not been set</dd> +</dl> +</li> +</ul> +<a name="getTarget--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getTarget</h4> +<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Consumer.html?is-external=true" title="class or interface in java.util.function">Consumer</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/simple/experimental/AbstractRDFParser.html#line.115">getTarget</a>()</pre> +<div class="block">Get the target to consume parsed Quads. + <p> + From the call to <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#parseSynchronusly--"><code>parseSynchronusly()</code></a>, this will be a + non-<code>null</code> value (as a target is a required setting).</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The target consumer of <a href="../../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api"><code>Quad</code></a>s, or <code>null</code> if it + has not yet been set.</dd> +</dl> +</li> +</ul> +<a name="getTargetDataset--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getTargetDataset</h4> +<pre>public <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/Dataset.html" title="interface in org.apache.commons.rdf.api">Dataset</a>> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.133">getTargetDataset</a>()</pre> +<div class="block">Get the target dataset as set by <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#target-org.apache.commons.rdf.api.Dataset-"><code>target(Dataset)</code></a>. + <p> + The return value is <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#isPresent--" title="class or interface in java.util"><code>Optional.isPresent()</code></a> if and only if + <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#target-org.apache.commons.rdf.api.Dataset-"><code>target(Dataset)</code></a> has been set, meaning that the implementation + may choose to append parsed quads to the <a href="../../../../../../org/apache/commons/rdf/api/Dataset.html" title="interface in org.apache.commons.rdf.api"><code>Dataset</code></a> directly instead + of relying on the generated <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getTarget--"><code>getTarget()</code></a> consumer. + <p> + If this value is present, then <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getTargetGraph--"><code>getTargetGraph()</code></a> MUST be + <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>.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The target Dataset, 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 another kind + of target has been set.</dd> +</dl> +</li> +</ul> +<a name="getTargetGraph--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getTargetGraph</h4> +<pre>public <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/simple/experimental/AbstractRDFParser.html#line.151">getTargetGraph</a>()</pre> +<div class="block">Get the target graph as set by <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#target-org.apache.commons.rdf.api.Graph-"><code>target(Graph)</code></a>. + <p> + The return value is <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#isPresent--" title="class or interface in java.util"><code>Optional.isPresent()</code></a> if and only if + <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#target-org.apache.commons.rdf.api.Graph-"><code>target(Graph)</code></a> has been set, meaning that the implementation may + choose to append parsed triples to the <a href="../../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a> directly instead of + relying on the generated <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getTarget--"><code>getTarget()</code></a> consumer. + <p> + If this value is present, then <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getTargetDataset--"><code>getTargetDataset()</code></a> MUST be + <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>.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The target 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 another kind of + target has been set.</dd> +</dl> +</li> +</ul> +<a name="getBase--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getBase</h4> +<pre>public <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/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a>> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.161">getBase</a>()</pre> +<div class="block">Get the set base <a href="../../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api"><code>IRI</code></a>, if present.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The base <a href="../../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api"><code>IRI</code></a>, 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 it has not + been set</dd> +</dl> +</li> +</ul> +<a name="getSourceInputStream--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getSourceInputStream</h4> +<pre>public <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="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.174">getSourceInputStream</a>()</pre> +<div class="block">Get the set source <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a>. + <p> + If this is <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#isPresent--" title="class or interface in java.util"><code>Optional.isPresent()</code></a>, then <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getSourceFile--"><code>getSourceFile()</code></a> + and <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getSourceIri--"><code>getSourceIri()</code></a> are <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>.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The source <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a>, 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 it + has not been set</dd> +</dl> +</li> +</ul> +<a name="getSourceFile--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getSourceFile</h4> +<pre>public <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="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</a>> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.188">getSourceFile</a>()</pre> +<div class="block">Get the set source <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html?is-external=true" title="class or interface in java.nio.file"><code>Path</code></a>. + <p> + If this is <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#isPresent--" title="class or interface in java.util"><code>Optional.isPresent()</code></a>, then + <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getSourceInputStream--"><code>getSourceInputStream()</code></a> and <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getSourceIri--"><code>getSourceIri()</code></a> are + <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>.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The source <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html?is-external=true" title="class or interface in java.nio.file"><code>Path</code></a>, 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 it has + not been set</dd> +</dl> +</li> +</ul> +<a name="getSourceIri--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getSourceIri</h4> +<pre>public <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/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a>> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.202">getSourceIri</a>()</pre> +<div class="block">Get the set source <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html?is-external=true" title="class or interface in java.nio.file"><code>Path</code></a>. + <p> + If this is <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html?is-external=true#isPresent--" title="class or interface in java.util"><code>Optional.isPresent()</code></a>, then + <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getSourceInputStream--"><code>getSourceInputStream()</code></a> and <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#getSourceInputStream--"><code>getSourceInputStream()</code></a> are + <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>.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The source <a href="../../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api"><code>IRI</code></a>, 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 it has not + been set</dd> +</dl> +</li> +</ul> +<a name="clone--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>clone</h4> +<pre>public <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.219">clone</a>()</pre> +<dl> +<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> +</dl> +</li> +</ul> +<a name="asT--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asT</h4> +<pre>protected <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.228">asT</a>()</pre> +</li> +</ul> +<a name="rdfTermFactory-org.apache.commons.rdf.api.RDF-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>rdfTermFactory</h4> +<pre>public <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.233">rdfTermFactory</a>(<a href="../../../../../../org/apache/commons/rdf/api/RDF.html" title="interface in org.apache.commons.rdf.api">RDF</a> rdfTermFactory)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#rdfTermFactory-org.apache.commons.rdf.api.RDF-">RDFParser</a></code></span></div> +<div class="block">Specify which <a href="../../../../../../org/apache/commons/rdf/api/RDF.html" title="interface in org.apache.commons.rdf.api"><code>RDF</code></a> to use for generating <a href="../../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api"><code>RDFTerm</code></a>s. + <p> + This option may be used together with <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#target-org.apache.commons.rdf.api.Graph-"><code>RDFParser.target(Graph)</code></a> to override + the implementation's default factory and graph. + <p> + <strong>Warning:</strong> Using the same <a href="../../../../../../org/apache/commons/rdf/api/RDF.html" title="interface in org.apache.commons.rdf.api"><code>RDF</code></a> for multiple + <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#parse--"><code>RDFParser.parse()</code></a> calls may accidentally merge <a href="../../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a>s having + the same label, as the parser may use the + <a href="../../../../../../org/apache/commons/rdf/api/RDF.html#createBlankNode-java.lang.String-"><code>RDF.createBlankNode(String)</code></a> method from the parsed blank node + labels.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#rdfTermFactory-org.apache.commons.rdf.api.RDF-">rdfTermFactory</a></code> in interface <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental">RDFParser</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>rdfTermFactory</code> - <a href="../../../../../../org/apache/commons/rdf/api/RDF.html" title="interface in org.apache.commons.rdf.api"><code>RDF</code></a> to use for generating RDFTerms.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>An <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental"><code>RDFParser</code></a> that will use the specified rdfTermFactory</dd> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#target-org.apache.commons.rdf.api.Graph-"><code>RDFParser.target(Graph)</code></a></dd> +</dl> +</li> +</ul> +<a name="contentType-org.apache.commons.rdf.api.RDFSyntax-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>contentType</h4> +<pre>public <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.240">contentType</a>(<a href="../../../../../../org/apache/commons/rdf/api/RDFSyntax.html" title="enum in org.apache.commons.rdf.api">RDFSyntax</a> rdfSyntax) + throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-org.apache.commons.rdf.api.RDFSyntax-">RDFParser</a></code></span></div> +<div class="block">Specify the content type of the RDF syntax to parse. + <p> + This option can be used to select the RDFSyntax of the source, overriding + any <code>Content-Type</code> headers or equivalent. + <p> + The character set of the RDFSyntax is assumed to be + <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/StandardCharsets.html?is-external=true#UTF_8" title="class or interface in java.nio.charset"><code>StandardCharsets.UTF_8</code></a> unless overridden within the document + (e.g. <code><?xml version="1.0" encoding="iso-8859-1"?></code> in + <a href="../../../../../../org/apache/commons/rdf/api/RDFSyntax.html#RDFXML"><code>RDFSyntax.RDFXML</code></a>). + <p> + This method will override any contentType set with + <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-java.lang.String-"><code>RDFParser.contentType(String)</code></a>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-org.apache.commons.rdf.api.RDFSyntax-">contentType</a></code> in interface <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental">RDFParser</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>rdfSyntax</code> - An <a href="../../../../../../org/apache/commons/rdf/api/RDFSyntax.html" title="enum in org.apache.commons.rdf.api"><code>RDFSyntax</code></a> to parse the source according to, e.g. + <a href="../../../../../../org/apache/commons/rdf/api/RDFSyntax.html#TURTLE"><code>RDFSyntax.TURTLE</code></a>.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>An <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental"><code>RDFParser</code></a> that will use the specified content type.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - If this RDFParser does not support the specified RDFSyntax.</dd> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-java.lang.String-"><code>RDFParser.contentType(String)</code></a></dd> +</dl> +</li> +</ul> +<a name="contentType-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>contentType</h4> +<pre>public <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.248">contentType</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> contentType) + throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-java.lang.String-">RDFParser</a></code></span></div> +<div class="block">Specify the content type of the RDF syntax to parse. + <p> + This option can be used to select the RDFSyntax of the source, overriding + any <code>Content-Type</code> headers or equivalent. + <p> + The content type MAY include a <code>charset</code> parameter if the RDF + media types permit it; the default charset is + <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/StandardCharsets.html?is-external=true#UTF_8" title="class or interface in java.nio.charset"><code>StandardCharsets.UTF_8</code></a> unless overridden within the document. + <p> + This method will override any contentType set with + <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-org.apache.commons.rdf.api.RDFSyntax-"><code>RDFParser.contentType(RDFSyntax)</code></a>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-java.lang.String-">contentType</a></code> in interface <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental">RDFParser</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>contentType</code> - A content-type string, e.g. <code>application/ld+json</code> + or <code>text/turtle;charset="UTF-8"</code> as specified by + <a href="https://tools.ietf.org/html/rfc7231#section-3.1.1.1"> + RFC7231</a>.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>An <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental"><code>RDFParser</code></a> that will use the specified content type.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - If the contentType has an invalid syntax, or this RDFParser + does not support the specified contentType.</dd> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-org.apache.commons.rdf.api.RDFSyntax-"><code>RDFParser.contentType(RDFSyntax)</code></a></dd> +</dl> +</li> +</ul> +<a name="base-org.apache.commons.rdf.api.IRI-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>base</h4> +<pre>public <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.256">base</a>(<a href="../../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> base)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#base-org.apache.commons.rdf.api.IRI-">RDFParser</a></code></span></div> +<div class="block">Specify a base IRI to use for parsing any relative IRI references. + <p> + Setting this option will override any protocol-specific base IRI (e.g. + <code>Content-Location</code> header) or the <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-org.apache.commons.rdf.api.IRI-"><code>RDFParser.source(IRI)</code></a> IRI, + but does not override any base IRIs set within the source document (e.g. + <code>@base</code> in Turtle documents). + <p> + If the source is in a syntax that does not support relative IRI + references (e.g. <a href="../../../../../../org/apache/commons/rdf/api/RDFSyntax.html#NTRIPLES"><code>RDFSyntax.NTRIPLES</code></a>), setting the + <code>base</code> has no effect. + <p> + This method will override any base IRI set with <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#base-java.lang.String-"><code>RDFParser.base(String)</code></a>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#base-org.apache.commons.rdf.api.IRI-">base</a></code> in interface <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental">RDFParser</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>base</code> - An absolute IRI to use as a base.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>An <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental"><code>RDFParser</code></a> that will use the specified base IRI.</dd> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#base-java.lang.String-"><code>RDFParser.base(String)</code></a></dd> +</dl> +</li> +</ul> +<a name="base-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>base</h4> +<pre>public <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.264">base</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> base) + throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#base-java.lang.String-">RDFParser</a></code></span></div> +<div class="block">Specify a base IRI to use for parsing any relative IRI references. + <p> + Setting this option will override any protocol-specific base IRI (e.g. + <code>Content-Location</code> header) or the <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-org.apache.commons.rdf.api.IRI-"><code>RDFParser.source(IRI)</code></a> IRI, + but does not override any base IRIs set within the source document (e.g. + <code>@base</code> in Turtle documents). + <p> + If the source is in a syntax that does not support relative IRI + references (e.g. <a href="../../../../../../org/apache/commons/rdf/api/RDFSyntax.html#NTRIPLES"><code>RDFSyntax.NTRIPLES</code></a>), setting the + <code>base</code> has no effect. + <p> + This method will override any base IRI set with <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#base-org.apache.commons.rdf.api.IRI-"><code>RDFParser.base(IRI)</code></a>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#base-java.lang.String-">base</a></code> in interface <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental">RDFParser</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>base</code> - An absolute IRI to use as a base.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>An <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental"><code>RDFParser</code></a> that will use the specified base IRI.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - If the base is not a valid absolute IRI string</dd> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#base-org.apache.commons.rdf.api.IRI-"><code>RDFParser.base(IRI)</code></a></dd> +</dl> +</li> +</ul> +<a name="source-java.io.InputStream-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>source</h4> +<pre>public <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.269">source</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> inputStream)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-java.io.InputStream-">RDFParser</a></code></span></div> +<div class="block">Specify a source <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a> to parse. + <p> + The source set will not be read before the call to <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#parse--"><code>RDFParser.parse()</code></a>. + <p> + The InputStream will not be closed after parsing. The InputStream does + not need to support <a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true#markSupported--" title="class or interface in java.io"><code>InputStream.markSupported()</code></a>. + <p> + The parser might not consume the complete stream (e.g. an RDF/XML parser + may not read beyond the closing tag of + <code></rdf:Description></code>). + <p> + The <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-org.apache.commons.rdf.api.RDFSyntax-"><code>RDFParser.contentType(RDFSyntax)</code></a> or <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-java.lang.String-"><code>RDFParser.contentType(String)</code></a> + SHOULD be set before calling <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#parse--"><code>RDFParser.parse()</code></a>. + <p> + The character set is assumed to be <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/StandardCharsets.html?is-external=true#UTF_8" title="class or interface in java.nio.charset"><code>StandardCharsets.UTF_8</code></a> unless + the <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-java.lang.String-"><code>RDFParser.contentType(String)</code></a> specifies otherwise or the document + declares its own charset (e.g. RDF/XML with a + <code><?xml encoding="iso-8859-1"></code> header). + <p> + The <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#base-org.apache.commons.rdf.api.IRI-"><code>RDFParser.base(IRI)</code></a> or <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#base-java.lang.String-"><code>RDFParser.base(String)</code></a> MUST be set before + calling <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#parse--"><code>RDFParser.parse()</code></a>, unless the RDF syntax does not permit relative + IRIs (e.g. <a href="../../../../../../org/apache/commons/rdf/api/RDFSyntax.html#NTRIPLES"><code>RDFSyntax.NTRIPLES</code></a>). + <p> + This method will override any source set with <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-org.apache.commons.rdf.api.IRI-"><code>RDFParser.source(IRI)</code></a>, + <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-java.nio.file.Path-"><code>RDFParser.source(Path)</code></a> or <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-java.lang.String-"><code>RDFParser.source(String)</code></a>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-java.io.InputStream-">source</a></code> in interface <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental">RDFParser</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>inputStream</code> - An InputStream to consume</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>An <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental"><code>RDFParser</code></a> that will use the specified source.</dd> +</dl> +</li> +</ul> +<a name="source-java.nio.file.Path-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>source</h4> +<pre>public <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.277">source</a>(<a href="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</a> file)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-java.nio.file.Path-">RDFParser</a></code></span></div> +<div class="block">Specify a source file <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html?is-external=true" title="class or interface in java.nio.file"><code>Path</code></a> to parse. + <p> + The source set will not be read before the call to <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#parse--"><code>RDFParser.parse()</code></a>. + <p> + The <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-org.apache.commons.rdf.api.RDFSyntax-"><code>RDFParser.contentType(RDFSyntax)</code></a> or <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-java.lang.String-"><code>RDFParser.contentType(String)</code></a> + SHOULD be set before calling <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#parse--"><code>RDFParser.parse()</code></a>. + <p> + The character set is assumed to be <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/StandardCharsets.html?is-external=true#UTF_8" title="class or interface in java.nio.charset"><code>StandardCharsets.UTF_8</code></a> unless + the <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-java.lang.String-"><code>RDFParser.contentType(String)</code></a> specifies otherwise or the document + declares its own charset (e.g. RDF/XML with a + <code><?xml encoding="iso-8859-1"></code> header). + <p> + The <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#base-org.apache.commons.rdf.api.IRI-"><code>RDFParser.base(IRI)</code></a> or <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#base-java.lang.String-"><code>RDFParser.base(String)</code></a> MAY be set before calling + <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#parse--"><code>RDFParser.parse()</code></a>, otherwise <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html?is-external=true#toUri--" title="class or interface in java.nio.file"><code>Path.toUri()</code></a> will be used as the base + IRI. + <p> + This method will override any source set with <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-org.apache.commons.rdf.api.IRI-"><code>RDFParser.source(IRI)</code></a>, + <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-java.io.InputStream-"><code>RDFParser.source(InputStream)</code></a> or <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-java.lang.String-"><code>RDFParser.source(String)</code></a>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-java.nio.file.Path-">source</a></code> in interface <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental">RDFParser</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>file</code> - A Path for a file to parse</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>An <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental"><code>RDFParser</code></a> that will use the specified source.</dd> +</dl> +</li> +</ul> +<a name="source-org.apache.commons.rdf.api.IRI-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>source</h4> +<pre>public <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.285">source</a>(<a href="../../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> iri)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-org.apache.commons.rdf.api.IRI-">RDFParser</a></code></span></div> +<div class="block">Specify an absolute source <a href="../../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api"><code>IRI</code></a> to retrieve and parse. + <p> + The source set will not be read before the call to <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#parse--"><code>RDFParser.parse()</code></a>. + <p> + If this builder does not support the given IRI protocol (e.g. + <code>urn:uuid:ce667463-c5ab-4c23-9b64-701d055c4890</code>), this method + should succeed, while the <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#parse--"><code>RDFParser.parse()</code></a> should throw an + <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io"><code>IOException</code></a>. + <p> + The <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-org.apache.commons.rdf.api.RDFSyntax-"><code>RDFParser.contentType(RDFSyntax)</code></a> or <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#contentType-java.lang.String-"><code>RDFParser.contentType(String)</code></a> MAY + be set before calling <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#parse--"><code>RDFParser.parse()</code></a>, in which case that type MAY be + used for content negotiation (e.g. <code>Accept</code> header in HTTP), + and SHOULD be used for selecting the RDFSyntax. + <p> + The character set is assumed to be <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/StandardCharsets.html?is-external=true#UTF_8" title="class or interface in java.nio.charset"><code>StandardCharsets.UTF_8</code></a> unless + the protocol's equivalent of <code>Content-Type</code> specifies + otherwise or the document declares its own charset (e.g. RDF/XML with a + <code><?xml encoding="iso-8859-1"></code> header). + <p> + The <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#base-org.apache.commons.rdf.api.IRI-"><code>RDFParser.base(IRI)</code></a> or <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#base-java.lang.String-"><code>RDFParser.base(String)</code></a> MAY be set before calling + <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#parse--"><code>RDFParser.parse()</code></a>, otherwise the source IRI will be used as the base IRI. + <p> + This method will override any source set with <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-java.nio.file.Path-"><code>RDFParser.source(Path)</code></a>, + <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-java.io.InputStream-"><code>RDFParser.source(InputStream)</code></a> or <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-java.lang.String-"><code>RDFParser.source(String)</code></a>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-org.apache.commons.rdf.api.IRI-">source</a></code> in interface <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental">RDFParser</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>iri</code> - An IRI to retrieve and parse</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>An <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html" title="interface in org.apache.commons.rdf.experimental"><code>RDFParser</code></a> that will use the specified source.</dd> +</dl> +</li> +</ul> +<a name="source-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>source</h4> +<pre>public <a href="../../../../../../org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html" title="type parameter in AbstractRDFParser">T</a> <a href="../../../../../../src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html#line.294">source</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> iri) + throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#source-java.lang.String-">RDFParser</a></code></span></div> +<div class="block">Specify an absolute source IRI to retrieve and parse. + <p> + The source set will not be read before the call to <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#parse--"><code>RDFParser.parse()</code></a>. + <p> + If this builder does not support the given IRI (e.g. + <code>urn:uuid:ce667463-c5ab-4c23-9b64-701d055c4890</code>), this method + should succeed, while the <a href="../../../../../../org/apache/commons/rdf/experimental/RDFParser.html#parse--"><code>RDFParser.parse()</code></a> should throw an + <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io"><code>IOException</code></a>. + <p>
[... 492 lines stripped ...]