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

项目:HermiT-android    文件:OWLNormalization.java   
public void visit(OWLInverseObjectPropertiesAxiom axiom) {
    OWLObjectPropertyExpression first=axiom.getFirstProperty();
    OWLObjectPropertyExpression second=axiom.getSecondProperty();
    addInclusion(first,second.getInverseProperty());
    addInclusion(second,first.getInverseProperty());
    m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(first.getNamedProperty());
    m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(second.getNamedProperty());
}
项目:elk-reasoner    文件:AbstractElkObjectConverter.java   
@Override
public OWLInverseObjectPropertiesAxiom visit(
        ElkInverseObjectPropertiesAxiom axiom) {
    return owlFactory_.getOWLInverseObjectPropertiesAxiom(
            convert(axiom.getFirstObjectPropertyExpression()),
            convert(axiom.getSecondObjectPropertyExpression()));
}
项目:elk-reasoner    文件:AbstractOwlAxiomConverterVisitor.java   
@Override
public T visit(OWLInverseObjectPropertiesAxiom axiom) {
    throw new IllegalArgumentException(
            OWLInverseObjectPropertiesAxiom.class.getSimpleName()
                    + " cannot be converted to "
                    + getTargetClass().getSimpleName());
}
项目:Hermit_1.3.8_android    文件:OWLNormalization.java   
public void visit(OWLInverseObjectPropertiesAxiom axiom) {
    OWLObjectPropertyExpression first=axiom.getFirstProperty();
    OWLObjectPropertyExpression second=axiom.getSecondProperty();
    addInclusion(first,second.getInverseProperty());
    addInclusion(second,first.getInverseProperty());
    m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(first.getNamedProperty());
    m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(second.getNamedProperty());
}
项目:owltools    文件:OWLGraphWrapperEdges.java   
private boolean isInverseOfPair(OWLObjectProperty p1, OWLObjectProperty p2) {
    for (OWLOntology ont : getAllOntologies()) {
        for (OWLInverseObjectPropertiesAxiom a : ont.getInverseObjectPropertyAxioms(p1)) {
            if (a.getFirstProperty().equals(p2) ||
                    a.getSecondProperty().equals(p2)) {
                return true;
            }
        }
    }
    return false;
}
项目:Wolpertinger    文件:OWLNormalization.java   
public void visit(OWLInverseObjectPropertiesAxiom axiom) {
    OWLObjectPropertyExpression first=axiom.getFirstProperty();
    OWLObjectPropertyExpression second=axiom.getSecondProperty();
    addInclusion(first,second.getInverseProperty());
    addInclusion(second,first.getInverseProperty());
    m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(first.getNamedProperty());
    m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(second.getNamedProperty());
}
项目:jcel    文件:AxiomTranslator.java   
@Override
public Set<ComplexIntegerAxiom> visit(OWLInverseObjectPropertiesAxiom axiom) {
    Objects.requireNonNull(axiom);
    OWLObjectProperty firstProperty = asOWLObjectProperty(axiom.getFirstProperty());
    OWLObjectProperty secondProperty = asOWLObjectProperty(axiom.getSecondProperty());

    IntegerObjectProperty firstPropertyExpr = getDataTypeFactory()
            .createObjectProperty(translateObjectProperty(firstProperty));
    IntegerObjectProperty secondPropertyExpr = getDataTypeFactory()
            .createObjectProperty(translateObjectProperty(secondProperty));
    ComplexIntegerAxiom ret = getAxiomFactory().createInverseObjectPropertiesAxiom(firstPropertyExpr,
            secondPropertyExpr, translateAnnotations(axiom.getAnnotations()));
    return Collections.singleton(ret);
}
项目: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.
}
项目:owlapi-gwt    文件:HashCode.java   
@Override
public void visit(OWLInverseObjectPropertiesAxiom axiom) {
    hashCode = primes[19];
    hashCode = hashCode * MULT + axiom.getFirstProperty().hashCode()
            + axiom.getSecondProperty().hashCode();
    hashCode = hashCode * MULT + axiom.getAnnotations().hashCode();
}
项目:owlapi-gwt    文件:OWLInverseObjectPropertiesAxiomImpl.java   
@Override
public OWLInverseObjectPropertiesAxiom getAxiomWithoutAnnotations() {
    if (!isAnnotated()) {
        return this;
    }
    return new OWLInverseObjectPropertiesAxiomImpl(getFirstProperty(),
            getSecondProperty(), NO_ANNOTATIONS);
}
项目:owlapi-gwt    文件:OWLInverseObjectPropertiesAxiomImpl.java   
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    return obj instanceof OWLInverseObjectPropertiesAxiom;
}
项目:jopa    文件:IntegrityConstraintParser.java   
public void visit(OWLInverseObjectPropertiesAxiom axiom) {
    notSupported(axiom);
}
项目:HermiT-android    文件:EntailmentChecker.java   
public Boolean visit(OWLInverseObjectPropertiesAxiom axiom) {
    OWLObjectPropertyExpression objectPropertyExpression1=axiom.getFirstProperty().getInverseProperty();
    OWLObjectPropertyExpression objectPropertyExpression2=axiom.getSecondProperty();
    return reasoner.isSubObjectPropertyExpressionOf(objectPropertyExpression1,objectPropertyExpression2) && reasoner.isSubObjectPropertyExpressionOf(objectPropertyExpression2,objectPropertyExpression1);
}
项目:HermiT-android    文件:EntailmentChecker.java   
public void visit(OWLInverseObjectPropertiesAxiom axiom) {
}
项目:elk-reasoner    文件:OwlConverter.java   
@SuppressWarnings("static-method")
public ElkInverseObjectPropertiesAxiom convert(
        OWLInverseObjectPropertiesAxiom owlInverseObjectPropertiesAxiom) {
    return new ElkInverseObjectPropertiesAxiomWrap<OWLInverseObjectPropertiesAxiom>(
            owlInverseObjectPropertiesAxiom);
}
项目:elk-reasoner    文件:OwlAxiomConverterVisitor.java   
@Override
public ElkAxiom visit(
        OWLInverseObjectPropertiesAxiom owlInverseObjectPropertiesAxiom) {
    return CONVERTER.convert(owlInverseObjectPropertiesAxiom);
}
项目:elk-reasoner    文件:OwlObjectPropertyAxiomConverterVisitor.java   
@Override
public ElkObjectPropertyAxiom visit(
        OWLInverseObjectPropertiesAxiom owlInverseObjectPropertiesAxiom) {
    return CONVERTER.convert(owlInverseObjectPropertiesAxiom);
}
项目:elk-reasoner    文件:FailingOwlAxiomVisitor.java   
@Override
public void visit(OWLInverseObjectPropertiesAxiom axiom) {
    defaultVisit(axiom);
}
项目:Hermit_1.3.8_android    文件:EntailmentChecker.java   
public Boolean visit(OWLInverseObjectPropertiesAxiom axiom) {
    OWLObjectPropertyExpression objectPropertyExpression1=axiom.getFirstProperty().getInverseProperty();
    OWLObjectPropertyExpression objectPropertyExpression2=axiom.getSecondProperty();
    return reasoner.isSubObjectPropertyExpressionOf(objectPropertyExpression1,objectPropertyExpression2) && reasoner.isSubObjectPropertyExpressionOf(objectPropertyExpression2,objectPropertyExpression1);
}
项目:Hermit_1.3.8_android    文件:EntailmentChecker.java   
public void visit(OWLInverseObjectPropertiesAxiom axiom) {
}
项目:owltools    文件:AxiomAnnotationTools.java   
@Override
public OWLAxiom visit(OWLInverseObjectPropertiesAxiom axiom) {
    return factory.getOWLInverseObjectPropertiesAxiom(axiom.getFirstProperty(), axiom.getSecondProperty(), annotations);
}
项目:owltools    文件:CardinalityContraintsTools.java   
@Override
public void visit(OWLInverseObjectPropertiesAxiom axiom) {
}
项目:born    文件:CycleDetector.java   
@Override
public Boolean visit(OWLInverseObjectPropertiesAxiom axiom) {
    return true;
}
项目:born    文件:ElAxiomFilter.java   
@Override
public Boolean visit(OWLInverseObjectPropertiesAxiom axiom) {
    return false;
}
项目:born    文件:AnnotationProcessor.java   
@Override
public Boolean visit(OWLInverseObjectPropertiesAxiom axiom) {
    Objects.requireNonNull(axiom);
    return add(this.df.getOWLInverseObjectPropertiesAxiom(axiom.getFirstProperty(), axiom.getSecondProperty(),
            reg(axiom.getAnnotations())));
}
项目:born    文件:AnnotationCreator.java   
@Override
public Boolean visit(OWLInverseObjectPropertiesAxiom axiom) {
    Objects.requireNonNull(axiom);
    return add(this.df.getOWLInverseObjectPropertiesAxiom(axiom.getFirstProperty(), axiom.getSecondProperty(),
            empty()));
}
项目:OWL2SPARQL    文件:OWLAxiomToSPARQLConverter.java   
@Override
public void visit(OWLInverseObjectPropertiesAxiom axiom) {
    axiom.asSubObjectPropertyOfAxioms().forEach(ax -> ax.accept(this));
}
项目:owlapi-gwt    文件:OWLObjectVisitorExAdapter.java   
@Override
public O visit(OWLInverseObjectPropertiesAxiom axiom) {
    return doDefault(axiom);
}
项目:owlapi-gwt    文件:OWLObjectTypeIndexProvider.java   
@Override
public void visit(OWLInverseObjectPropertiesAxiom axiom) {
    type = AXIOM_TYPE_INDEX_BASE + axiom.getAxiomType().getIndex();
}
项目:owlapi-gwt    文件:NNF.java   
@Override
public OWLAxiom visit(OWLInverseObjectPropertiesAxiom axiom) {
    return axiom;
}
项目:owlapi-gwt    文件:OWLAxiomVisitorAdapter.java   
@Override
public void visit(OWLInverseObjectPropertiesAxiom axiom) {
    handleDefault(axiom);
}
项目:owlapi-gwt    文件:OWLInverseObjectPropertiesAxiomImpl.java   
@Override
public Set<OWLInverseObjectPropertiesAxiom> asPairwiseAxioms() {
    return CollectionFactory
            .createSet((OWLInverseObjectPropertiesAxiom) this);
}
项目:owlapi-gwt    文件:OWLInverseObjectPropertiesAxiomImpl.java   
@Override
public Set<OWLInverseObjectPropertiesAxiom> splitToAnnotatedPairs() {
    return asPairwiseAxioms();
}
项目:owlapi-gwt    文件:OWLInverseObjectPropertiesAxiomImpl.java   
@Override
public OWLInverseObjectPropertiesAxiom getAnnotatedAxiom(
        Set<OWLAnnotation> annotations) {
    return new OWLInverseObjectPropertiesAxiomImpl(getFirstProperty(),
            getSecondProperty(), mergeAnnos(annotations));
}
项目:owlapi-gwt    文件:AbstractEntityRegistrationManager.java   
@Override
public void visit(@Nonnull OWLInverseObjectPropertiesAxiom axiom) {
    axiom.getFirstProperty().accept(this);
    axiom.getSecondProperty().accept(this);
    processAxiomAnnotations(axiom);
}
项目:SVoNt    文件:PelletOWL2ELProfile.java   
public Object visit(OWLInverseObjectPropertiesAxiom axiom) {
  profileViolations.add(new UseOfIllegalAxiom(getCurrentOntology(), axiom));
  return null;
}
项目:SVoNt    文件:CEXOWL2ELProfile.java   
public void visit(OWLInverseObjectPropertiesAxiom arg0) {
    unusedAxiom(arg0);
}
项目:binaryowl    文件:OWLInverseObjectPropertiesAxiomSerializer.java   
@Override
protected void writeAxiom(OWLInverseObjectPropertiesAxiom axiom, BinaryOWLOutputStream outputStream) throws IOException {
    outputStream.writeOWLObject(axiom.getFirstProperty());
    outputStream.writeOWLObject(axiom.getSecondProperty());
}
项目:binaryowl    文件:OWLInverseObjectPropertiesAxiomSerializer.java   
@Override
protected OWLInverseObjectPropertiesAxiom readAxiom(BinaryOWLInputStream inputStream, Set<OWLAnnotation> annotations) throws IOException, BinaryOWLParseException {
    OWLObjectPropertyExpression firstPropertyExpression = inputStream.readOWLObject();
    OWLObjectPropertyExpression secondPropertyExpression = inputStream.readOWLObject();
    return inputStream.getDataFactory().getOWLInverseObjectPropertiesAxiom(firstPropertyExpression, secondPropertyExpression, annotations);
}
项目:logmap-matcher    文件:OWLMappingAxiomVisitor.java   
public void visit(OWLInverseObjectPropertiesAxiom arg0) {

}