T - SchemaConcept type to convert frompublic interface SchemaConceptConverter<T extends SchemaConcept>
Interface for conversion between compatible SchemaConcepts.
NB: assumes MATCH semantics - all types and their subs are considered.
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<Role> |
toCompatibleRoles(T entryConcept) |
default com.google.common.collect.Multimap<RelationshipType,Role> |
toRelationshipMultimap(T entryConcept)
convert a given type to a map of relation types in which it can play roles
and the corresponding role types including entity type hierarchy
|
default com.google.common.collect.Multimap<RelationshipType,Role> toRelationshipMultimap(T entryConcept)
entryConcept - to be convertedjava.util.stream.Stream<Role> toCompatibleRoles(T entryConcept)
entryConcept - to be convertedRoles that are compatible with this SchemaConceptCopyright © 2017 Grakn Labs Ltd. All rights reserved.