@CheckReturnValue public Label getLabel(Label attributeType) { return attributeType.map(attribute -> String.format(label, attribute)); }
/** * Make a name for the role type corresponding to the object (i.e. range) of an OWL object * property. * * @param relationLabel The label of the Grakn {@link RelationshipType}. */ default Label objectRole(Label relationLabel) { return relationLabel.map(relation -> OwlModel.OBJECT.owlname() + "-" + relation); } /**
/** * Make a name for the role type corresponding to the subject (i.e. domain) of an OWL object * property. * * @param relationLabel The label of the Grakn {@link RelationshipType}. */ default Label subjectRole(Label relationLabel) { return relationLabel.map(relation -> OwlModel.SUBJECT.owlname() + "-" + relation); } /**