public class PlaysProperty extends Object
plays property on an Instance.
This property relates an Instance and a RoleType. It indicates
that an Instance must be a role-player in a Relation where it plays
the role of the RoleType.| Constructor and Description |
|---|
PlaysProperty(VarAdmin role) |
| Modifier and Type | Method and Description |
|---|---|
default void |
buildString(StringBuilder builder) |
void |
checkValid(GraknGraph graph,
VarAdmin var)
Check if the given property can be used in a match query
|
void |
delete(GraknGraph graph,
Concept concept)
Delete the given property from the graph, if possible.
|
java.util.stream.Stream<VarAdmin> |
getImplicitInnerVars() |
java.util.stream.Stream<VarAdmin> |
getInnerVars() |
String |
getName() |
String |
getProperty() |
VarAdmin |
getRole() |
java.util.stream.Stream<VarAdmin> |
getTypes() |
void |
insert(InsertQueryExecutor insertQueryExecutor,
Concept concept)
Insert the given property into the graph, if possible.
|
Atomic |
mapToAtom(VarAdmin var,
Set<VarAdmin> vars,
ReasonerQuery parent) |
Collection<EquivalentFragmentSet> |
match(VarName start)
Return a collection of
EquivalentFragmentSet to match the given property in the graph |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckInsertable, checkValid, delete, insert, modifyShortcutTraversalgetImplicitInnerVars, graqlString, isUniquepublic PlaysProperty(VarAdmin role)
public VarAdmin getRole()
public String getName()
public String getProperty()
public java.util.stream.Stream<VarAdmin> getTypes()
getTypes in interface VarPropertypublic java.util.stream.Stream<VarAdmin> getInnerVars()
getInnerVars in interface VarPropertygetInnerVars in interface VarPropertyInternalpublic Collection<EquivalentFragmentSet> match(VarName start)
VarPropertyInternalEquivalentFragmentSet to match the given property in the graphmatch in interface VarPropertyInternalpublic Atomic mapToAtom(VarAdmin var, Set<VarAdmin> vars, ReasonerQuery parent)
mapToAtom in interface VarPropertypublic void buildString(StringBuilder builder)
buildString in interface VarPropertypublic final void checkValid(GraknGraph graph, VarAdmin 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<VarAdmin> getImplicitInnerVars()
getImplicitInnerVars in interface VarPropertyCopyright © 2017 Grakn Labs Ltd. All rights reserved.