Examples of OWLAnnotationValue


Examples of org.semanticweb.owlapi.model.OWLAnnotationValue

            if (isAnnotationProperty(predicate)) {
                IRI resVal = getResourceObject(mainNode, predicate, true);
                while (resVal != null) {
                    OWLAnnotationProperty prop = dataFactory
                            .getOWLAnnotationProperty(predicate);
                    OWLAnnotationValue val;
                    if (isAnonymousNode(resVal)) {
                        val = dataFactory.getOWLAnonymousIndividual(resVal
                                .toString());
                    } else {
                        val = resVal;
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLAnnotationValue

        for (OWLObjectProperty p : inputOntology
                .getObjectPropertiesInSignature()) {
            for (OWLAnnotation a : annotations(inputOntology.filterAxioms(
                    Filters.annotations, p.getIRI(), INCLUDED),
                    expandExpressionAP)) {
                OWLAnnotationValue v = a.getValue();
                if (v instanceof OWLLiteral) {
                    String str = ((OWLLiteral) v).getLiteral();
                    LOG.info("mapping {} to {}", p, str);
                    expandExpressionMap.put(p.getIRI(), str);
                }
            }
        }
        for (OWLAnnotationProperty p : inputOntology
                .getAnnotationPropertiesInSignature(EXCLUDED)) {
            for (OWLAnnotation a : annotations(inputOntology.filterAxioms(
                    Filters.annotations, p.getIRI(), INCLUDED),
                    expandAssertionAP)) {
                OWLAnnotationValue v = a.getValue();
                if (v instanceof OWLLiteral) {
                    String str = ((OWLLiteral) v).getLiteral();
                    LOG.info("assertion mapping {} to {}", p, str);
                    expandAssertionToMap.put(p.getIRI(), str);
                }
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLAnnotationValue

                    OWLAnnotationAssertionAxiom.class,
                    OWLAnnotationSubject.class, iri, Imports.INCLUDED,
                    IN_SUB_POSITION);
            for (OWLAnnotationAssertionAxiom axiom : axioms) {
                if (axiom.getProperty().isLabel()) {
                    OWLAnnotationValue value = axiom.getValue();
                    if (value instanceof OWLLiteral) {
                        return ((OWLLiteral) value).getLiteral();
                    }
                }
            }
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLAnnotationValue

                for (OWLIndividual value : ((OWLIndividual) ind).getObjectPropertyValues(hasOntology, o))
                    if (value.isNamed()) ironts.add(value.asOWLNamedIndividual());
                // Get usages of hasOntology as an annotation property
                for (OWLAnnotationAssertionAxiom ann : o.getAnnotationAssertionAxioms(ind.getIRI()))
                    if (hasOntologyAnn.equals(ann.getProperty())) {
                        OWLAnnotationValue value = ann.getValue();
                        if (value instanceof OWLNamedObject) ironts.add((OWLNamedObject) value);
                        else if (value instanceof IRI) ironts.add(df.getOWLNamedIndividual((IRI) value));
                    }
            }
        }
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLAnnotationValue

                for (OWLIndividual value : ((OWLIndividual) ind).getObjectPropertyValues(isOntologyOf, o))
                    if (value.isNamed()) libs.add(value.asOWLNamedIndividual());
                // Get usages of isOntologyOf as an annotation property
                for (OWLAnnotationAssertionAxiom ann : o.getAnnotationAssertionAxioms(ind.getIRI()))
                    if (isOntologyOfAnn.equals(ann.getProperty())) {
                        OWLAnnotationValue value = ann.getValue();
                        if (value instanceof OWLNamedObject) libs.add((OWLNamedObject) value);
                        else if (value instanceof IRI) libs.add(df.getOWLNamedIndividual((IRI) value));
                    }
            }
        }
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLAnnotationValue

    for (OWLAnnotationAssertionAxiom annotation : individualAnnotations) {
      if (annotation.getProperty().equals(
          owlFactory
              .getOWLAnnotationProperty(
                  OWLRDFVocabulary.RDFS_LABEL.getIRI()))) {
        OWLAnnotationValue value = annotation.getValue();
        if (value instanceof IRI) {
          IRI asIRI = (IRI) value;
          allLabels.put(asIRI.toQuotedString(), null);
        } else if (value instanceof OWLLiteral) {
          OWLLiteral sLiteral = (OWLLiteral) value;
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLAnnotationValue

        for (IRI predicate : predicates) {
            if (isAnnotationProperty(predicate)) {
                IRI resVal = getResourceObject(mainNode, predicate, true);
                while (resVal != null) {
                    OWLAnnotationProperty prop = dataFactory.getOWLAnnotationProperty(predicate);
                    OWLAnnotationValue val;
                    if (isAnonymousNode(resVal)) {
                        val = dataFactory.getOWLAnonymousIndividual(resVal.toString());
                    }
                    else {
                        val = resVal;
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLAnnotationValue

        OWLAnnotationProperty annoProp = parseAnnotationProperty();
        String obj = peekToken();
        OWLAnnotation anno = null;
        if (isIndividualName(obj) || isClassName(obj) || isObjectPropertyName(obj) || isDataPropertyName(obj)) {
            consumeToken();
            OWLAnnotationValue value;
            if(obj.startsWith("_:")) {
                value = dataFactory.getOWLAnonymousIndividual(obj);
            }
            else {
                value = getIRI(obj);
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLAnnotationValue

   
  }

  final public OWLAnnotation Annotation() throws ParseException {
    OWLAnnotationProperty prop;
    OWLAnnotationValue val;
    Set<OWLAnnotation> annos = null;
    OWLAnnotation anno = null;
    jj_consume_token(ANNOTATION);
                   annos = new HashSet<OWLAnnotation>();
    jj_consume_token(OPENPAR);
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLAnnotationValue

        return subj;
   
  }

  final public OWLAnnotationValue AnnotationValue() throws ParseException {
    OWLAnnotationValue value;
    if (jj_2_102(2)) {
      value = IRI();
    } else if (jj_2_103(2)) {
      value = AnonymousIndividual();
    } else if (jj_2_104(2)) {
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.