public class DependentsSpec
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
DependentsSpec() |
Modifier and Type | Method and Description |
---|---|
void |
add(DependentsSpec spec)
Add dependencies.
|
void |
addDependent(Item verb)
Add a simple dependency
|
void |
addDependent(Item verb,
DependentsSpec subDependents)
Add a complex dependency
|
java.util.Set<Item> |
getImmediatelyDependentItems(Item subject,
Item verb,
TripleStore store,
StoreSession session)
Get the items that are the objects of triples with a given
subject and verb.
|
DependentsSpec |
getSubDependents(Item verb)
Get the dependencies on the objects of a verb
|
java.util.Set<Item> |
getVerbs()
Get the verbs defining first-level dependencies
|
public void addDependent(Item verb)
verb
- a verb whose objects have no items dependent on them.public void addDependent(Item verb, DependentsSpec subDependents)
verb
- a verb whose objects have items dependent on them.subDependents
- a specification of the dependencies on the
objects of the verbpublic DependentsSpec getSubDependents(Item verb)
verb
- a verbpublic java.util.Set<Item> getVerbs()
public void add(DependentsSpec spec)
spec
- the dependencies to be addedpublic java.util.Set<Item> getImmediatelyDependentItems(Item subject, Item verb, TripleStore store, StoreSession session) throws java.lang.Exception
subject
- the given subjectverb
- the given verbstore
- the triple store containing the triplessession
- the requesting store sessionjava.lang.Exception