Package edu.stanford.bmir.protege.web.server.owlapi

Examples of edu.stanford.bmir.protege.web.server.owlapi.OWLAPIProject.applyChanges()


            description.append("Set term namespace to ");
            description.append(termId.getNamespace());
        }
        if (!changes.isEmpty()) {
            UserId userId = getUserInSessionAndEnsureSignedIn();
            project.applyChanges(userId, changes, description.toString().trim());
        }
    }

    public List<OBOXRef> getXRefs(ProjectId projectId, OWLEntity term) {
        OWLAPIProject project = getProject(projectId);
View Full Code Here


        for (OWLAnnotation annotation : annotations) {
            OWLDataFactory df = project.getDataFactory();
            changes.add(new AddAxiom(rootOntology, df.getOWLAnnotationAssertionAxiom(subject, annotation)));
        }

        project.applyChanges(getUserInSessionAndEnsureSignedIn(), changes, "Set XRefs");

    }

    private String getStringAnnotationValue(ProjectId projectId, org.semanticweb.owlapi.model.IRI annotationSubject, org.semanticweb.owlapi.model.IRI annotationPropertyIRI, String defaultValue) {
        OWLAPIProject project = getProject(projectId);
View Full Code Here

        if (changes.isEmpty()) {
            // New
            changes.add(new AddAxiom(ont, definitionAssertion));
        }
        UserId userId = getUserInSessionAndEnsureSignedIn();
        project.applyChanges(userId, changes, "Set term definition");
    }

    private Set<OWLAnnotation> getAxiomAnnotationsExcludingXRefs(OWLAnnotationAssertionAxiom existingAx) {
        Set<OWLAnnotation> annotationsToCopy = new HashSet<OWLAnnotation>();
        for (OWLAnnotation existingAnnotation : existingAx.getAnnotations()) {
View Full Code Here

            OWLAnnotationAssertionAxiom synonymAnnotationAssertion = df.getOWLAnnotationAssertionAxiom(synonymProperty, subject, synonymNameLiteral, synonymXRefs);
            changes.add(new AddAxiom(rootOntology, synonymAnnotationAssertion));
        }


        project.applyChanges(getUserInSessionAndEnsureSignedIn(), changes, "Set synonym");
    }

    public OWLAnnotationProperty getSynonymAnnoationProperty(OWLDataFactory df, OBOTermSynonymScope scope) {
        switch (scope) {
            case EXACT:
View Full Code Here

        }


        if (!changes.isEmpty()) {
            UserId userId = getUserInSessionAndEnsureSignedIn();
            project.applyChanges(userId, changes, "Edited relationship values: " + description.toString());
        }

    }

    private OWLObjectSomeValuesFrom toSomeValuesFrom(OWLDataFactory dataFactory, OBORelationship relationship) {
View Full Code Here

        List<OWLOntologyChange> changes = new ArrayList<OWLOntologyChange>();
        changes.add(new AddAxiom(rootOntology, newXPAxiom));
        if (existingXPAxiom != null) {
            changes.add(new RemoveAxiom(rootOntology, existingXPAxiom));
        }
        project.applyChanges(userId, changes, "Set cross product values");

    }

    private OWLClass toOWLClass(OWLDataFactory dataFactory, OWLClass cls) {
        return dataFactory.getOWLClass(cls.getIRI());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.