Java 类org.semanticweb.owlapi.model.OWLDeclarationAxiom 实例源码

项目:minerva    文件:GafToLegoTranslator.java   
private void addBioEntity(OWLClass pr, OWLOntology lego, Bioentity bioentity) {
    Set<OWLDeclarationAxiom> declarationAxioms = lego.getDeclarationAxioms(pr);
    if (declarationAxioms == null || declarationAxioms.isEmpty()) {
        // add class declaration and add label
        OWLOntologyManager m = lego.getOWLOntologyManager();
        OWLDataFactory f = m.getOWLDataFactory();

        Set<OWLAxiom> axioms = new HashSet<OWLAxiom>();
        axioms.add(f.getOWLDeclarationAxiom(pr));

        String label = bioentity.getSymbol()+" - "+bioentity.getFullName();

        axioms.add(f.getOWLAnnotationAssertionAxiom(f.getRDFSLabel(), pr.getIRI(), f.getOWLLiteral(label)));

        m.addAxioms(lego, axioms);
    }
}
项目:HermiT-android    文件:OWLNormalization.java   
public void visit(OWLDeclarationAxiom axiom) {
//            if (axiom.getEntity().isOWLClass()) {
//                OWLClass cls=(OWLClass)axiom.getEntity(); 
//                if (!m_axioms.m_classes.contains(cls)) 
//                    m_axioms.m_classes.add(cls);
//            }
//            if (axiom.getEntity().isOWLObjectProperty()) {
//                OWLObjectProperty op=(OWLObjectProperty)axiom.getEntity(); 
//                if (!m_axioms.m_objectProperties.contains(op)) 
//                    m_axioms.m_objectProperties.add(op);
//            }
//            if (axiom.getEntity().isOWLDataProperty()) {
//                OWLDataProperty dp=(OWLDataProperty)axiom.getEntity(); 
//                if (!m_axioms.m_dataProperties.contains(dp)) 
//                    m_axioms.m_dataProperties.add(dp);
//            }
        }
项目:Hermit_1.3.8_android    文件:OWLNormalization.java   
public void visit(OWLDeclarationAxiom axiom) {
//            if (axiom.getEntity().isOWLClass()) {
//                OWLClass cls=(OWLClass)axiom.getEntity(); 
//                if (!m_axioms.m_classes.contains(cls)) 
//                    m_axioms.m_classes.add(cls);
//            }
//            if (axiom.getEntity().isOWLObjectProperty()) {
//                OWLObjectProperty op=(OWLObjectProperty)axiom.getEntity(); 
//                if (!m_axioms.m_objectProperties.contains(op)) 
//                    m_axioms.m_objectProperties.add(op);
//            }
//            if (axiom.getEntity().isOWLDataProperty()) {
//                OWLDataProperty dp=(OWLDataProperty)axiom.getEntity(); 
//                if (!m_axioms.m_dataProperties.contains(dp)) 
//                    m_axioms.m_dataProperties.add(dp);
//            }
        }
项目:Wolpertinger    文件:OWLNormalization.java   
public void visit(OWLDeclarationAxiom axiom) {
//            if (axiom.getEntity().isOWLClass()) {
//                OWLClass cls=(OWLClass)axiom.getEntity();
//                if (!m_axioms.m_classes.contains(cls))
//                    m_axioms.m_classes.add(cls);
//            }
//            if (axiom.getEntity().isOWLObjectProperty()) {
//                OWLObjectProperty op=(OWLObjectProperty)axiom.getEntity();
//                if (!m_axioms.m_objectProperties.contains(op))
//                    m_axioms.m_objectProperties.add(op);
//            }
//            if (axiom.getEntity().isOWLDataProperty()) {
//                OWLDataProperty dp=(OWLDataProperty)axiom.getEntity();
//                if (!m_axioms.m_dataProperties.contains(dp))
//                    m_axioms.m_dataProperties.add(dp);
//            }
        }
项目:jcel    文件:AxiomTranslator.java   
@Override
public Set<ComplexIntegerAxiom> visit(OWLDeclarationAxiom axiom) {
    Objects.requireNonNull(axiom);
    OWLEntity entity = axiom.getEntity();
    if (entity.isOWLClass()) {
        return declare(entity.asOWLClass(), axiom.getAnnotations());

    } else if (entity.isOWLObjectProperty()) {
        return declare(entity.asOWLObjectProperty(), axiom.getAnnotations());

    } else if (entity.isOWLNamedIndividual()) {
        return declare(entity.asOWLNamedIndividual(), axiom.getAnnotations());

    } else if (entity.isOWLDataProperty()) {
        return declare(entity.asOWLDataProperty(), axiom.getAnnotations());

    } else if (entity.isOWLAnnotationProperty()) {
        // FIXME add annotation property
        return Collections.emptySet();

    } else {
        throw TranslationException.newUnsupportedAxiomException(axiom);

    }
}
项目:neo4j-sparql-extension-yars    文件:PredicateVariableExtractor.java   
/**
 * Extracts {@link PredicateVariableExtractor} rules.
 * 
 * @param ot ontology
 * @return extracted rules
 */
@Override
public List<Rule> extract(OWLOntology ot) {
    List<Rule> list = new ArrayList<>();
    // list of predicates in ontology
    List<String> ps = new ArrayList<>();
    ps.add(TOPOBJ);
    ps.add(TOPDATA);
    OWLEntity e;
    String op;
    // check all declarations
    for (OWLDeclarationAxiom a : ot.getAxioms(AxiomType.DECLARATION)) {
        e = a.getEntity();
        if (e.isOWLObjectProperty()) {
            // if it is a object property declaration, add it to the list
            // and also add it as subproperty of owl:topObjectProperty
            op = getString(e.asOWLObjectProperty());
            ps.add(op);
            list.add(new SubPropertyOf(op, TOPOBJ));
        } else if (e.isOWLDataProperty()) {
            // if it is a data property declaration, add it to the list
            // and also add it as subproperty of owl:topDataProperty
            op = getString(e.asOWLDataProperty());
            ps.add(op);
            list.add(new SubPropertyOf(op, TOPDATA));
        }
    }
    list.add(new PredicateVariable(ps));
    return list;
}
项目:OWLAx    文件:OWLCellRenderer.java   
protected Component prepareRenderer(Object value, boolean isSelected, boolean hasFocus) {
    renderingComponent.setOpaque(isSelected || opaque);

    if (value instanceof OWLEntity) {
        OWLEntity entity = (OWLEntity) value;
        OWLDeclarationAxiom declAx = getOWLModelManager().getOWLDataFactory().getOWLDeclarationAxiom(entity);
        if (getOWLModelManager().getActiveOntology().containsAxiom(declAx)) {
            ontology = getOWLModelManager().getActiveOntology();
        }
        entity.accept(activeEntityVisitor);
        if (OWLUtilities.isDeprecated(getOWLModelManager(), entity)) {
            setStrikeThrough(true);
        } else {
            setStrikeThrough(false);
        }
    }

    prepareTextPane(getRendering(value), isSelected);

    if (isSelected) {
        renderingComponent.setBackground(SELECTION_BACKGROUND);
        textPane.setForeground(SELECTION_FOREGROUND);
    } else {
        renderingComponent.setBackground(componentBeingRendered.getBackground());
        textPane.setForeground(componentBeingRendered.getForeground());
    }

    final Icon icon = getIcon(value);
    iconLabel.setIcon(icon);
    if (icon != null) {
        iconLabel.setPreferredSize(new Dimension(icon.getIconWidth(), plainFontHeight));
    }
    renderingComponent.revalidate();
    return renderingComponent;
}
项目:minerva    文件:GafToLegoTranslator.java   
private OWLAnnotationProperty getDcSourceProperty(OWLOntology lego, OWLDataFactory f) {
    OWLAnnotationProperty p = f.getOWLAnnotationProperty(DC_SOURCE);
    Set<OWLDeclarationAxiom> declarationAxioms = lego.getDeclarationAxioms(p);
    if (declarationAxioms == null || declarationAxioms.isEmpty()) {
        OWLOntologyManager m = lego.getOWLOntologyManager();
        m.addAxiom(lego, f.getOWLDeclarationAxiom(p));
    }
    return p;
}
项目:jopa    文件:IntegrityConstraintParser.java   
public void visit(final OWLDeclarationAxiom axiom) {
        notSupported(axiom);
//        axiom.getEntity().accept(new OWLEntityVisitor() {
//
//            public void visit(OWLAnnotationProperty property) {
//                ctx.annotationProperties.add(property);
//            }
//
//            public void visit(OWLDatatype datatype) {
//                notSupported(axiom);
//            }
//
//            public void visit(OWLNamedIndividual individual) {
//                notSupported(axiom);
//            }
//
//            public void visit(OWLDataProperty property) {
//                ctx.dataProperties.add(property);
//            }
//
//            public void visit(OWLObjectProperty property) {
//                ctx.objectProperties.add(property);
//            }
//
//            public void visit(OWLClass cls) {
//                ctx.classes.add(cls);
//            }
//        });
    }
项目:elk-reasoner    文件:AbstractOwlAxiomConverterVisitor.java   
@Override
public T visit(OWLDeclarationAxiom axiom) {
    throw new IllegalArgumentException(
            OWLDeclarationAxiom.class.getSimpleName()
                    + " cannot be converted to "
                    + getTargetClass().getSimpleName());
}
项目:owltools    文件:AbstractSimPreProcessor.java   
public Set<OWLClass> extractClassesFromDeclarations(Set<OWLAxiom> axs) {
    Set<OWLClass> cs = new HashSet<OWLClass>();
    for (OWLAxiom ax : axs) {
        if (ax instanceof OWLDeclarationAxiom) {
            OWLEntity e = ((OWLDeclarationAxiom)ax).getEntity();
            if (e instanceof OWLClass)
                cs.add((OWLClass) e);
        }
    }
    return cs;
}
项目:owltools    文件:DiffUtil.java   
private static Set<OWLAxiom> filter(Set<OWLAxiom> axioms, Diff diff) {
    if (diff.isFilterDeclarations) {
        return axioms.stream().filter(a -> !(a instanceof OWLDeclarationAxiom)).
                collect(Collectors.toSet());
    }
    else {
        return axioms;
    }
}
项目:owltools    文件:OWLGraphWrapperExtended.java   
/**
 * Returns an OWLNamedIndividual with this IRI <b>if it has been declared</b>
 * in the source or support ontologies. Returns null otherwise.
 * 
 * @param iri
 * @return {@link OWLNamedIndividual}
 */
public OWLNamedIndividual getOWLIndividual(IRI iri) {
    OWLNamedIndividual c = getDataFactory().getOWLNamedIndividual(iri);
    for (OWLOntology o : getAllOntologies()) {
        for (OWLDeclarationAxiom da : o.getDeclarationAxioms(c)) {
            if (da.getEntity() instanceof OWLNamedIndividual) {
                return (OWLNamedIndividual) da.getEntity();
            }
        }
    }
    return null;
}
项目:owltools    文件:OWLConverter.java   
/**
 * Convenience method for adding a declaration axiom to the ontology.
 *
 * @param ontology the current ontology
 * @param subject the entity for which the declaration will be added
 * @return the declaration axiom
 */
protected static OWLDeclarationAxiom declare(OWLOntology ontology,
        OWLEntity subject) {
    OWLOntologyManager manager = ontology.getOWLOntologyManager();
    OWLDataFactory dataFactory = manager.getOWLDataFactory();
    OWLDeclarationAxiom axiom = 
        dataFactory.getOWLDeclarationAxiom(subject);
    manager.addAxiom(ontology, axiom);
    return axiom;
}
项目:neo4j-sparql-extension    文件:PredicateVariableExtractor.java   
/**
 * Extracts {@link PredicateVariableExtractor} rules.
 * 
 * @param ot ontology
 * @return extracted rules
 */
@Override
public List<Rule> extract(OWLOntology ot) {
    List<Rule> list = new ArrayList<>();
    // list of predicates in ontology
    List<String> ps = new ArrayList<>();
    ps.add(TOPOBJ);
    ps.add(TOPDATA);
    OWLEntity e;
    String op;
    // check all declarations
    for (OWLDeclarationAxiom a : ot.getAxioms(AxiomType.DECLARATION)) {
        e = a.getEntity();
        if (e.isOWLObjectProperty()) {
            // if it is a object property declaration, add it to the list
            // and also add it as subproperty of owl:topObjectProperty
            op = getString(e.asOWLObjectProperty());
            ps.add(op);
            list.add(new SubPropertyOf(op, TOPOBJ));
        } else if (e.isOWLDataProperty()) {
            // if it is a data property declaration, add it to the list
            // and also add it as subproperty of owl:topDataProperty
            op = getString(e.asOWLDataProperty());
            ps.add(op);
            list.add(new SubPropertyOf(op, TOPDATA));
        }
    }
    list.add(new PredicateVariable(ps));
    return list;
}
项目:ISAAC    文件:OWLExporter.java   
/**
 * Creates the owl axioms from concept version bi.
 *
 * @param setOfAxioms the set of axioms
 * @param factory the factory
 * @param pm the pm
 * @param conceptVersionBI the concept version bi
 * @return the OWL class
 * @throws Exception the exception
 */
private OWLClass createOWLAxiomsFromConceptVersionBI(
  Set<OWLAxiom> setOfAxioms, OWLDataFactory factory, PrefixManager pm,
  ConceptVersionBI conceptVersionBI) throws Exception {
  // Declaration
  OWLClass owlClass =
      factory.getOWLClass(":" + getSnomedConceptID(conceptVersionBI), pm);
  OWLDeclarationAxiom declarationAxiom =
      factory.getOWLDeclarationAxiom(owlClass);
  setOfAxioms.add(declarationAxiom);
  // Create annotation type axiom
  // Fully specified description
  OWLAnnotation labelAnnotation =
      factory.getOWLAnnotation(factory.getRDFSLabel(), factory.getOWLLiteral(
          conceptVersionBI.getFullySpecifiedDescription().getText(),
          conceptVersionBI.getFullySpecifiedDescription().getLang()));
  OWLAxiom labelAnnotationAxiom =
      factory.getOWLAnnotationAssertionAxiom(owlClass.getIRI(),
          labelAnnotation);
  setOfAxioms.add(labelAnnotationAxiom);

  // Preferred name
  OWLAnnotation preferredTerm =
      factory.getOWLAnnotation(factory.getOWLAnnotationProperty(IRI
          .create(snomedEnUsPreferredAnnotation)), factory.getOWLLiteral(
          conceptVersionBI.getPreferredDescription().getText(),
          conceptVersionBI.getPreferredDescription().getLang()));
  OWLAxiom preferredTermAx =
      factory
          .getOWLAnnotationAssertionAxiom(owlClass.getIRI(), preferredTerm);
  setOfAxioms.add(preferredTermAx);

  return owlClass;
}
项目:SciGraph    文件:GraphOwlVisitor.java   
@Override
public Void visit(OWLDeclarationAxiom axiom) {
  String iri = getIri(axiom);
  long node = getOrCreateNode(iri);
  addDefinedBy(node);
  if (axiom.getEntity() instanceof OWLClass) {
    graph.addLabel(node, OwlLabels.OWL_CLASS);
  } else if (axiom.getEntity() instanceof OWLNamedIndividual) {
    graph.addLabel(node, OwlLabels.OWL_NAMED_INDIVIDUAL);
  } else if (axiom.getEntity() instanceof OWLObjectProperty) {
    if (!graph.getLabels(node).contains(OwlLabels.OWL_OBJECT_PROPERTY)) {
      graph.addLabel(node, OwlLabels.OWL_OBJECT_PROPERTY);
      if (ontology.isPresent()) {
        OWLObjectProperty property = (OWLObjectProperty) axiom.getEntity();
        graph.setNodeProperty(node, EdgeProperties.SYMMETRIC,
            !property.isAsymmetric(ontology.get()));
        graph.setNodeProperty(node, EdgeProperties.REFLEXIVE,
            property.isReflexive(ontology.get()));
        graph.setNodeProperty(node, EdgeProperties.TRANSITIVE,
            property.isTransitive(ontology.get()));
      }
    }
  } else if (axiom.getEntity() instanceof OWLDataProperty) {
    graph.setLabel(node, OwlLabels.OWL_DATA_PROPERTY);
  } else {
    // logger.warning("Unhandled declaration type " + axiom.getEntity().getClass().getName());
  }
  return null;
}
项目:owlapi-gwt    文件:OWLDeclarationAxiomImpl.java   
@Override
public OWLDeclarationAxiom getAxiomWithoutAnnotations() {
    if (!isAnnotated()) {
        return this;
    }
    return new OWLDeclarationAxiomImpl(getEntity(), NO_ANNOTATIONS);
}
项目:owlapi-gwt    文件:OWLDeclarationAxiomImpl.java   
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    // superclass is responsible for null, identity, owlaxiom type and
    // annotations
    if (!(obj instanceof OWLDeclarationAxiom)) {
        return false;
    }
    return ((OWLDeclarationAxiom) obj).getEntity().equals(entity);
}
项目:snorocket    文件:DebugUtils.java   
public static String formatAxiom(OWLAxiom a, OWLOntology ont) {
    if (a instanceof OWLSubPropertyChainOfAxiom) {
        // TODO: implement
        return a.toString();
    } else if (a instanceof OWLSubObjectPropertyOfAxiom) {
        // TODO: implement
        return a.toString();
    } else if (a instanceof OWLSubClassOfAxiom) {
        OWLSubClassOfAxiom sc = (OWLSubClassOfAxiom) a;
        return formatClassExpression(sc.getSubClass(), ont) + " \u2286 "
                + formatClassExpression(sc.getSuperClass(), ont);
    } else if (a instanceof OWLEquivalentClassesAxiom) {
        OWLEquivalentClassesAxiom ec = (OWLEquivalentClassesAxiom) a;
        List<OWLClassExpression> ces = ec.getClassExpressionsAsList();
        StringBuilder sb = new StringBuilder();
        sb.append(formatClassExpression(ces.get(0), ont));
        for (int i = 1; i < ces.size(); i++) {
            sb.append(" = ");
            sb.append(formatClassExpression(ces.get(i), ont));
        }
        return sb.toString();
    } else if (a instanceof OWLDeclarationAxiom) {
        OWLDeclarationAxiom da = (OWLDeclarationAxiom) a;
        OWLEntity ent = da.getEntity();
        String name = (ent.isOWLClass()) ? getLabel(ent.asOWLClass(), ont)
                : ent.toString();
        return "init(" + name + ")";
    } else {
        return a.toString();
    }
}
项目:snorocket    文件:DebugUtils.java   
public static String formatAxiom(OWLAxiom a, OWLOntology ont) {
    if (a instanceof OWLSubPropertyChainOfAxiom) {
        // TODO: implement
        return a.toString();
    } else if (a instanceof OWLSubObjectPropertyOfAxiom) {
        // TODO: implement
        return a.toString();
    } else if (a instanceof OWLSubClassOfAxiom) {
        OWLSubClassOfAxiom sc = (OWLSubClassOfAxiom) a;
        return formatClassExpression(sc.getSubClass(), ont) + " \u2286 "
                + formatClassExpression(sc.getSuperClass(), ont);
    } else if (a instanceof OWLEquivalentClassesAxiom) {
        OWLEquivalentClassesAxiom ec = (OWLEquivalentClassesAxiom) a;
        List<OWLClassExpression> ces = ec.getClassExpressionsAsList();
        StringBuilder sb = new StringBuilder();
        sb.append(formatClassExpression(ces.get(0), ont));
        for (int i = 1; i < ces.size(); i++) {
            sb.append(" = ");
            sb.append(formatClassExpression(ces.get(i), ont));
        }
        return sb.toString();
    } else if (a instanceof OWLDeclarationAxiom) {
        OWLDeclarationAxiom da = (OWLDeclarationAxiom) a;
        OWLEntity ent = da.getEntity();
        String name = (ent.isOWLClass()) ? getLabel(ent.asOWLClass(), ont)
                : ent.toString();
        return "init(" + name + ")";
    } else {
        return a.toString();
    }
}
项目:HermiT-android    文件:EntailmentChecker.java   
public Boolean visit(OWLDeclarationAxiom axiom) {
    return Boolean.TRUE;
}
项目:HermiT-android    文件:EntailmentChecker.java   
public void visit(OWLDeclarationAxiom axiom) {
}
项目:elk-reasoner    文件:AbstractElkObjectConverter.java   
@Override
public OWLDeclarationAxiom visit(ElkDeclarationAxiom axiom) {
    return owlFactory_.getOWLDeclarationAxiom(convert(axiom.getEntity()));
}
项目:elk-reasoner    文件:OwlConverter.java   
@SuppressWarnings("static-method")
public ElkDeclarationAxiom convert(
        OWLDeclarationAxiom owlDeclarationAxiom) {
    return new ElkDeclarationAxiomWrap<OWLDeclarationAxiom>(
            owlDeclarationAxiom);
}
项目:elk-reasoner    文件:OwlAxiomConverterVisitor.java   
@Override
public ElkAxiom visit(OWLDeclarationAxiom owlDeclarationAxiom) {
    return CONVERTER.convert(owlDeclarationAxiom);
}
项目:elk-reasoner    文件:FailingOwlAxiomVisitor.java   
@Override
public void visit(OWLDeclarationAxiom axiom) {
    defaultVisit(axiom);
}
项目:Hermit_1.3.8_android    文件:EntailmentChecker.java   
public Boolean visit(OWLDeclarationAxiom axiom) {
    return Boolean.TRUE;
}
项目:Hermit_1.3.8_android    文件:EntailmentChecker.java   
public void visit(OWLDeclarationAxiom axiom) {
}
项目:owltools    文件:OWLInAboxTranslator.java   
private void tr(OWLDeclarationAxiom ax) {
    // do nothing: instances and tlrs declared fresh
}
项目:owltools    文件:AxiomAnnotationTools.java   
@Override
public OWLAxiom visit(OWLDeclarationAxiom axiom) {
    return factory.getOWLDeclarationAxiom(axiom.getEntity(), annotations);
}
项目:owltools    文件:CardinalityContraintsTools.java   
@Override
public void visit(OWLDeclarationAxiom axiom) {
}
项目:born    文件:CycleDetector.java   
@Override
public Boolean visit(OWLDeclarationAxiom axiom) {
    return true;
}
项目:born    文件:ElAxiomFilter.java   
@Override
public Boolean visit(OWLDeclarationAxiom axiom) {
    return axiom.getEntity().isOWLClass() || axiom.getEntity().isOWLObjectProperty();
}
项目:born    文件:AnnotationProcessor.java   
@Override
public Boolean visit(OWLDeclarationAxiom axiom) {
    Objects.requireNonNull(axiom);
    return add(this.df.getOWLDeclarationAxiom(axiom.getEntity(), reg(axiom.getAnnotations())));
}
项目:born    文件:AnnotationCreator.java   
@Override
public Boolean visit(OWLDeclarationAxiom axiom) {
    Objects.requireNonNull(axiom);
    return add(this.df.getOWLDeclarationAxiom(axiom.getEntity(), empty()));
}
项目:ISAAC    文件:OWLExporter.java   
/**
 * Creates the owl property axioms from concept version bi.
 *
 * @param setOfAxioms the set of axioms
 * @param factory the factory
 * @param pm the pm
 * @param conceptVersionBI the concept version bi
 * @return the OWL object property
 * @throws Exception the exception
 */
private OWLObjectProperty createOWLPropertyAxiomsFromConceptVersionBI(
  Set<OWLAxiom> setOfAxioms, OWLDataFactory factory, PrefixManager pm,
  ConceptVersionBI conceptVersionBI) throws Exception {
  // Declaration
  OWLObjectProperty owlPropertyClass =
      factory.getOWLObjectProperty(
          ":" + getSnomedConceptID(conceptVersionBI), pm);
  OWLDeclarationAxiom declarationAxiom =
      factory.getOWLDeclarationAxiom(owlPropertyClass);
  setOfAxioms.add(declarationAxiom);
  // Create annotation type axiom
  // Fully specified description
  OWLAnnotation labelAnnotation =
      factory.getOWLAnnotation(factory.getRDFSLabel(), factory.getOWLLiteral(
          conceptVersionBI.getFullySpecifiedDescription().getText(),
          conceptVersionBI.getFullySpecifiedDescription().getLang()));
  OWLAxiom labelAnnotationAxiom =
      factory.getOWLAnnotationAssertionAxiom(owlPropertyClass.getIRI(),
          labelAnnotation);
  setOfAxioms.add(labelAnnotationAxiom);

  // Preferred name
  OWLAnnotation preferredTerm =
      factory.getOWLAnnotation(factory.getOWLAnnotationProperty(IRI
          .create(snomedEnUsPreferredAnnotation)), factory.getOWLLiteral(
          conceptVersionBI.getPreferredDescription().getText(),
          conceptVersionBI.getPreferredDescription().getLang()));
  OWLAxiom preferredTermAx =
      factory.getOWLAnnotationAssertionAxiom(owlPropertyClass.getIRI(),
          preferredTerm);
  setOfAxioms.add(preferredTermAx);

  // SubObjectPropertyOf
  // SubObjectPropertyOf(ObjectPropertyChain(
  // <http://snomed.info/id/363701004> <http://snomed.info/id/127489000> )
  // <http://snomed.info/id/363701004>)
  for (RelationshipVersionBI<?> rel : conceptVersionBI
      .getRelationshipsOutgoingActiveIsa()) {
    if (rel.isStated()) {
      String sctid =
          getSnomedConceptID(OTFUtility.getConceptVersion(rel
              .getDestinationNid()));
      // Skip the root of the attributes tree
      if (!sctid.equals(snomedConceptAttributeModelConcept)) {
        OWLObjectProperty parent =
            factory.getOWLObjectProperty(":" + sctid, pm);
        setOfAxioms.add(factory.getOWLSubObjectPropertyOfAxiom(
            owlPropertyClass, parent));
      }
    }
  }

  return owlPropertyClass;
}
项目:SciGraph    文件:OwlApiUtils.java   
public static String getIri(OWLDeclarationAxiom expression) {
  return expression.getEntity().getIRI().toString();
}
项目:semantika    文件:TMappingProcessor.java   
@Override
public void visit(OWLDeclarationAxiom axiom)
{
   ignoreOwlAxiom("Declaration", axiom);
}
项目:OWL2SPARQL    文件:OWLAxiomToSPARQLConverter.java   
@Override
public void visit(OWLDeclarationAxiom axiom) {
    annotationAxiomsNotSupportedWarning(axiom);
}