Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLSubAnnotationPropertyOfAxiom


        return visitor.visit(this);
    }

    @Override
    protected int compareObjectOfSameType(OWLObject object) {
        OWLSubAnnotationPropertyOfAxiom other = (OWLSubAnnotationPropertyOfAxiom) object;
        int diff = subProperty.compareTo(other.getSubProperty());
        if (diff != 0) {
            return diff;
        }
        return superProperty.compareTo(other.getSuperProperty());
    }
View Full Code Here


            // superclass is responsible for null, identity, owlaxiom type and
            // annotations
            if (!(obj instanceof OWLSubAnnotationPropertyOfAxiom)) {
                return false;
            }
            OWLSubAnnotationPropertyOfAxiom other = (OWLSubAnnotationPropertyOfAxiom) obj;
            return subProperty.equals(other.getSubProperty())
                    && superProperty.equals(other.getSuperProperty());
        }
        return false;
    }
View Full Code Here

    }

    @Test
    public void shouldBuildSubAnnotationPropertyOf() {
        // given
        OWLSubAnnotationPropertyOfAxiom expected = df
                .getOWLSubAnnotationPropertyOfAxiom(ap, df.getRDFSLabel(),
                        annotations);
        BuilderSubAnnotationPropertyOf builder = new BuilderSubAnnotationPropertyOf(
                expected, df);
        // when
View Full Code Here

        m.addAxiom(ont, annoAx2);
        OWLAnnotationPropertyRangeAxiom annoAx3 = df
                .getOWLAnnotationPropertyRangeAxiom(rdfsComment, clsB.getIRI());
        m.addAxiom(ont, annoAx3);
        OWLAnnotationProperty myComment = AnnotationProperty(IRI("http://ont.com#myComment"));
        OWLSubAnnotationPropertyOfAxiom annoAx4 = df
                .getOWLSubAnnotationPropertyOfAxiom(myComment, rdfsComment);
        m.addAxiom(ont, annoAx4);
        reload(ont, new RDFXMLDocumentFormat());
        reload(ont, new OWLXMLDocumentFormat());
        reload(ont, new TurtleDocumentFormat());
View Full Code Here

    }


    @Override
  protected int compareObjectOfSameType(OWLObject object) {
        OWLSubAnnotationPropertyOfAxiom other = (OWLSubAnnotationPropertyOfAxiom) object;
        int diff = subProperty.compareTo(other.getSubProperty());
        if (diff != 0) {
            return diff;
        }
        return superProperty.compareTo(other.getSuperProperty());
    }
View Full Code Here

            return true;
        }
        if (!(obj instanceof OWLSubAnnotationPropertyOfAxiom)) {
            return false;
        }
        OWLSubAnnotationPropertyOfAxiom other = (OWLSubAnnotationPropertyOfAxiom) obj;
        return subProperty.equals(other.getSubProperty()) && superProperty.equals(other.getSuperProperty());
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.model.OWLSubAnnotationPropertyOfAxiom

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.