|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fuberlin.wiwiss.ng4j.impl.NamedGraphSetIO
de.fuberlin.wiwiss.ng4j.impl.NamedGraphSetBase
public abstract class NamedGraphSetBase
| Constructor Summary | |
|---|---|
NamedGraphSetBase()
|
|
| Method Summary | |
|---|---|
void |
addQuad(Quad quad)
Adds a quad to the NamedGraphSet. |
boolean |
containsQuad(Quad pattern)
Tells wether the NamedGraphSet contains a quad or quads matching a pattern. |
int |
countQuads()
Counts the Quads in the NamedGraphSet. |
Iterator |
findQuads(Node graphName,
Node subject,
Node predicate,
Node object)
Finds Quads that match a pattern. |
Iterator |
findQuads(Quad pattern)
Finds Quads that match a quad pattern. |
void |
removeQuad(Quad pattern)
Deletes Quads from the NamedGraphSet. |
| Methods inherited from class de.fuberlin.wiwiss.ng4j.impl.NamedGraphSetIO |
|---|
read, read, read, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.fuberlin.wiwiss.ng4j.NamedGraphSet |
|---|
addGraph, asJenaGraph, asJenaModel, clear, close, containsGraph, containsGraph, countGraphs, createGraph, createGraph, getGraph, getGraph, isEmpty, listGraphs, read, read, read, removeGraph, removeGraph, write, write |
| Constructor Detail |
|---|
public NamedGraphSetBase()
| Method Detail |
|---|
public void addQuad(Quad quad)
NamedGraphSet
addQuad in interface NamedGraphSetquad - A quad to be added to the NamedGraphSetpublic boolean containsQuad(Quad pattern)
NamedGraphSetQuad
instances with Node.ANY in one or more positions.
containsQuad in interface NamedGraphSetpattern - A quad or quad pattern
public int countQuads()
NamedGraphSet
countQuads in interface NamedGraphSet
public Iterator findQuads(Node graphName,
Node subject,
Node predicate,
Node object)
NamedGraphSetNode.ANY to match everything in that position.
findQuads in interface NamedGraphSetgraphName - The graph to find triples fromsubject - The subject to be matchedpredicate - The predicate to be matchedobject - The object to be matched
Quads that match the patternpublic Iterator findQuads(Quad pattern)
NamedGraphSetNode.ANY).
findQuads in interface NamedGraphSetpattern - A quad or quad pattern
Quads that match the patternpublic void removeQuad(Quad pattern)
NamedGraphSetNode.ANY).
All matching Quads will be deleted. If no Quads match, nothing
happens. This operation will not delete any NamedGraphs from the set.
Empty NamedGraphs will be retained.
removeQuad in interface NamedGraphSetpattern - A quad or quad pattern to be deleted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||