Class ONTAnonymousClassExpressionImpl.WithDataRangeAndDataProperty<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.Restriction,​OWL extends org.semanticweb.owlapi.model.OWLRestriction>

  • Type Parameters:
    ONT - - a subtype of OntClass
    OWL - - a subtype of OWLRestriction that matches ONTAnonymousClassExpressionImpl.WithDataRangeAndDataProperty
    All Implemented Interfaces:
    AsNode, AsRDFNode, HasObjectFactory, ModelObject<OWL>, ONTComposite, WithContent<ONTExpressionImpl<ONT>>, ONTObject<OWL>, Serializable, Comparable<org.semanticweb.owlapi.model.OWLObject>, org.semanticweb.owlapi.model.AsOWLClass, org.semanticweb.owlapi.model.HasAnnotationPropertiesInSignature, org.semanticweb.owlapi.model.HasAnonymousIndividuals, org.semanticweb.owlapi.model.HasClassesInSignature, org.semanticweb.owlapi.model.HasComponents, org.semanticweb.owlapi.model.HasContainsEntityInSignature, org.semanticweb.owlapi.model.HasDataPropertiesInSignature, org.semanticweb.owlapi.model.HasDatatypesInSignature, org.semanticweb.owlapi.model.HasHashIndex, org.semanticweb.owlapi.model.HasIndex, org.semanticweb.owlapi.model.HasIndividualsInSignature, org.semanticweb.owlapi.model.HasObjectPropertiesInSignature, org.semanticweb.owlapi.model.HasSignature, org.semanticweb.owlapi.model.IsAnonymous, org.semanticweb.owlapi.model.OWLAnonymousClassExpression, org.semanticweb.owlapi.model.OWLClassExpression, org.semanticweb.owlapi.model.OWLObject, org.semanticweb.owlapi.model.OWLPropertyRange, org.semanticweb.owlapi.model.SWRLPredicate
    Direct Known Subclasses:
    ONTAnonymousClassExpressionImpl.WithDataRangeAndDataPropertyNary, ONTAnonymousClassExpressionImpl.WithDataRangeAndDataPropertyUnary
    Enclosing class:
    ONTAnonymousClassExpressionImpl<ONT extends com.github.sszuev.jena.ontapi.model.OntClass,​OWL extends org.semanticweb.owlapi.model.OWLAnonymousClassExpression>

    protected abstract static class ONTAnonymousClassExpressionImpl.WithDataRangeAndDataProperty<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.Restriction,​OWL extends org.semanticweb.owlapi.model.OWLRestriction>
    extends ONTAnonymousClassExpressionImpl.WithDataProperty<ONT,​OWL>
    Represents a data property restriction that has a reference to a data range.
    See Also:
    Serialized Form
    • Constructor Detail

      • WithDataRangeAndDataProperty

        protected WithDataRangeAndDataProperty​(org.apache.jena.graph.BlankNodeId n,
                                               Supplier<com.github.sszuev.jena.ontapi.model.OntModel> m)
    • Method Detail

      • getValue

        protected abstract com.github.sszuev.jena.ontapi.model.OntDataRange getValue​(ONT ce)
      • getFiller

        public org.semanticweb.owlapi.model.OWLDataRange getFiller()
      • objects

        public Stream<ONTObject<? extends org.semanticweb.owlapi.model.OWLObject>> objects()
        Description copied from interface: ONTComposite
        Lists all components in the form of Stream. Neither this object nor parts of its components are not included in the result: it content only top-level direct components. Note that HasComponents.components() may also contain non-OWLObject things: integers (e.g. cardinality), Lists (e.g. ObjectOneOf), etc, while this method is only for OWLObjects which are represented as ONTObjects.
        Specified by:
        objects in interface ONTComposite
        Overrides:
        objects in class ONTAnonymousClassExpressionImpl.WithDataProperty<ONT extends com.github.sszuev.jena.ontapi.model.OntClass.Restriction,​OWL extends org.semanticweb.owlapi.model.OWLRestriction>
        Returns:
        Stream of ONTObjects
        See Also:
        ONTComposite.objects(), HasComponents.components(), HasOperands.operands()
      • getONTDataRange

        public ONTObject<? extends org.semanticweb.owlapi.model.OWLDataRange> getONTDataRange()
      • fromFactory

        protected abstract OWL fromFactory​(org.semanticweb.owlapi.model.OWLDataProperty p,
                                           org.semanticweb.owlapi.model.OWLDataRange d)
      • eraseModel

        public OWL eraseModel()
        Description copied from interface: ModelObject
        Answers with an object that equals to the ONTObject.getOWLObject(), but without any model information inside.

        Such unattached object can be used in whatever way, while the object ONTObject.getOWLObject() requires more attention: it will not allow GC to dispose of the model, as there is a strong reference (or a facility to get such reference) to the model inside that object.

        Returns:
        ModelObject
        See Also:
        ONTObject.getOWLObject()
      • isAnonymousIndividual

        public default boolean isAnonymousIndividual()
        Answers true iff this is an OWL Anonymous Individual.
        Returns:
        boolean
      • isNamedClass

        public default boolean isNamedClass()
        Answers true iff this is an OWL Class.
        Returns:
        boolean
      • isNamedIndividual

        public default boolean isNamedIndividual()
        Answers true iff this is an OWL Named Individual.
        Returns:
        boolean
      • isDatatype

        public default boolean isDatatype()
        Answers true iff this is an OWL Datatype.
        Returns:
        boolean
      • isObjectProperty

        public default boolean isObjectProperty()
        Answers true iff this is an OWL Object Property.
        Returns:
        boolean
      • isDataProperty

        public default boolean isDataProperty()
        Answers true iff this is an OWL Data Property.
        Returns:
        boolean
      • isAnnotationProperty

        public default boolean isAnnotationProperty()
        Answers true iff this is an OWL Annotation Property.
        Returns:
        boolean