public interface Namer
A Namer provides functions to generate Grakn ontology names (IDs for
types, relations, roles etc.) from OWL ontology elements. All methods have default
implementations.
The implementation is not configurable: future work may provide for configuring prefixes, or some mapping schema from OWL to Grakn prefixes, including the standard OWL/RDF prefixes etc. Such mapping schema should be based on some practical experience with the migration tool.
| Modifier and Type | Method and Description |
|---|---|
default String |
classEntityTypeLabel(org.semanticweb.owlapi.model.IRI classIri)
Generate the name of a Grakn entity type from the IRI of an OWL class
|
default Label |
entityRole(Label resourceLabel)
The name of the entity role type in an entity-role relation representing an OWL data property
|
default String |
fromIri(org.semanticweb.owlapi.model.IRI iri)
Create and return a name from a full IRI.
|
default String |
fromIri(String iriAsString) |
default String |
individualEntityName(org.semanticweb.owlapi.model.IRI individualIri)
Generate the name of a Grakn entity from the IRI of an OWL individual
|
default String |
objectPropertyName(org.semanticweb.owlapi.model.IRI propIri)
Generate the name of a Grakn relation type from the IRI of an OWL object property
|
default Label |
objectRole(Label relationLabel)
Make a name for the role type corresponding to the object (i.e.
|
default String |
resourceRelation(org.semanticweb.owlapi.model.IRI dataPropertyIRI)
Make a name/id for the Grakn
RelationType representing
a relation b/w an entity (OWL individual) and its resource (the OWL data property) |
default Label |
resourceRelation(Label resourceLabel)
Make a name for a resource relation type representing the value of an OWL data property.
|
default Label |
resourceRole(Label resourceLabel)
Make a name for a resource role player representing the value of an OWL data property.
|
default Label |
subjectRole(Label relationLabel)
Make a name for the role type corresponding to the subject (i.e.
|
default String fromIri(org.semanticweb.owlapi.model.IRI iri)
default String individualEntityName(org.semanticweb.owlapi.model.IRI individualIri)
default String classEntityTypeLabel(org.semanticweb.owlapi.model.IRI classIri)
default String objectPropertyName(org.semanticweb.owlapi.model.IRI propIri)
default String resourceRelation(org.semanticweb.owlapi.model.IRI dataPropertyIRI)
RelationType representing
a relation b/w an entity (OWL individual) and its resource (the OWL data property)default Label objectRole(Label relationLabel)
relationLabel - The label of the Grakn RelationType.default Label subjectRole(Label relationLabel)
relationLabel - The label of the Grakn RelationType.default Label entityRole(Label resourceLabel)
default Label resourceRelation(Label resourceLabel)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.