Added: websites/production/commonsrdf/content/apidocs/org/apache/commons/rdf/rdf4j/RDF4JFactory.html ============================================================================== --- websites/production/commonsrdf/content/apidocs/org/apache/commons/rdf/rdf4j/RDF4JFactory.html (added) +++ websites/production/commonsrdf/content/apidocs/org/apache/commons/rdf/rdf4j/RDF4JFactory.html Wed Oct 26 15:57:51 2016 @@ -0,0 +1,1184 @@ +<!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>RDF4JFactory (Commons RDF 0.3.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="RDF4JFactory (Commons RDF 0.3.0-incubating-SNAPSHOT API)"; + } + } + catch(err) { + } +//--> +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":9,"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}; +var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance 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/RDF4JFactory.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/rdf4j/RDF4JDataset.html" title="interface in org.apache.commons.rdf.rdf4j"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.Option.html" title="enum in org.apache.commons.rdf.rdf4j"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/commons/rdf/rdf4j/RDF4JFactory.html" target="_top">Frames</a></li> +<li><a href="RDF4JFactory.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><a href="#nested.class.summary">Nested</a> | </li> +<li>Field | </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>Field | </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.rdf4j</div> +<h2 title="Class RDF4JFactory" class="title">Class RDF4JFactory</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.rdf4j.RDF4JFactory</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<dl> +<dt>All Implemented Interfaces:</dt> +<dd><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html" title="interface in org.apache.commons.rdf.api">RDFTermFactory</a></dd> +</dl> +<hr> +<br> +<pre>public final class <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.102">RDF4JFactory</a> +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/api/RDFTermFactory.html" title="interface in org.apache.commons.rdf.api">RDFTermFactory</a></pre> +<div class="block">RDF4J implementation of RDFTermFactory. + <p> + The <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#RDF4JFactory--"><code>RDF4JFactory()</code></a> constructor uses a <code>SimpleValueFactory</code> + to create corresponding RDF4J <code>Value</code> instances. Alternatively, this + factory can be constructed with a different <code>ValueFactory</code> using + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#RDF4JFactory-org.eclipse.rdf4j.model.ValueFactory-"><code>RDF4JFactory(ValueFactory)</code></a>. + <p> + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asRDFTerm-org.eclipse.rdf4j.model.Value-"><code>asRDFTerm(Value)</code></a> can be used to convert any RDF4J <code>Value</code> to + an RDFTerm. Note that adapted <code>BNode</code>s are considered equal if they are + converted with the same <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a> instance and have the same + <code>BNode.getID()</code>. + <p> + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#createGraph--"><code>createGraph()</code></a> creates a new Graph backed by <code>LinkedHashModel</code>. + To use other models, see <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asGraph-org.eclipse.rdf4j.model.Model-"><code>asGraph(Model)</code></a>. + <p> + To adapt a RDF4J <code>Repository</code> as a <a href="../../../../../org/apache/commons/rdf/api/Dataset.html" title="interface in org.apache.commons.rdf.api"><code>Dataset</code></a> or <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a>, + use <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asDataset-org.eclipse.rdf4j.repository.Repository-org.apache.commons.rdf.rdf4j.RDF4JFactory.Option...-"><code>asDataset(Repository, Option...)</code></a> + or + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asGraph-org.eclipse.rdf4j.repository.Repository-org.apache.commons.rdf.rdf4j.RDF4JFactory.Option...-"><code>asGraph(Repository, Option...)</code></a>. + <p> + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asTriple-org.eclipse.rdf4j.model.Statement-"><code>asTriple(Statement)</code></a> can be used to convert a RDF4J <code>Statement</code> + to a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Triple.html" title="interface in org.apache.commons.rdf.api"><code>Triple</code></a>, and equivalent <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asQuad-org.eclipse.rdf4j.model.Statement-"><code>asQuad(Statement)</code></a> to + convert a <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api"><code>Quad</code></a>. + <p> + To convert any <a href="../../../../../org/apache/commons/rdf/api/Triple.html" title="interface in org.apache.commons.rdf.api"><code>Triple</code></a> or <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api"><code>Quad</code></a> to to RDF4J <code>Statement</code>, + use <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asStatement-org.apache.commons.rdf.api.TripleLike-"><code>asStatement(TripleLike)</code></a>. This recognises previously converted + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTriple.html" title="interface in org.apache.commons.rdf.rdf4j"><code>RDF4JTriple</code></a>s and <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JQuad.html" title="interface in org.apache.commons.rdf.rdf4j"><code>RDF4JQuad</code></a>s without re-converting their + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTripleLike.html#asStatement--"><code>RDF4JTripleLike.asStatement()</code></a>. + <p> + Likewise, <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asValue-org.apache.commons.rdf.api.RDFTerm-"><code>asValue(RDFTerm)</code></a> can be used to convert any Commons RDF + <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api"><code>RDFTerm</code></a> to a corresponding RDF4J <code>Value</code>. This recognises + previously converted <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTerm.html" title="interface in org.apache.commons.rdf.rdf4j"><code>RDF4JTerm</code></a>s without re-converting their + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTerm.html#asValue--"><code>RDF4JTerm.asValue()</code></a>. + <p> + For the purpose of <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a> equivalence, this factory contains an + internal <a href="https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util"><code>UUID</code></a> salt that is used by adapter methods like + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asQuad-org.eclipse.rdf4j.model.Statement-"><code>asQuad(Statement)</code></a>, <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asTriple-org.eclipse.rdf4j.model.Statement-"><code>asTriple(Statement)</code></a>, + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asRDFTerm-org.eclipse.rdf4j.model.Value-"><code>asRDFTerm(Value)</code></a> as well as <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#createBlankNode-java.lang.String-"><code>createBlankNode(String)</code></a>. As + RDF4J <code>BNode</code> instances from multiple repositories or models may have + the same <code>BNode.getID()</code>, converting them with the above methods might + cause accidental <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a> equivalence. Note that the <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a> + and <a href="../../../../../org/apache/commons/rdf/api/Dataset.html" title="interface in org.apache.commons.rdf.api"><code>Dataset</code></a> adapter methods like + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asDataset-org.eclipse.rdf4j.repository.Repository-org.apache.commons.rdf.rdf4j.RDF4JFactory.Option...-"><code>asDataset(Repository, Option...)</code></a> + and + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asGraph-org.eclipse.rdf4j.repository.Repository-org.apache.commons.rdf.rdf4j.RDF4JFactory.Option...-"><code>asGraph(Repository, Option...)</code></a> + therefore uses a unique <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a> internally.</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> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> +<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Class and Description</th> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static class </code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.Option.html" title="enum in org.apache.commons.rdf.rdf4j">RDF4JFactory.Option</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/rdf4j/RDF4JFactory.html#RDF4JFactory--">RDF4JFactory</a></span>()</code> +<div class="block">Construct an <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a>.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#RDF4JFactory-java.util.UUID-">RDF4JFactory</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a> salt)</code> +<div class="block">Construct an <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a>.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#RDF4JFactory-org.eclipse.rdf4j.model.ValueFactory-">RDF4JFactory</a></span>(org.eclipse.rdf4j.model.ValueFactory valueFactory)</code> +<div class="block">Construct an <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a>.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#RDF4JFactory-org.eclipse.rdf4j.model.ValueFactory-java.util.UUID-">RDF4JFactory</a></span>(org.eclipse.rdf4j.model.ValueFactory valueFactory, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a> salt)</code> +<div class="block">Construct an <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a>.</div> +</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="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><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JDataset.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JDataset</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asDataset-org.eclipse.rdf4j.repository.Repository-org.apache.commons.rdf.rdf4j.RDF4JFactory.Option...-">asDataset</a></span>(org.eclipse.rdf4j.repository.Repository repository, + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.Option.html" title="enum in org.apache.commons.rdf.rdf4j">RDF4JFactory.Option</a>... options)</code> +<div class="block">Adapt an RDF4J <code>Repository</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Dataset.html" title="interface in org.apache.commons.rdf.api"><code>Dataset</code></a>.</div> +</td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JGraph</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asGraph-org.eclipse.rdf4j.model.Model-">asGraph</a></span>(org.eclipse.rdf4j.model.Model model)</code> +<div class="block">Adapt an RDF4J <code>Model</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a>.</div> +</td> +</tr> +<tr id="i2" class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JGraph</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asGraph-org.eclipse.rdf4j.repository.Repository-org.apache.commons.rdf.rdf4j.RDF4JFactory.Option...-">asGraph</a></span>(org.eclipse.rdf4j.repository.Repository repository, + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.Option.html" title="enum in org.apache.commons.rdf.rdf4j">RDF4JFactory.Option</a>... options)</code> +<div class="block">Adapt an RDF4J <code>Repository</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a>.</div> +</td> +</tr> +<tr id="i3" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JGraph</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asGraph-org.eclipse.rdf4j.repository.Repository-java.util.Set-org.apache.commons.rdf.rdf4j.RDF4JFactory.Option...-">asGraph</a></span>(org.eclipse.rdf4j.repository.Repository repository, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><? extends <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a>> contexts, + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.Option.html" title="enum in org.apache.commons.rdf.rdf4j">RDF4JFactory.Option</a>... option)</code> +<div class="block">Adapt an RDF4J <code>Repository</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a>.</div> +</td> +</tr> +<tr id="i4" class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JGraph</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asGraphUnion-org.eclipse.rdf4j.repository.Repository-org.apache.commons.rdf.rdf4j.RDF4JFactory.Option...-">asGraphUnion</a></span>(org.eclipse.rdf4j.repository.Repository repository, + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.Option.html" title="enum in org.apache.commons.rdf.rdf4j">RDF4JFactory.Option</a>... options)</code> +<div class="block">Adapt an RDF4J <code>Repository</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a>.</div> +</td> +</tr> +<tr id="i5" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JQuad.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JQuad</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asQuad-org.eclipse.rdf4j.model.Statement-">asQuad</a></span>(org.eclipse.rdf4j.model.Statement statement)</code> +<div class="block">Adapt a RDF4J <code>Statement</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api"><code>Quad</code></a>.</div> +</td> +</tr> +<tr id="i6" class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTerm.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JTerm</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asRDFTerm-org.eclipse.rdf4j.model.Value-">asRDFTerm</a></span>(org.eclipse.rdf4j.model.Value value)</code> +<div class="block">Adapt a RDF4J <code>Value</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api"><code>RDFTerm</code></a>.</div> +</td> +</tr> +<tr id="i7" class="rowColor"> +<td class="colFirst"><code>static <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTerm.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JTerm</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asRDFTerm-org.eclipse.rdf4j.model.Value-java.util.UUID-">asRDFTerm</a></span>(org.eclipse.rdf4j.model.Value value, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a> salt)</code> +<div class="block">Adapt a RDF4J <code>Value</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api"><code>RDFTerm</code></a>.</div> +</td> +</tr> +<tr id="i8" class="altColor"> +<td class="colFirst"><code>org.eclipse.rdf4j.model.Statement</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asStatement-org.apache.commons.rdf.api.TripleLike-">asStatement</a></span>(<a href="../../../../../org/apache/commons/rdf/api/TripleLike.html" title="interface in org.apache.commons.rdf.api">TripleLike</a> tripleLike)</code> +<div class="block">Adapt a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Triple.html" title="interface in org.apache.commons.rdf.api"><code>Triple</code></a> or <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api"><code>Quad</code></a> as a RDF4J + <code>Statement</code>.</div> +</td> +</tr> +<tr id="i9" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTriple.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JTriple</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asTriple-org.eclipse.rdf4j.model.Statement-">asTriple</a></span>(org.eclipse.rdf4j.model.Statement statement)</code> +<div class="block">Adapt a RDF4J <code>Statement</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Triple.html" title="interface in org.apache.commons.rdf.api"><code>Triple</code></a>.</div> +</td> +</tr> +<tr id="i10" class="altColor"> +<td class="colFirst"><code>org.eclipse.rdf4j.model.Value</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#asValue-org.apache.commons.rdf.api.RDFTerm-">asValue</a></span>(<a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api">RDFTerm</a> term)</code> +<div class="block">Adapt a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api"><code>RDFTerm</code></a> as a RDF4J <code>Value</code>.</div> +</td> +</tr> +<tr id="i11" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JBlankNode.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JBlankNode</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#createBlankNode--">createBlankNode</a></span>()</code> +<div class="block">Create a new blank node.</div> +</td> +</tr> +<tr id="i12" class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JBlankNode.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JBlankNode</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#createBlankNode-java.lang.String-">createBlankNode</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> name)</code> +<div class="block">Create a blank node based on the given name.</div> +</td> +</tr> +<tr id="i13" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JDataset.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JDataset</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#createDataset--">createDataset</a></span>()</code> +<div class="block">Create a new dataset.</div> +</td> +</tr> +<tr id="i14" class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JGraph</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#createGraph--">createGraph</a></span>()</code> +<div class="block">Create a new graph.</div> +</td> +</tr> +<tr id="i15" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JIRI.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JIRI</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#createIRI-java.lang.String-">createIRI</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">Create an IRI from a (possibly escaped) String.</div> +</td> +</tr> +<tr id="i16" class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JLiteral.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JLiteral</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#createLiteral-java.lang.String-">createLiteral</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> lexicalForm)</code> +<div class="block">Create a simple literal.</div> +</td> +</tr> +<tr id="i17" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/api/Literal.html" title="interface in org.apache.commons.rdf.api">Literal</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#createLiteral-java.lang.String-org.apache.commons.rdf.api.IRI-">createLiteral</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> lexicalForm, + <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> dataType)</code> +<div class="block">Create a literal with the specified data type.</div> +</td> +</tr> +<tr id="i18" class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/api/Literal.html" title="interface in org.apache.commons.rdf.api">Literal</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#createLiteral-java.lang.String-java.lang.String-">createLiteral</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> lexicalForm, + <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> languageTag)</code> +<div class="block">Create a language-tagged literal.</div> +</td> +</tr> +<tr id="i19" class="rowColor"> +<td class="colFirst"><code><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/rdf4j/RDF4JFactory.html#createQuad-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.IRI-org.apache.commons.rdf.api.RDFTerm-">createQuad</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">Create a quad.</div> +</td> +</tr> +<tr id="i20" class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTriple.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JTriple</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#createTriple-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.IRI-org.apache.commons.rdf.api.RDFTerm-">createTriple</a></span>(<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">Create a triple.</div> +</td> +</tr> +<tr id="i21" class="rowColor"> +<td class="colFirst"><code>org.eclipse.rdf4j.model.ValueFactory</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html#getValueFactory--">getValueFactory</a></span>()</code> </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#clone--" title="class or interface in java.lang">clone</a>, <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/ja va/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/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"> +<!-- ========= CONSTRUCTOR DETAIL ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor.detail"> +<!-- --> +</a> +<h3>Constructor Detail</h3> +<a name="RDF4JFactory--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>RDF4JFactory</h4> +<pre>public <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.131">RDF4JFactory</a>()</pre> +<div class="block">Construct an <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a>.</div> +</li> +</ul> +<a name="RDF4JFactory-org.eclipse.rdf4j.model.ValueFactory-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>RDF4JFactory</h4> +<pre>public <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.145">RDF4JFactory</a>(org.eclipse.rdf4j.model.ValueFactory valueFactory)</pre> +<div class="block">Construct an <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a>. + <p> + This constructor is intended for use with the value factory from + <code>Repository.getValueFactory()</code> when using + Repository-based graphs and datasets.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>valueFactory</code> - The RDF4J <code>ValueFactory</code> to use</dd> +</dl> +</li> +</ul> +<a name="RDF4JFactory-java.util.UUID-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>RDF4JFactory</h4> +<pre>public <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.160">RDF4JFactory</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a> salt)</pre> +<div class="block">Construct an <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a>. + <p> + This constructor may be used if reproducible + <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html#uniqueReference--"><code>BlankNode.uniqueReference()</code></a> in <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a> is desirable.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>salt</code> - An <a href="https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util"><code>UUID</code></a> salt to be used by any created + <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a>s for the purpose of + <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html#uniqueReference--"><code>BlankNode.uniqueReference()</code></a></dd> +</dl> +</li> +</ul> +<a name="RDF4JFactory-org.eclipse.rdf4j.model.ValueFactory-java.util.UUID-"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>RDF4JFactory</h4> +<pre>public <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.176">RDF4JFactory</a>(org.eclipse.rdf4j.model.ValueFactory valueFactory, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a> salt)</pre> +<div class="block">Construct an <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a>. + <p> + This constructor may be used if reproducible + <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html#uniqueReference--"><code>BlankNode.uniqueReference()</code></a> in <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a> is desirable.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>valueFactory</code> - The RDF4J <code>ValueFactory</code> to use</dd> +<dd><code>salt</code> - An <a href="https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util"><code>UUID</code></a> salt to be used by any created + <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a>s for the purpose of + <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html#uniqueReference--"><code>BlankNode.uniqueReference()</code></a></dd> +</dl> +</li> +</ul> +</li> +</ul> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="asQuad-org.eclipse.rdf4j.model.Statement-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asQuad</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JQuad.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JQuad</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.199">asQuad</a>(org.eclipse.rdf4j.model.Statement statement)</pre> +<div class="block">Adapt a RDF4J <code>Statement</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api"><code>Quad</code></a>. + <p> + For the purpose of <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a> equivalence, this method will use an + internal salt UUID that is unique per instance of + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a>. + <p> + <strong>NOTE:</strong> If combining RDF4J <code>Statement</code>s multiple + repositories or models, then their <code>BNode</code>s may have the same + <code>BNode.getID()</code>, which with this method would become equivalent + according to <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html#equals-java.lang.Object-"><code>BlankNode.equals(Object)</code></a> and + <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html#uniqueReference--"><code>BlankNode.uniqueReference()</code></a>, unless a separate + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a> instance is used per RDF4J repository/model.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>statement</code> - The statement to convert</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JQuad.html" title="interface in org.apache.commons.rdf.rdf4j"><code>RDF4JQuad</code></a> that is equivalent to the statement</dd> +</dl> +</li> +</ul> +<a name="asRDFTerm-org.eclipse.rdf4j.model.Value-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asRDFTerm</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTerm.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JTerm</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.232">asRDFTerm</a>(org.eclipse.rdf4j.model.Value value)</pre> +<div class="block">Adapt a RDF4J <code>Value</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api"><code>RDFTerm</code></a>. + <p> + The value will be of the same kind as the term, e.g. a + <code>BNode</code> is converted to a + <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a>, a + <code>IRI</code> is converted to a + <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api"><code>IRI</code></a> and a + <code>Literal</code>. is converted to a + <a href="../../../../../org/apache/commons/rdf/api/Literal.html" title="interface in org.apache.commons.rdf.api"><code>Literal</code></a> + <p> + For the purpose of <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a> equivalence, this method will use an + internal salt UUID that is unique per instance of + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a>. + <p> + <strong>NOTE:</strong> If combining RDF4J values from multiple + repositories or models, then their <code>BNode</code>s may have the same + <code>BNode.getID()</code>, which with this method would become equivalent + according to <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html#equals-java.lang.Object-"><code>BlankNode.equals(Object)</code></a> and + <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html#uniqueReference--"><code>BlankNode.uniqueReference()</code></a>, unless a separate + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a> instance is used per RDF4J repository/model.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>value</code> - The RDF4J <code>Value</code> to convert.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api"><code>RDFTerm</code></a> that corresponds to the RDF4J value</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 value is not a BNode, Literal or IRI</dd> +</dl> +</li> +</ul> +<a name="asRDFTerm-org.eclipse.rdf4j.model.Value-java.util.UUID-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asRDFTerm</h4> +<pre>public static <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTerm.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JTerm</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.259">asRDFTerm</a>(org.eclipse.rdf4j.model.Value value, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util">UUID</a> salt)</pre> +<div class="block">Adapt a RDF4J <code>Value</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api"><code>RDFTerm</code></a>. + <p> + The value will be of the same kind as the term, e.g. a + <code>BNode</code> is converted to a + <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a>, a + <code>IRI</code> is converted to a + <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api"><code>IRI</code></a> and a + <code>Literal</code>. is converted to a + <a href="../../../../../org/apache/commons/rdf/api/Literal.html" title="interface in org.apache.commons.rdf.api"><code>Literal</code></a></div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>value</code> - The RDF4J <code>Value</code> to convert.</dd> +<dd><code>salt</code> - A <a href="https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html?is-external=true" title="class or interface in java.util"><code>UUID</code></a> salt to use for uniquely mapping any + <code>BNode</code>s. The salt should typically be the same for + multiple statements in the same <code>Repository</code> or + <code>Model</code> to ensure <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html#equals-java.lang.Object-"><code>BlankNode.equals(Object)</code></a> and + <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html#uniqueReference--"><code>BlankNode.uniqueReference()</code></a> works as intended.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api"><code>RDFTerm</code></a> that corresponds to the RDF4J value</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 value is not a BNode, Literal or IRI</dd> +</dl> +</li> +</ul> +<a name="asDataset-org.eclipse.rdf4j.repository.Repository-org.apache.commons.rdf.rdf4j.RDF4JFactory.Option...-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asDataset</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JDataset.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JDataset</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.289">asDataset</a>(org.eclipse.rdf4j.repository.Repository repository, + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.Option.html" title="enum in org.apache.commons.rdf.rdf4j">RDF4JFactory.Option</a>... options)</pre> +<div class="block">Adapt an RDF4J <code>Repository</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Dataset.html" title="interface in org.apache.commons.rdf.api"><code>Dataset</code></a>. + <p> + Changes to the dataset are reflected in the repository, and vice versa. + <p> + <strong>Note:</strong> Some operations on the <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JDataset.html" title="interface in org.apache.commons.rdf.rdf4j"><code>RDF4JDataset</code></a> + requires the use of try-with-resources to close underlying + <code>RepositoryConnection</code>s, including + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JDataset.html#iterate--"><code>RDF4JDataset.iterate()</code></a>, + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JDataset.html#stream--"><code>RDF4JDataset.stream()</code></a> and <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JDataset.html#getGraphNames--"><code>RDF4JDataset.getGraphNames()</code></a>.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>repository</code> - RDF4J <code>Repository</code> to connect to.</dd> +<dd><code>options</code> - Zero or more <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.Option.html" title="enum in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory.Option</code></a></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A <a href="../../../../../org/apache/commons/rdf/api/Dataset.html" title="interface in org.apache.commons.rdf.api"><code>Dataset</code></a> backed by the RDF4J repository.</dd> +</dl> +</li> +</ul> +<a name="asGraph-org.eclipse.rdf4j.model.Model-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asGraph</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JGraph</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.305">asGraph</a>(org.eclipse.rdf4j.model.Model model)</pre> +<div class="block">Adapt an RDF4J <code>Model</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a>. + <p> + Changes to the graph are reflected in the model, and vice versa.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>model</code> - RDF4J <code>Model</code> to adapt.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>Adapted <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a>.</dd> +</dl> +</li> +</ul> +<a name="asGraph-org.eclipse.rdf4j.repository.Repository-org.apache.commons.rdf.rdf4j.RDF4JFactory.Option...-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asGraph</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JGraph</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.329">asGraph</a>(org.eclipse.rdf4j.repository.Repository repository, + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.Option.html" title="enum in org.apache.commons.rdf.rdf4j">RDF4JFactory.Option</a>... options)</pre> +<div class="block">Adapt an RDF4J <code>Repository</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a>. + <p> + The graph will only include triples in the default graph (equivalent to + context <code>new Resource[0]{null})</code> in RDF4J). + <p> + Changes to the graph are reflected in the repository, and vice versa. + <p> + <strong>Note:</strong> Some operations on the <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html" title="interface in org.apache.commons.rdf.rdf4j"><code>RDF4JGraph</code></a> + requires the use of try-with-resources to close underlying + <code>RepositoryConnection</code>s, including + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html#iterate--"><code>RDF4JGraph.iterate()</code></a> and + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html#stream--"><code>RDF4JGraph.stream()</code></a>.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>repository</code> - RDF4J <code>Repository</code> to connect to.</dd> +<dd><code>options</code> - Zero or more <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.Option.html" title="enum in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory.Option</code></a></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a> backed by the RDF4J repository.</dd> +</dl> +</li> +</ul> +<a name="asGraphUnion-org.eclipse.rdf4j.repository.Repository-org.apache.commons.rdf.rdf4j.RDF4JFactory.Option...-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asGraphUnion</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JGraph</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.350">asGraphUnion</a>(org.eclipse.rdf4j.repository.Repository repository, + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.Option.html" title="enum in org.apache.commons.rdf.rdf4j">RDF4JFactory.Option</a>... options)</pre> +<div class="block">Adapt an RDF4J <code>Repository</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a>. + <p> + The graph will include triples in any contexts (e.g. the union graph). + <p> + Changes to the graph are reflected in the repository, and vice versa.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>repository</code> - RDF4J <code>Repository</code> to connect to.</dd> +<dd><code>options</code> - Zero or more <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.Option.html" title="enum in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory.Option</code></a></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A union <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a> backed by the RDF4J repository.</dd> +</dl> +</li> +</ul> +<a name="asGraph-org.eclipse.rdf4j.repository.Repository-java.util.Set-org.apache.commons.rdf.rdf4j.RDF4JFactory.Option...-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asGraph</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JGraph</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.385">asGraph</a>(org.eclipse.rdf4j.repository.Repository repository, + <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><? extends <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api">BlankNodeOrIRI</a>> contexts, + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.Option.html" title="enum in org.apache.commons.rdf.rdf4j">RDF4JFactory.Option</a>... option)</pre> +<div class="block">Adapt an RDF4J <code>Repository</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a>. + <p> + The graph will include triples in the specified contexts. + <p> + Changes to the graph are reflected in the repository, and vice versa. + Triples added/removed to the graph are reflected in all the specified + contexts. + <p> + <strong>Note:</strong> Some operations on the <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html" title="interface in org.apache.commons.rdf.rdf4j"><code>RDF4JGraph</code></a> + requires the use of try-with-resources to close underlying + <code>RepositoryConnection</code>s, including + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html#iterate--"><code>RDF4JGraph.iterate()</code></a> and + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html#stream--"><code>RDF4JGraph.stream()</code></a>.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>repository</code> - RDF4J <code>Repository</code> to connect to.</dd> +<dd><code>contexts</code> - A <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util"><code>Set</code></a> of <a href="../../../../../org/apache/commons/rdf/api/BlankNodeOrIRI.html" title="interface in org.apache.commons.rdf.api"><code>BlankNodeOrIRI</code></a> specifying the graph + names to use as a context. The set may include the value + <code>null</code> to indicate the default graph. The empty set + indicates any context, e.g. the <em>union graph</em>.</dd> +<dd><code>option</code> - Zero or more <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.Option.html" title="enum in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory.Option</code></a>s</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A <a href="../../../../../org/apache/commons/rdf/api/Graph.html" title="interface in org.apache.commons.rdf.api"><code>Graph</code></a> backed by the RDF4J repository.</dd> +</dl> +</li> +</ul> +<a name="asStatement-org.apache.commons.rdf.api.TripleLike-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asStatement</h4> +<pre>public org.eclipse.rdf4j.model.Statement <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.411">asStatement</a>(<a href="../../../../../org/apache/commons/rdf/api/TripleLike.html" title="interface in org.apache.commons.rdf.api">TripleLike</a> tripleLike)</pre> +<div class="block">Adapt a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Triple.html" title="interface in org.apache.commons.rdf.api"><code>Triple</code></a> or <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api"><code>Quad</code></a> as a RDF4J + <code>Statement</code>. + <p> + If the <code>tripleLike</code> argument is an <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTriple.html" title="interface in org.apache.commons.rdf.rdf4j"><code>RDF4JTriple</code></a> or a + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JQuad.html" title="interface in org.apache.commons.rdf.rdf4j"><code>RDF4JQuad</code></a>, then its <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTripleLike.html#asStatement--"><code>RDF4JTripleLike.asStatement()</code></a> is + returned as-is. Note that this means that a <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTriple.html" title="interface in org.apache.commons.rdf.rdf4j"><code>RDF4JTriple</code></a> would + preserve its <code>Statement.getContext()</code>, and that any + <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a>s would be deemed equivalent in RDF4J if they have the + same <code>BNode.getID()</code>.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>tripleLike</code> - A <a href="../../../../../org/apache/commons/rdf/api/Triple.html" title="interface in org.apache.commons.rdf.api"><code>Triple</code></a> or <a href="../../../../../org/apache/commons/rdf/api/Quad.html" title="interface in org.apache.commons.rdf.api"><code>Quad</code></a> to adapt</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A corresponding <code>Statement</code></dd> +</dl> +</li> +</ul> +<a name="asTriple-org.eclipse.rdf4j.model.Statement-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asTriple</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTriple.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JTriple</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.449">asTriple</a>(org.eclipse.rdf4j.model.Statement statement)</pre> +<div class="block">Adapt a RDF4J <code>Statement</code> as a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/Triple.html" title="interface in org.apache.commons.rdf.api"><code>Triple</code></a>. + <p> + For the purpose of <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a> equivalence, this method will use an + internal salt UUID that is unique per instance of + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a>. + <p> + <strong>NOTE:</strong> If combining RDF4J statements from multiple + repositories or models, then their <code>BNode</code>s may have the same + <code>BNode.getID()</code>, which with this method would become equivalent + according to <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html#equals-java.lang.Object-"><code>BlankNode.equals(Object)</code></a> and + <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html#uniqueReference--"><code>BlankNode.uniqueReference()</code></a>, unless a separate + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JFactory.html" title="class in org.apache.commons.rdf.rdf4j"><code>RDF4JFactory</code></a> instance is used per RDF4J repository/model.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>statement</code> - The RDF4J <code>Statement</code> to adapt.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTriple.html" title="interface in org.apache.commons.rdf.rdf4j"><code>RDF4JTriple</code></a> that is equivalent to the statement</dd> +</dl> +</li> +</ul> +<a name="asValue-org.apache.commons.rdf.api.RDFTerm-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>asValue</h4> +<pre>public org.eclipse.rdf4j.model.Value <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.476">asValue</a>(<a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api">RDFTerm</a> term)</pre> +<div class="block">Adapt a Commons RDF <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api"><code>RDFTerm</code></a> as a RDF4J <code>Value</code>. + <p> + The value will be of the same kind as the term, e.g. a + <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a> is converted to a + <code>BNode</code>, a + <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api"><code>IRI</code></a> is converted to a + <code>IRI</code> and a + <a href="../../../../../org/apache/commons/rdf/api/Literal.html" title="interface in org.apache.commons.rdf.api"><code>Literal</code></a> is converted to a + <code>Literal</code>. + <p> + If the provided <a href="../../../../../org/apache/commons/rdf/api/RDFTerm.html" title="interface in org.apache.commons.rdf.api"><code>RDFTerm</code></a> is <code>null</code>, then the returned + value is <code>null</code>. + <p> + If the provided term is an instance of <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTerm.html" title="interface in org.apache.commons.rdf.rdf4j"><code>RDF4JTerm</code></a>, then the + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTerm.html#asValue--"><code>RDF4JTerm.asValue()</code></a> is returned without any conversion. Note that + this could mean that a <code>Value</code> from a different kind of + <code>ValueFactory</code> could be returned.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>term</code> - RDFTerm to adapt to RDF4J Value</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>Adapted RDF4J <code>Value</code></dd> +</dl> +</li> +</ul> +<a name="createBlankNode--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createBlankNode</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JBlankNode.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JBlankNode</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.511">createBlankNode</a>()</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html#createBlankNode--">RDFTermFactory</a></code></span></div> +<div class="block">Create a new blank node. + <p> + The returned blank node MUST NOT be equal to any existing + <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a> instances according to <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html#equals-java.lang.Object-"><code>BlankNode.equals(Object)</code></a>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html#createBlankNode--">createBlankNode</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html" title="interface in org.apache.commons.rdf.api">RDFTermFactory</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A new, unique <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a></dd> +</dl> +</li> +</ul> +<a name="createBlankNode-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createBlankNode</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JBlankNode.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JBlankNode</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.517">createBlankNode</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> name)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html#createBlankNode-java.lang.String-">RDFTermFactory</a></code></span></div> +<div class="block">Create a blank node based on the given name. + <p> + All <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a>s created with the given <code>name</code> + <em>on a particular instance</em> of <code>RDFTermFactory</code> MUST be + equivalent according to <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html#equals-java.lang.Object-"><code>BlankNode.equals(Object)</code></a>, + <p> + The returned BlankNode MUST NOT be equal to <code>BlankNode</code> + instances returned for any other <code>name</code> or those returned from + <a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html#createBlankNode--"><code>RDFTermFactory.createBlankNode()</code></a>. + <p> + The returned BlankNode SHOULD NOT be equivalent to any BlankNodes created + on a <em>different</em> <code>RDFTermFactory</code> instance, e.g. + different instances of <code>RDFTermFactory</code> should produce + different blank nodes for the same <code>name</code> unless they + purposely are intending to create equivalent <a href="../../../../../org/apache/commons/rdf/api/BlankNode.html" title="interface in org.apache.commons.rdf.api"><code>BlankNode</code></a> + instances (e.g. a reinstated <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io"><code>Serializable</code></a> factory).</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html#createBlankNode-java.lang.String-">createBlankNode</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html" title="interface in org.apache.commons.rdf.api">RDFTermFactory</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>name</code> - A non-empty, non-null, String that is unique to this blank + node in the context of this <a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html" title="interface in org.apache.commons.rdf.api"><code>RDFTermFactory</code></a>.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A BlankNode for the given name</dd> +</dl> +</li> +</ul> +<a name="createDataset--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createDataset</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JDataset.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JDataset</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.533">createDataset</a>()</pre> +<div class="block">Create a new dataset. + + It is undefined if the dataset will be persisted by any underlying storage + mechanism. + <p> + <strong>Note:</strong> Some operations on the <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JDataset.html" title="interface in org.apache.commons.rdf.rdf4j"><code>RDF4JDataset</code></a> + requires the use of try-with-resources to close underlying + <code>RepositoryConnection</code>s, including + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JDataset.html#iterate--"><code>RDF4JDataset.iterate()</code></a>, + <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JDataset.html#stream--"><code>RDF4JDataset.stream()</code></a> and <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JDataset.html#getGraphNames--"><code>RDF4JDataset.getGraphNames()</code></a>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html#createDataset--">createDataset</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html" title="interface in org.apache.commons.rdf.api">RDFTermFactory</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A new Dataset</dd> +</dl> +</li> +</ul> +<a name="createGraph--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createGraph</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JGraph.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JGraph</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.540">createGraph</a>()</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html#createGraph--">RDFTermFactory</a></code></span></div> +<div class="block">Create a new graph. + + It is undefined if the graph will be persisted by any underlying storage + mechanism.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html#createGraph--">createGraph</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html" title="interface in org.apache.commons.rdf.api">RDFTermFactory</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A new Graph</dd> +</dl> +</li> +</ul> +<a name="createIRI-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createIRI</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JIRI.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JIRI</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.545">createIRI</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/api/RDFTermFactory.html#createIRI-java.lang.String-">RDFTermFactory</a></code></span></div> +<div class="block">Create an IRI from a (possibly escaped) String. + + The provided iri string MUST be valid according to the <a + href="http://www.w3.org/TR/rdf11-concepts/#dfn-iri">W3C RDF-1.1 IRI</a> + definition.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html#createIRI-java.lang.String-">createIRI</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html" title="interface in org.apache.commons.rdf.api">RDFTermFactory</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>iri</code> - Internationalized Resource Identifier</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A new 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 provided string is not acceptable, e.g. does not + conform to the RFC3987 syntax.</dd> +</dl> +</li> +</ul> +<a name="createLiteral-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createLiteral</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JLiteral.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JLiteral</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.550">createLiteral</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> lexicalForm) + 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/api/RDFTermFactory.html#createLiteral-java.lang.String-">RDFTermFactory</a></code></span></div> +<div class="block">Create a simple literal. + + The provided lexical form should not be escaped in any sense, e.g. should + not include "quotes" unless those are part of the literal value. + + The returned Literal MUST have a <a href="../../../../../org/apache/commons/rdf/api/Literal.html#getLexicalForm--"><code>Literal.getLexicalForm()</code></a> that is + equal to the provided lexical form, MUST NOT have a + <a href="../../../../../org/apache/commons/rdf/api/Literal.html#getLanguageTag--"><code>Literal.getLanguageTag()</code></a> present, and SHOULD return a + <a href="../../../../../org/apache/commons/rdf/api/Literal.html#getDatatype--"><code>Literal.getDatatype()</code></a> that is equal to the IRI + <code>http://www.w3.org/2001/XMLSchema#string</code>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html#createLiteral-java.lang.String-">createLiteral</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html" title="interface in org.apache.commons.rdf.api">RDFTermFactory</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>lexicalForm</code> - The literal value in plain text</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The created Literal</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 provided lexicalForm is not acceptable, e.g. because + it is too large for an underlying storage.</dd> +</dl> +</li> +</ul> +<a name="createLiteral-java.lang.String-org.apache.commons.rdf.api.IRI-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createLiteral</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/api/Literal.html" title="interface in org.apache.commons.rdf.api">Literal</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.557">createLiteral</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> lexicalForm, + <a href="../../../../../org/apache/commons/rdf/api/IRI.html" title="interface in org.apache.commons.rdf.api">IRI</a> dataType) + 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/api/RDFTermFactory.html#createLiteral-java.lang.String-org.apache.commons.rdf.api.IRI-">RDFTermFactory</a></code></span></div> +<div class="block">Create a literal with the specified data type. + + The provided lexical form should not be escaped in any sense, e.g. should + not include "quotes" unless those are part of the literal value. + + It is RECOMMENDED that the provided dataType is one of the <a + href="http://www.w3.org/TR/rdf11-concepts/#xsd-datatypes">RDF-compatible + XSD types</a>. + + The provided lexical form SHOULD be in the <a + href="http://www.w3.org/TR/rdf11-concepts/#dfn-lexical-space">lexical + space</a> of the provided dataType. + + The returned Literal SHOULD have a <a href="../../../../../org/apache/commons/rdf/api/Literal.html#getLexicalForm--"><code>Literal.getLexicalForm()</code></a> that + is equal to the provided lexicalForm, MUST NOT have a + <a href="../../../../../org/apache/commons/rdf/api/Literal.html#getLanguageTag--"><code>Literal.getLanguageTag()</code></a> present, and MUST return a + <a href="../../../../../org/apache/commons/rdf/api/Literal.html#getDatatype--"><code>Literal.getDatatype()</code></a> that is equivalent to the provided dataType + IRI.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html#createLiteral-java.lang.String-org.apache.commons.rdf.api.IRI-">createLiteral</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html" title="interface in org.apache.commons.rdf.api">RDFTermFactory</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>lexicalForm</code> - The literal value</dd> +<dd><code>dataType</code> - The data type IRI for the literal value, e.g. + <code>http://www.w3.org/2001/XMLSchema#integer</code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The created Literal</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 any of the provided arguments are not acceptable, e.g. + because the provided dataType is not permitted.</dd> +</dl> +</li> +</ul> +<a name="createLiteral-java.lang.String-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>createLiteral</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/api/Literal.html" title="interface in org.apache.commons.rdf.api">Literal</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.565">createLiteral</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> lexicalForm, + <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> languageTag) + 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/api/RDFTermFactory.html#createLiteral-java.lang.String-java.lang.String-">RDFTermFactory</a></code></span></div> +<div class="block">Create a language-tagged literal. + + The provided lexical form should not be escaped in any sense, e.g. should + not include "quotes" unless those are part of the literal value. + + The provided language tag MUST be valid according to <a + href="http://tools.ietf.org/html/bcp47">BCP47</a>, e.g. <code>en</code>. + + The provided language tag <a + href="http://www.w3.org/TR/rdf11-concepts/#dfn-language-tagged-string" + >MAY be converted to lower case</a>. + + The returned Literal SHOULD have a <a href="../../../../../org/apache/commons/rdf/api/Literal.html#getLexicalForm--"><code>Literal.getLexicalForm()</code></a> which + is equal to the provided lexicalForm, MUST return a + <a href="../../../../../org/apache/commons/rdf/api/Literal.html#getDatatype--"><code>Literal.getDatatype()</code></a> that is equal to the IRI + <code>http://www.w3.org/1999/02/22-rdf-syntax-ns#langString</code>, and + MUST have a <a href="../../../../../org/apache/commons/rdf/api/Literal.html#getLanguageTag--"><code>Literal.getLanguageTag()</code></a> present which SHOULD be + equal to the provided language tag (compared as + <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true#toLowerCase-java.util.Locale-" title="class or interface in java.lang"><code>String.toLowerCase(Locale)</code></a> using <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html?is-external=true#ENGLISH" title="class or interface in java.util"><code>Locale.ENGLISH</code></a>).</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html#createLiteral-java.lang.String-java.lang.String-">createLiteral</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html" title="interface in org.apache.commons.rdf.api">RDFTermFactory</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>lexicalForm</code> - The literal value</dd> +<dd><code>languageTag</code> - The non-empty language tag as defined by <a + href="http://tools.ietf.org/html/bcp47">BCP47</a></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The created Literal</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 provided values are not acceptable, e.g. because the + languageTag was syntactically invalid.</dd> +</dl> +</li> +</ul> +<a name="createTriple-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>createTriple</h4> +<pre>public <a href="../../../../../org/apache/commons/rdf/rdf4j/RDF4JTriple.html" title="interface in org.apache.commons.rdf.rdf4j">RDF4JTriple</a> <a href="../../../../../src-html/org/apache/commons/rdf/rdf4j/RDF4JFactory.html#line.572">createTriple</a>(<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/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/api/RDFTermFactory.html#createTriple-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.IRI-org.apache.commons.rdf.api.RDFTerm-">RDFTermFactory</a></code></span></div> +<div class="block">Create a triple. + + The returned Triple SHOULD have a <a href="../../../../../org/apache/commons/rdf/api/Triple.html#getSubject--"><code>Triple.getSubject()</code></a> that is + equal to the provided subject, a <a href="../../../../../org/apache/commons/rdf/api/Triple.html#getPredicate--"><code>Triple.getPredicate()</code></a> that is + equal to the provided predicate, and a <a href="../../../../../org/apache/commons/rdf/api/Triple.html#getObject--"><code>Triple.getObject()</code></a> that is + equal to the provided object.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html#createTriple-org.apache.commons.rdf.api.BlankNodeOrIRI-org.apache.commons.rdf.api.IRI-org.apache.commons.rdf.api.RDFTerm-">createTriple</a></code> in interface <code><a href="../../../../../org/apache/commons/rdf/api/RDFTermFactory.html" title="interface in org.apache.commons.rdf.api">RDFTermFactory</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>subject</code> - The IRI or BlankNode that is the subject of the triple</dd> +<dd><code>predicate</code> - The IRI that is the predicate of the triple</dd> +<dd><code>object</code> - The IRI, BlankNode or Literal that is the object of the triple</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The created Triple</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 any of the provided arguments are not acceptable, e.g. + because a Literal has a lexicalForm that is too large for an + underlying storage.</dd> +</dl> +</li> +</ul> +<a name="createQuad-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>createQuad</h4>
[... 114 lines stripped ...]