public class Neo4jStore extends GraphDBStore
Constructor and Description |
---|
Neo4jStore(File neo4jDirectory) |
Neo4jStore(org.neo4j.graphdb.GraphDatabaseService graph) |
Neo4jStore(String filepath) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Atom atom)
Add the specified atom to this atom set if is not already present.
|
boolean |
addAll(CloseableIterator<? extends Atom> it)
Add the specified atom stream to this atom set.
|
CloseableIterator<Atom> |
atomsByPredicate(Predicate p)
Returns an iterator over all atoms with the specified predicate.
|
void |
clear() |
void |
close() |
boolean |
contains(Atom atom)
Returns true if this atom set contains the specified atom.
|
TermGenerator |
getFreshSymbolGenerator() |
Set<Predicate> |
getPredicates()
Returns a Set of all predicates in this atom set.
|
Set<Term> |
getTerms()
Returns a Set of all terms in this atom set.
|
Set<Term> |
getTerms(Term.Type type)
Deprecated.
|
boolean |
isWriteable() |
CloseableIterator<Atom> |
iterator()
Returns an iterator over the atoms in this atom set.
|
CloseableIterator<Atom> |
match(Atom atom)
Returns an iterator over atoms that match predicate and constants from
the specified atom.
|
CloseableIterator<Predicate> |
predicatesIterator()
Returns an iterator over all predicates in this atom set.
|
boolean |
remove(Atom atom)
Remove the specified atom from this this atom set.
|
boolean |
removeAll(CloseableIterator<? extends Atom> it)
Remove the specified atom stream from this atom set.
|
CloseableIterator<Term> |
termsByPredicatePosition(Predicate p,
int position)
Returns an iterator over terms which are in a specific position in at
least one atom with the specified predicate.
|
CloseableIterator<Term> |
termsIterator()
Returns an iterator over all terms in this atom set.
|
CloseableIterator<Term> |
termsIterator(Term.Type type)
Deprecated.
|
createBatchProcessor, getDomainSize, size
addAll, constantsIterator, equals, equals, getConstants, getLiterals, getVariables, isEmpty, isSubSetOf, literalsIterator, removeAll, toString, variablesIterator
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createBatchProcessor, getDomainSize, size
addAll, constantsIterator, getConstants, getLiterals, getVariables, isEmpty, isSubSetOf, literalsIterator, removeAll, variablesIterator
public Neo4jStore(org.neo4j.graphdb.GraphDatabaseService graph)
graph
- public Neo4jStore(String filepath)
filepath
- public Neo4jStore(File neo4jDirectory)
neo4jDirectory
- public boolean add(Atom atom)
AtomSet
atom
- - atom to be added to this atom setpublic boolean addAll(CloseableIterator<? extends Atom> it) throws AtomSetException
AtomSet
addAll
in interface AtomSet
addAll
in class AbstractAtomSet
AtomSetException
public boolean remove(Atom atom)
AtomSet
atom
- - the atom to be removedpublic boolean removeAll(CloseableIterator<? extends Atom> it) throws AtomSetException
AtomSet
removeAll
in interface AtomSet
removeAll
in class AbstractAtomSet
it
- - the atom stream to be removed.AtomSetException
public CloseableIterator<Atom> iterator()
AtomSet
public CloseableIterator<Term> termsIterator() throws AtomSetException
AtomSet
AtomSetException
public Set<Term> getTerms() throws AtomSetException
AtomSet
getTerms
in interface AtomSet
getTerms
in class AbstractAtomSet
AtomSetException
@Deprecated public CloseableIterator<Term> termsIterator(Term.Type type) throws AtomSetException
AtomSet
AtomSet.variablesIterator()
, AtomSet.constantsIterator()
or AtomSet.literalsIterator()
instead.
AtomSetException
@Deprecated public Set<Term> getTerms(Term.Type type) throws AtomSetException
AtomSet
AtomSet.getVariables()
, AtomSet.getConstants()
or AtomSet.getLiterals()
instead.
getTerms
in interface AtomSet
getTerms
in class AbstractAtomSet
AtomSetException
public CloseableIterator<Predicate> predicatesIterator() throws AtomSetException
AtomSet
AtomSetException
public Set<Predicate> getPredicates() throws AtomSetException
AtomSet
getPredicates
in interface AtomSet
getPredicates
in class AbstractAtomSet
AtomSetException
public void clear()
public boolean contains(Atom atom)
AtomSet
contains
in interface AtomSet
contains
in class AbstractAtomSet
public CloseableIterator<Atom> match(Atom atom)
AtomSet
public CloseableIterator<Atom> atomsByPredicate(Predicate p) throws AtomSetException
AtomSet
AtomSetException
public CloseableIterator<Term> termsByPredicatePosition(Predicate p, int position) throws AtomSetException
AtomSet
position
- the term position in atoms, positions starts from 0.AtomSetException
public void close()
public TermGenerator getFreshSymbolGenerator()
public boolean isWriteable()
Copyright © 2014–2018 GraphIK (INRIA - LIRMM). All rights reserved.