Package uk.ac.manchester.cs.owl.owlapi

Examples of uk.ac.manchester.cs.owl.owlapi.OWLAnnotationImpl


            return;
        }
        String label = null;
        for (OWLAnnotation annotation : property.getAnnotations(getOntology())) {
            if (annotation instanceof OWLAnnotationImpl) {
                OWLAnnotationImpl mayBeLabel = (OWLAnnotationImpl) annotation;
                if (mayBeLabel.isLabel()) {
                    OWLAnnotationValue value = mayBeLabel.getValue();
                    if (value instanceof OWLLiteral) {
                        label = ((OWLLiteral) value).getLiteral();
                    }
                }
            }
View Full Code Here


    public void visit(OWLStringLiteral literal) {}

    public void visit(OWLAnnotation annotation) {
            if (annotation instanceof OWLAnnotationImpl) {
                OWLAnnotationImpl owlAnnotation = (OWLAnnotationImpl) annotation;
                if (owlAnnotation.isLabel()) {
                    OWLAnnotationValue value = owlAnnotation.getValue();
                    if (value instanceof OWLLiteral) {
                        this.setLabel(((OWLLiteral) value).getLiteral());
                    }
                }
                if (owlAnnotation.isComment()) {
                    OWLAnnotationValue value = owlAnnotation.getValue();
                    if (value instanceof OWLLiteral) {
                        this.setComment(((OWLLiteral) value).getLiteral());
                    }
                }
            }
View Full Code Here

TOP

Related Classes of uk.ac.manchester.cs.owl.owlapi.OWLAnnotationImpl

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.