Interface OntPersonality.Punnings

All Superinterfaces:
ResourceVocabulary<OntObject>
Enclosing interface:
OntPersonality

public static interface OntPersonality.Punnings extends ResourceVocabulary<OntObject>
A punnings' vocabulary. For a given OntEntity type it returns a Set of forbidden types (the right part of SPO with the (@code rdf:type) predicate). A model, that holds this configuration, cannot contain entities which have intersection in rdf:type that are determined by this vocabulary.

For example, for the PunningsMode.DL_WEAK and for the PunningsMode.DL2 configurations, the expression voc.get(OntClass.class), where voc is an instance of this class, should return a Set containing rdfs:Datatype in the form of Node, since OntDT <-> OntClass is illegal punning.

Each node obtained from this class must be IRI (i.e. node.isURI() = true).

See Also:
  • Method Details

    • getNamedClasses

      default Set<org.apache.jena.graph.Node> getNamedClasses()
    • getDatatypes

      default Set<org.apache.jena.graph.Node> getDatatypes()
    • getObjectProperties

      default Set<org.apache.jena.graph.Node> getObjectProperties()
    • getDatatypeProperties

      default Set<org.apache.jena.graph.Node> getDatatypeProperties()
    • getAnnotationProperties

      default Set<org.apache.jena.graph.Node> getAnnotationProperties()
    • getNamedIndividuals

      default Set<org.apache.jena.graph.Node> getNamedIndividuals()