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

项目:HermiT-android    文件:OWLClausification.java   
public void visit(OWLDataComplementOf dr) {
    OWLDataRange description=dr.getDataRange();
    if (description.isDatatype() && (Prefixes.isInternalIRI(description.asOWLDatatype().getIRI().toString()) || m_definedDatatypeIRIs.contains(description.asOWLDatatype()))) {
        m_bodyAtoms.add(Atom.create(InternalDatatype.create(description.asOWLDatatype().getIRI().toString()),X));
    }
    else {
        LiteralDataRange literalRange=m_dataRangeConverter.convertDataRange(dr);
        if (literalRange.isNegatedInternalDatatype()) {
            InternalDatatype negatedDatatype=(InternalDatatype)literalRange.getNegation();
            if (!negatedDatatype.isAlwaysTrue())
                m_bodyAtoms.add(Atom.create(negatedDatatype,X));
        }
        else {
            if (!literalRange.isAlwaysFalse())
                m_headAtoms.add(Atom.create((DLPredicate)literalRange,X));
        }
    }
}
项目:Hermit_1.3.8_android    文件:OWLClausification.java   
public void visit(OWLDataComplementOf dr) {
    OWLDataRange description=dr.getDataRange();
    if (description.isDatatype() && (Prefixes.isInternalIRI(description.asOWLDatatype().getIRI().toString()) || m_definedDatatypeIRIs.contains(description.asOWLDatatype()))) {
        m_bodyAtoms.add(Atom.create(InternalDatatype.create(description.asOWLDatatype().getIRI().toString()),X));
    }
    else {
        LiteralDataRange literalRange=m_dataRangeConverter.convertDataRange(dr);
        if (literalRange.isNegatedInternalDatatype()) {
            InternalDatatype negatedDatatype=(InternalDatatype)literalRange.getNegation();
            if (!negatedDatatype.isAlwaysTrue())
                m_bodyAtoms.add(Atom.create(negatedDatatype,X));
        }
        else {
            if (!literalRange.isAlwaysFalse())
                m_headAtoms.add(Atom.create((DLPredicate)literalRange,X));
        }
    }
}
项目:OntoBench    文件:OwlDataComplementOfFeature.java   
@Override
public void addToOntology() {
  OWLDatatype datatype = OWL2Datatype.XSD_STRING.getDatatype(factory);
  OWLDataComplementOf complement = factory.getOWLDataComplementOf(datatype);

  addToGenericDomainAndNewRange(factory.getOWLDataProperty(":dataComplementOfProperty", pm), complement);
}
项目:HermiT-android    文件:ExpressionManager.java   
public OWLDataRange visit(OWLDataComplementOf o) {
    OWLDataRange dataRangeSimplified=getSimplified(o.getDataRange());
    if (dataRangeSimplified instanceof OWLDataComplementOf)
        return ((OWLDataComplementOf)dataRangeSimplified).getDataRange();
    else
        return m_factory.getOWLDataComplementOf(dataRangeSimplified);
}
项目:Hermit_1.3.8_android    文件:ExpressionManager.java   
public OWLDataRange visit(OWLDataComplementOf o) {
    OWLDataRange dataRangeSimplified=getSimplified(o.getDataRange());
    if (dataRangeSimplified instanceof OWLDataComplementOf)
        return ((OWLDataComplementOf)dataRangeSimplified).getDataRange();
    else
        return m_factory.getOWLDataComplementOf(dataRangeSimplified);
}
项目:Wolpertinger    文件:ExpressionManager.java   
public OWLDataRange visit(OWLDataComplementOf o) {
    OWLDataRange dataRangeSimplified=getSimplified(o.getDataRange());
    if (dataRangeSimplified instanceof OWLDataComplementOf)
        return ((OWLDataComplementOf)dataRangeSimplified).getDataRange();
    else
        return m_factory.getOWLDataComplementOf(dataRangeSimplified);
}
项目:owlapi-gwt    文件:NNF.java   
@Override
public OWLDataRange visit(OWLDataComplementOf node) {
    if (negated) {
        return node.getDataRange();
    } else {
        return node;
    }
}
项目:owlapi-gwt    文件:OWLDataComplementOfImpl.java   
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!(obj instanceof OWLDataComplementOf)) {
        return false;
    }
    return ((OWLDataComplementOf) obj).getDataRange().equals(dataRange);
}
项目:HermiT-android    文件:OWLNormalization.java   
protected static boolean isNegatedAtomic(OWLDataRange dr) {
    return dr instanceof OWLDataComplementOf && isAtomic(((OWLDataComplementOf)dr).getDataRange());
}
项目:HermiT-android    文件:OWLNormalization.java   
public OWLDataRange visit(OWLDataComplementOf node) {
    return node;
}
项目:HermiT-android    文件:ExpressionManager.java   
public OWLDataRange visit(OWLDataComplementOf o) {
    return getComplementNNF(o.getDataRange());
}
项目:HermiT-android    文件:ExpressionManager.java   
public OWLDataRange visit(OWLDataComplementOf o) {
    return getNNF(o.getDataRange());
}
项目:HermiT-android    文件:ExpressionManager.java   
protected boolean isBottomDataRange(OWLDataRange dataRange) {
    return dataRange instanceof OWLDataComplementOf && ((OWLDataComplementOf)dataRange).getDataRange().isTopDatatype();
}
项目:HermiT-android    文件:OWLClausification.java   
public Object visit(OWLDataComplementOf object) {
    return convertDataRange(object.getDataRange()).getNegation();
}
项目:elk-reasoner    文件:AbstractElkObjectConverter.java   
@Override
public OWLDataComplementOf visit(ElkDataComplementOf expression) {
    return owlFactory_.getOWLDataComplementOf(convert(expression));
}
项目:elk-reasoner    文件:OwlConverter.java   
@SuppressWarnings("static-method")
public ElkDataComplementOf convert(
        OWLDataComplementOf owlDataComplementOf) {
    return new ElkDataComplementOfWrap<OWLDataComplementOf>(
            owlDataComplementOf);
}
项目:elk-reasoner    文件:OwlDataRangeConverterVisitor.java   
@Override
public ElkDataComplementOf visit(OWLDataComplementOf owlDataComplementOf) {
    return CONVERTER.convert(owlDataComplementOf);
}
项目:Hermit_1.3.8_android    文件:OWLNormalization.java   
protected static boolean isNegatedAtomic(OWLDataRange dr) {
    return dr instanceof OWLDataComplementOf && isAtomic(((OWLDataComplementOf)dr).getDataRange());
}
项目:Hermit_1.3.8_android    文件:OWLNormalization.java   
public OWLDataRange visit(OWLDataComplementOf node) {
    return node;
}
项目:Hermit_1.3.8_android    文件:ExpressionManager.java   
public OWLDataRange visit(OWLDataComplementOf o) {
    return getComplementNNF(o.getDataRange());
}
项目:Hermit_1.3.8_android    文件:ExpressionManager.java   
public OWLDataRange visit(OWLDataComplementOf o) {
    return getNNF(o.getDataRange());
}
项目:Hermit_1.3.8_android    文件:ExpressionManager.java   
protected boolean isBottomDataRange(OWLDataRange dataRange) {
    return dataRange instanceof OWLDataComplementOf && ((OWLDataComplementOf)dataRange).getDataRange().isTopDatatype();
}
项目:Hermit_1.3.8_android    文件:OWLClausification.java   
public Object visit(OWLDataComplementOf object) {
    return convertDataRange(object.getDataRange()).getNegation();
}
项目:Wolpertinger    文件:OWLNormalization.java   
protected static boolean isNegatedAtomic(OWLDataRange dr) {
    return dr instanceof OWLDataComplementOf && isAtomic(((OWLDataComplementOf)dr).getDataRange());
}
项目:Wolpertinger    文件:OWLNormalization.java   
public OWLDataRange visit(OWLDataComplementOf node) {
    return node;
}
项目:Wolpertinger    文件:ExpressionManager.java   
public OWLDataRange visit(OWLDataComplementOf o) {
    return getComplementNNF(o.getDataRange());
}
项目:Wolpertinger    文件:ExpressionManager.java   
public OWLDataRange visit(OWLDataComplementOf o) {
    return getNNF(o.getDataRange());
}
项目:Wolpertinger    文件:ExpressionManager.java   
protected boolean isBottomDataRange(OWLDataRange dataRange) {
    return dataRange instanceof OWLDataComplementOf && ((OWLDataComplementOf)dataRange).getDataRange().isTopDatatype();
}
项目:owlapi-gwt    文件:OWLDataVisitorExAdapter.java   
@Override
public O visit(OWLDataComplementOf node) {
    return doDefault(node);
}
项目:owlapi-gwt    文件:OWLObjectVisitorAdapter.java   
@Override
public void visit(OWLDataComplementOf node) {
    handleDefault(node);
}
项目:owlapi-gwt    文件:OWLObjectTypeIndexProvider.java   
@Override
public void visit(OWLDataComplementOf node) {
    type = DATA_TYPE_INDEX_BASE + 2;
}
项目:owlapi-gwt    文件:HashCode.java   
@Override
public void visit(OWLDataComplementOf node) {
    hashCode = primes[51];
    hashCode = hashCode * MULT + node.getDataRange().hashCode();
}
项目:owlapi-gwt    文件:AbstractEntityRegistrationManager.java   
@Override
public void visit(@Nonnull OWLDataComplementOf node) {
    node.getDataRange().accept(this);
}
项目:owlapi-gwt    文件:OWLDataComplementOfImpl.java   
@Override
protected int compareObjectOfSameType(OWLObject object) {
    OWLDataComplementOf other = (OWLDataComplementOf) object;
    return getDataRange().compareTo(other.getDataRange());
}
项目:SVoNt    文件:PelletOWL2ELProfile.java   
public Object visit(OWLDataComplementOf node) {
  profileViolations.add(new UseOfIllegalDataRange(getCurrentOntology(), getCurrentAxiom(), node));
  return null;
}
项目:binaryowl    文件:OWLDataComplementOfSerializer.java   
@Override
protected void writeObject(OWLDataComplementOf object, BinaryOWLOutputStream outputStream) throws IOException {
    outputStream.writeOWLObject(object.getDataRange());
}
项目:binaryowl    文件:OWLDataComplementOfSerializer.java   
@Override
protected OWLDataComplementOf readObject(BinaryOWLInputStream inputStream) throws IOException, BinaryOWLParseException {
    OWLDataRange dataRange = inputStream.readOWLObject();
    return inputStream.getDataFactory().getOWLDataComplementOf(dataRange);
}