public interface IsAnonymous
OWLObject
instances have an IRI; this includes
OWLClass
, OWLDataProperty
, OWLObjectProperty
, OWLDatatype
,
OWLAnnotationProperty
and OWLNamedIndividual
instances. OWLOntology
instances also have an IRI or can be anonymous, depending on the contents of their ontology id.
Ontologies are mutable and therefore can switch from anonymous to named, when their id is
changed; all other objects are immutable, and therefore will not change from anonymous to named.Modifier and Type | Method and Description |
---|---|
default boolean |
isAnonymous() |
default boolean |
isNamed() |
default boolean isAnonymous()
true
if this object is anonymous, false
otherwise. For example, class
expressions are anonymous while class entities are not (they have an IRI);
OWLNamedIndividual
instances are named, OWLAnonymousIndividual
instances are anonymous. An ontology is anonymous if it does not have an ontology
IRI. In this case, getOntologyID().getOntologyIRI() will return an empty optional.default boolean isNamed()
true
if this object is named, false
otherwise. For example, class
entities are named (they have an IRI) while class expressions are anonymous;
OWLNamedIndividual
instances are named, OWLAnonymousIndividual
instances are anonymous.Copyright © 2020 The University of Manchester. All rights reserved.