Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.AddAxiom


                .getOWLAnnotationProperty(propertyIRI);
        OWLEntity currentEntity = getConsumer().getCurrentEntity();
        OWLLiteral literal = df.getOWLLiteral(annotationValue);
        OWLAnnotationAssertionAxiom ax = df.getOWLAnnotationAssertionAxiom(
                property, currentEntity.getIRI(), literal, xrefAnnotations);
        applyChange(new AddAxiom(getOntology(), ax));
    }
View Full Code Here


    public void handle(String currentId, String value, String qualifierBlock,
            String comment) {
        OWLAxiom ax = getDataFactory().getOWLDisjointClassesAxiom(
                CollectionFactory.createSet(getCurrentClass(),
                        getOWLClass(value)));
        applyChange(new AddAxiom(getOntology(), ax));
    }
View Full Code Here

    public void handle(String currentId, String value, String qualifierBlock,
            String comment) {
        OWLObjectProperty prop = getOWLObjectProperty(getConsumer()
                .getCurrentId());
        OWLClass cls = getOWLClass(value);
        applyChange(new AddAxiom(getOntology(), getDataFactory()
                .getOWLObjectPropertyDomainAxiom(prop, cls)));
    }
View Full Code Here

    public void handle(String currentId, String value, String qualifierBlock,
            String comment) {
        getConsumer().setCurrentId(value);
        final OWLEntity entity = getConsumer().getCurrentEntity();
        if (entity != null) {
            applyChange(new AddAxiom(getOntology(), getDataFactory()
                    .getOWLDeclarationAxiom(entity)));
        }
    }
View Full Code Here

    @Override
    public void handle(String currentId, String value, String qualifierBlock,
            String comment) {
        OWLAxiom ax = getDataFactory().getOWLInverseObjectPropertiesAxiom(
                getOWLObjectProperty(currentId), getOWLObjectProperty(value));
        applyChange(new AddAxiom(getOntology(), ax));
    }
View Full Code Here

    @Override
    public void handle(String currentId, String value, String qualifierBlock,
            String comment) {
        if (getConsumer().isTerm()) {
            // We simply add a subclass axiom
            applyChange(new AddAxiom(getOntology(), getDataFactory()
                    .getOWLSubClassOfAxiom(getClassFromId(currentId),
                            getClassFromId(value))));
        } else if (getConsumer().isTypedef()) {
            // We simply add a sub property axiom
            applyChange(new AddAxiom(getOntology(), getDataFactory()
                    .getOWLSubObjectPropertyOfAxiom(
                            getOWLObjectProperty(currentId),
                            getOWLObjectProperty(value))));
        }
    }
View Full Code Here

        OWLAnnotationProperty deprecatedProperty = df.getOWLDeprecated();
        OWLLiteral annotationValue = df.getOWLLiteral(true);
        IRI subject = getIRIFromOBOId(currentId);
        OWLAnnotationAssertionAxiom ax = df.getOWLAnnotationAssertionAxiom(
                deprecatedProperty, subject, annotationValue);
        applyChange(new AddAxiom(getOntology(), ax));
    }
View Full Code Here

        OWLLiteral con = getDataFactory().getOWLLiteral(value);
        OWLAxiom ax = getDataFactory().getOWLAnnotationAssertionAxiom(
                getDataFactory().getOWLAnnotationProperty(
                        OWLRDFVocabulary.RDFS_LABEL.getIRI()), ent.getIRI(),
                con);
        applyChange(new AddAxiom(getOntology(), ax));
    }
View Full Code Here

        OWLObjectProperty prop = df
                .getOWLObjectProperty(getIRIFromOBOId(propLocalName));
        OWLClass filler = getClassFromId(val);
        OWLClassExpression desc = df.getOWLObjectSomeValuesFrom(prop, filler);
        OWLAxiom ax = df.getOWLSubClassOfAxiom(getCurrentClass(), desc);
        applyChange(new AddAxiom(getOntology(), ax));
    }
View Full Code Here

            String comment) {
        if (Boolean.parseBoolean(value)) {
            OWLObjectProperty prop = getOWLObjectProperty(currentId);
            OWLAxiom ax = getDataFactory().getOWLReflexiveObjectPropertyAxiom(
                    prop);
            applyChange(new AddAxiom(getOntology(), ax));
        } else {
            addAnnotation(currentId, OBOVocabulary.IS_REFLEXIVE.getName(),
                    getBooleanConstant(false));
        }
    }
View Full Code Here

TOP

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

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.