public class IsaProperty extends Object implements UniqueVarProperty
isa property on a Instance.
This property can be queried and inserted.
THe property is defined as a relationship between an Instance and a Type.
When matching, any subtyping is respected. For example, if we have $bob isa man, man sub person,
person sub entity then it follows that $bob isa person and bob isa entity.| Constructor and Description |
|---|
IsaProperty(VarPatternAdmin type) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisUniquecheckInsertable, checkValid, delete, insertgetImplicitInnerVars, graqlStringpublic IsaProperty(VarPatternAdmin type)
public VarPatternAdmin getType()
public String getName()
public String getProperty()
public Collection<EquivalentFragmentSet> match(Var start)
VarPropertyInternalEquivalentFragmentSet to match the given property in the graphmatch in interface VarPropertyInternalpublic java.util.stream.Stream<VarPatternAdmin> getTypes()
getTypes in interface VarPropertypublic java.util.stream.Stream<VarPatternAdmin> getInnerVars()
getInnerVars in interface VarPropertygetInnerVars in interface VarPropertyInternalpublic void checkValidProperty(GraknGraph graph, VarPatternAdmin var) throws IllegalStateException
IllegalStateExceptionpublic Atomic mapToAtom(VarPatternAdmin var, Set<VarPatternAdmin> vars, ReasonerQuery parent)
mapToAtom in interface VarPropertypublic void buildString(StringBuilder builder)
buildString in interface VarPropertypublic final void checkValid(GraknGraph graph, VarPatternAdmin var) throws IllegalStateException
VarPropertyInternalcheckValid in interface VarPropertyInternalIllegalStateExceptionpublic void insert(InsertQueryExecutor insertQueryExecutor, Concept concept) throws IllegalStateException
VarPropertyInternalinsert in interface VarPropertyInternalinsertQueryExecutor - the instance handling the insert queryconcept - the concept to insert a property onIllegalStateExceptionpublic void delete(GraknGraph graph, Concept concept)
VarPropertyInternaldelete in interface VarPropertyInternalgraph - the graph to operate onconcept - the concept to delete properties ofpublic java.util.stream.Stream<VarPatternAdmin> getImplicitInnerVars()
getImplicitInnerVars in interface VarPropertyCopyright © 2017 Grakn Labs Ltd. All rights reserved.