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

项目:jcel    文件:AxiomTranslator.java   
@Override
public Set<ComplexIntegerAxiom> visit(OWLEquivalentObjectPropertiesAxiom axiom) throws TranslationException {
    Objects.requireNonNull(axiom);
    Set<OWLObjectPropertyExpression> propertySet = axiom.getProperties();
    Set<IntegerObjectPropertyExpression> propertyExprSet = new HashSet<>();
    propertySet.forEach(propertyExpr -> {
        if (propertyExpr instanceof OWLObjectProperty) {
            OWLObjectProperty property = asOWLObjectProperty(propertyExpr);
            propertyExprSet.add(getDataTypeFactory().createObjectProperty(translateObjectProperty(property)));
        } else {
            throw new IllegalStateException();
        }
    });
    ComplexIntegerAxiom ret = getAxiomFactory().createEquivalentObjectPropertiesAxiom(propertyExprSet,
            translateAnnotations(axiom.getAnnotations()));
    return Collections.singleton(ret);
}
项目:SciGraph    文件:GraphOwlVisitor.java   
@Override
public Void visit(OWLEquivalentObjectPropertiesAxiom axiom) {
  Set<OWLObjectPropertyExpression> properties = axiom.getProperties();
  boolean anonymousPropertyExists = false;
  for (OWLObjectPropertyExpression property : properties) {
    anonymousPropertyExists = anonymousPropertyExists || property.isAnonymous();
  }

  // #217 - in case of EquivalentObjectProperties(:p ObjectInverseOf(:q))
  if (!anonymousPropertyExists) {
    Collection<Long> nodes = Collections2.transform(axiom.getObjectPropertiesInSignature(),
        new Function<OWLObjectProperty, Long>() {

          @Override
          public Long apply(OWLObjectProperty objectProperty) {
            return getOrCreateNode(getIri(objectProperty));
          }
        });

    getOrCreateRelationshipPairwise(nodes, OwlRelationships.OWL_EQUIVALENT_OBJECT_PROPERTY);
  }
  return null;
}
项目:HermiT-android    文件:EntailmentChecker.java   
public Boolean visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    Set<OWLObjectPropertyExpression> props=axiom.getProperties();
    Iterator<OWLObjectPropertyExpression> it=props.iterator();
    if (it.hasNext()) {
        OWLObjectPropertyExpression objectPropertyExpression1=it.next();
        while (it.hasNext()) {
            OWLObjectPropertyExpression objectPropertyExpression2=it.next();
            if (!reasoner.isSubObjectPropertyExpressionOf(objectPropertyExpression1,objectPropertyExpression2) || !reasoner.isSubObjectPropertyExpressionOf(objectPropertyExpression2,objectPropertyExpression1))
                return Boolean.FALSE;
        }
    }
    return Boolean.TRUE;
}
项目:elk-reasoner    文件:AbstractElkObjectConverter.java   
@Override
public OWLEquivalentObjectPropertiesAxiom visit(
        ElkEquivalentObjectPropertiesAxiom axiom) {
    return owlFactory_.getOWLEquivalentObjectPropertiesAxiom(
            toObjectPropertyExpressionSet(
                    axiom.getObjectPropertyExpressions()));
}
项目:elk-reasoner    文件:AbstractOwlAxiomConverterVisitor.java   
@Override
public T visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    throw new IllegalArgumentException(
            OWLEquivalentObjectPropertiesAxiom.class.getSimpleName()
                    + " cannot be converted to "
                    + getTargetClass().getSimpleName());
}
项目:Hermit_1.3.8_android    文件:EntailmentChecker.java   
public Boolean visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    Set<OWLObjectPropertyExpression> props=axiom.getProperties();
    Iterator<OWLObjectPropertyExpression> it=props.iterator();
    if (it.hasNext()) {
        OWLObjectPropertyExpression objectPropertyExpression1=it.next();
        while (it.hasNext()) {
            OWLObjectPropertyExpression objectPropertyExpression2=it.next();
            if (!reasoner.isSubObjectPropertyExpressionOf(objectPropertyExpression1,objectPropertyExpression2) || !reasoner.isSubObjectPropertyExpressionOf(objectPropertyExpression2,objectPropertyExpression1))
                return Boolean.FALSE;
        }
    }
    return Boolean.TRUE;
}
项目:semantika    文件:TMappingProcessor.java   
/**
 * A utility method to process OWL <code>InverseObjectProperties(OPE1 OPE2)</code> axiom and
 * produce inferred mapping assertions. The axiom states object property expression
 * <code>OPE1</code> is an inverse of the object property expression <code>OPE2</code>.
 */
@Override
public void visit(OWLInverseObjectPropertiesAxiom axiom)
{
   OWLObjectPropertyExpression ope1 = axiom.getFirstProperty();
   OWLObjectPropertyExpression ope2 = sOwlDataFactory.getOWLObjectInverseOf(axiom.getSecondProperty());
   OWLEquivalentObjectPropertiesAxiom ax = sOwlDataFactory.getOWLEquivalentObjectPropertiesAxiom(ope1, ope2);
   ax.accept(this);
   resetIsInverse(); // reset the isInverse = false.
}
项目:semantika    文件:TMappingProcessor.java   
/**
 * A utility method to process OWL <code>EquivalentDataProperties(DPE1 DPE2)</code> axiom and produce
 * inferred mapping assertions.
 */
@Override
public void visit(OWLEquivalentObjectPropertiesAxiom axiom)
{
   List<OWLObjectPropertyExpression> properties = new ArrayList<OWLObjectPropertyExpression>(axiom.getProperties());
   OWLObjectPropertyExpression ope1 = properties.get(0);
   OWLObjectPropertyExpression ope2 = properties.get(1);

   /*
    * Get all (copy) known mappings for the first equivalent object property expression
    * and produce the extra mappings.
    */
   ope1.accept(this);
   Set<IMapping> mappings1 = getMappingsForPropertyExpression();
   if (!mappings1.isEmpty()) {
      ope2.accept(this);
      produceEquivalentPropertyMappings(mappings1);
   }

   /*
    * Get all (copy) known mappings for the second equivalent object property expression
    * and produce the extra mappings.
    */
   ope2.accept(this);
   Set<IMapping> mappings2 = getMappingsForPropertyExpression();
   if (!mappings2.isEmpty()) {
      ope1.accept(this);
      produceEquivalentPropertyMappings(mappings2);
   }
}
项目:OWL2SPARQL    文件:OWLAxiomToSPARQLConverter.java   
@Override
public void visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    for (OWLObjectPropertyExpression propertyExpression : axiom.getProperties()) {
        if(propertyExpression.isAnonymous()){
            sparql += objectVar + "<" + propertyExpression.getInverseProperty().asOWLObjectProperty().toStringID() + "> " + subjectVar + " .";
        } else {
            sparql += subjectVar + "<" + propertyExpression.asOWLObjectProperty().toStringID() + "> " + objectVar + " .";
        }
    }
}
项目:owlapi-gwt    文件:AbstractEntityRegistrationManager.java   
@Override
public void visit(@Nonnull OWLEquivalentObjectPropertiesAxiom axiom) {
    for (OWLObjectPropertyExpression prop : axiom.getProperties()) {
        prop.accept(this);
    }
    processAxiomAnnotations(axiom);
}
项目:ontology-core    文件:OWLImporter.java   
private List<Axiom> transformOWLEquivalentObjectPropertiesAxiom(
        OWLEquivalentObjectPropertiesAxiom a) {
    List<Axiom> axioms = new ArrayList<Axiom>();
    for (OWLSubObjectPropertyOfAxiom ax : a.asSubObjectPropertyOfAxioms()) {
        OWLObjectPropertyExpression sub = ax.getSubProperty();
        OWLObjectPropertyExpression sup = ax.getSuperProperty();

        axioms.add(
                new RoleInclusion(new NamedRole(sub.asOWLObjectProperty().toStringID()),
                new NamedRole(sup.asOWLObjectProperty().toStringID()))
        );
    }
    return axioms;
}
项目:jopa    文件:IntegrityConstraintParser.java   
public void visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    notSupported(axiom);
}
项目:HermiT-android    文件:EntailmentChecker.java   
public void visit(OWLEquivalentObjectPropertiesAxiom axiom) {
}
项目:elk-reasoner    文件:OwlConverter.java   
@SuppressWarnings("static-method")
public ElkEquivalentObjectPropertiesAxiom convert(
        OWLEquivalentObjectPropertiesAxiom owlEquivalentObjectPropertiesAxiom) {
    return new ElkEquivalentObjectPropertiesAxiomWrap<OWLEquivalentObjectPropertiesAxiom>(
            owlEquivalentObjectPropertiesAxiom);
}
项目:elk-reasoner    文件:OwlAxiomConverterVisitor.java   
@Override
public ElkAxiom visit(
        OWLEquivalentObjectPropertiesAxiom owlEquivalentObjectProperties) {
    return CONVERTER.convert(owlEquivalentObjectProperties);
}
项目:elk-reasoner    文件:OwlObjectPropertyAxiomConverterVisitor.java   
@Override
public ElkObjectPropertyAxiom visit(
        OWLEquivalentObjectPropertiesAxiom owlEquivalentObjectProperties) {
    return CONVERTER.convert(owlEquivalentObjectProperties);
}
项目:elk-reasoner    文件:FailingOwlAxiomVisitor.java   
@Override
public void visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    defaultVisit(axiom);
}
项目:Hermit_1.3.8_android    文件:EntailmentChecker.java   
public void visit(OWLEquivalentObjectPropertiesAxiom axiom) {
}
项目:owltools    文件:AxiomAnnotationTools.java   
@Override
public OWLAxiom visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    return factory.getOWLEquivalentObjectPropertiesAxiom(axiom.getProperties(), annotations);
}
项目:owltools    文件:CardinalityContraintsTools.java   
@Override
public void visit(OWLEquivalentObjectPropertiesAxiom axiom) {
}
项目:born    文件:CycleDetector.java   
@Override
public Boolean visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    return true;
}
项目:born    文件:ElAxiomFilter.java   
@Override
public Boolean visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    return false;
}
项目:born    文件:AnnotationProcessor.java   
@Override
public Boolean visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    Objects.requireNonNull(axiom);
    return add(this.df.getOWLEquivalentObjectPropertiesAxiom(axiom.getProperties(), reg(axiom.getAnnotations())));
}
项目:born    文件:AnnotationCreator.java   
@Override
public Boolean visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    Objects.requireNonNull(axiom);
    return add(this.df.getOWLEquivalentObjectPropertiesAxiom(axiom.getProperties(), empty()));
}
项目:owlapi-gwt    文件:OWLObjectVisitorExAdapter.java   
@Override
public O visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    return doDefault(axiom);
}
项目:owlapi-gwt    文件:OWLObjectTypeIndexProvider.java   
@Override
public void visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    type = AXIOM_TYPE_INDEX_BASE + axiom.getAxiomType().getIndex();
}
项目:owlapi-gwt    文件:NNF.java   
@Override
public OWLAxiom visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    return axiom;
}
项目:owlapi-gwt    文件:HashCode.java   
@Override
public void visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    hashCode = primes[15];
    hashCode = hashCode * MULT + axiom.getProperties().hashCode();
    hashCode = hashCode * MULT + axiom.getAnnotations().hashCode();
}
项目:owlapi-gwt    文件:OWLAxiomVisitorAdapter.java   
@Override
public void visit(OWLEquivalentObjectPropertiesAxiom axiom) {
    handleDefault(axiom);
}
项目:SVoNt    文件:CEXOWL2ELProfile.java   
public void visit(OWLEquivalentObjectPropertiesAxiom arg0) {
    unusedAxiom(arg0);
}
项目:binaryowl    文件:OWLEquivalentObjectPropertiesAxiomSerializer.java   
@Override
protected void writeAxiom(OWLEquivalentObjectPropertiesAxiom axiom, BinaryOWLOutputStream outputStream) throws IOException {
    outputStream.writeOWLObjects(axiom.getProperties());
}
项目:binaryowl    文件:OWLEquivalentObjectPropertiesAxiomSerializer.java   
@Override
protected OWLEquivalentObjectPropertiesAxiom readAxiom(BinaryOWLInputStream inputStream, Set<OWLAnnotation> annotations) throws IOException, BinaryOWLParseException {
    Set<OWLObjectPropertyExpression> propertyExpressions = inputStream.readOWLObjects();
    return inputStream.getDataFactory().getOWLEquivalentObjectPropertiesAxiom(propertyExpressions, annotations);
}
项目:logmap-matcher    文件:OWLAlignmentReader.java   
public void visit(OWLEquivalentObjectPropertiesAxiom ax){

    relation = Utilities.EQ;
    type = Utilities.OBJECTPROPERTIES;

    for (OWLAnnotation ann : ax.getAnnotations()){
        treatAnnotation(ann);
    }

}
项目:logmap-matcher    文件:ELAxiomVisitor.java   
public void visit(OWLEquivalentObjectPropertiesAxiom arg0) {

}
项目:Wolpertinger    文件:NiceAxiomPrinter.java   
public void visit(OWLEquivalentObjectPropertiesAxiom arg0) {
    // TODO Auto-generated method stub

}
项目:Wolpertinger    文件:DebugTranslation.java   
public void visit(OWLEquivalentObjectPropertiesAxiom arg0) {
    // TODO Auto-generated method stub

}
项目:Wolpertinger    文件:DirectTranslation.java   
public void visit(OWLEquivalentObjectPropertiesAxiom arg0) {
    // TODO Auto-generated method stub

}
项目:Wolpertinger    文件:NaiveTranslation.java   
public void visit(OWLEquivalentObjectPropertiesAxiom arg0) {
    // TODO Auto-generated method stub

}
项目:logmap-matcher    文件:OWLMappingAxiomVisitor.java   
public abstract void visit(OWLEquivalentObjectPropertiesAxiom arg0);