Skip to content

Commit

Permalink
DataFactory methods to create from existing term and quad | closes #137
Browse files Browse the repository at this point in the history
  • Loading branch information
elf-pavlik committed Feb 15, 2019
1 parent 28385a7 commit 52c631d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ <h3><dfn>DataFactory</dfn> interface</h3>
Variable variable(string value);
DefaultGraph defaultGraph();
Quad quad(Term subject, Term predicate, Term object, optional Term? graph);
Term fromTerm(Term original);
Quad fromQuad(Quad original);
};
</pre>

Expand Down Expand Up @@ -369,6 +371,14 @@ <h3><dfn>DataFactory</dfn> interface</h3>
If <code>graph</code> is <code>undefined</code> or <code>null</code>
it MUST set <code>graph</code> to a <code>DefaultGraph</code>.
</p>
<p>
<dfn>fromTerm()</dfn> returns a new instance of specific <code>Term</code> subclass,
which passed to <code>original.equals()</code> returns <code>true</code>
</p>
<p>
<dfn>fromQuad()</dfn> returns a new instance of <code>Quad</code>,
which passed to <code>original.equals()</code> returns <code>true</code>
</p>
</section>
</section>

Expand Down

0 comments on commit 52c631d

Please sign in to comment.