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

项目:OntoBench    文件:OwlDataQualifiedCardinalityFeature.java   
@Override
public void addToOntology() {
  OWLDataProperty property = factory.getOWLDataProperty(":dataExactQualifiedCardinality", pm);
  OWLDatatype datatype = OWL2Datatype.XSD_STRING.getDatatype(factory);
  addToGenericDomainAndNewRange(property, datatype);

  OWLDatatype affectedDatatype = OWL2Datatype.XSD_DATE_TIME.getDatatype(factory);
  OWLDataExactCardinality cardinality = factory.getOWLDataExactCardinality(12, property, affectedDatatype);

  addAxiomToOntology(factory.getOWLSubClassOfAxiom(featurePool.getExclusiveClass(":DataExactQualifiedCardinalityRange"), cardinality));
}
项目:OntoBench    文件:OwlDataCardinalityFeature.java   
@Override
public void addToOntology() {
  OWLDataProperty property = factory.getOWLDataProperty(":dataExactCardinality", pm);
  OWLDatatype datatype = OWL2Datatype.XSD_STRING.getDatatype(factory);
  addToGenericDomainAndNewRange(property, datatype);

  OWLClass range = featurePool.getExclusiveClass(":DataExactCardinalityRange");
  OWLDataExactCardinality cardinality = factory.getOWLDataExactCardinality(11, property);

  addAxiomToOntology(factory.getOWLSubClassOfAxiom(range, cardinality));
}
项目:jopa    文件:IntegrityConstraintClassParser.java   
public void visit(OWLDataExactCardinality arg0) {
    try {
        final OWLDatatype dt = Utils.ensureDatatype(arg0.getFiller());
        final OWLDataProperty dp = Utils.ensureDataProperty(arg0
            .getProperty());

        integrityConstraints.add(integrityConstraintFactory.DataParticipationConstraint(
            subjClass, dp, dt, arg0.getCardinality(),
            arg0.getCardinality()));
    } catch (UnsupportedICException e) {
        notSupported(arg0);
    }
}
项目:HermiT-android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLDataExactCardinality d) {
    OWLDataRange filler=getNNF(d.getFiller());
    if (d.getCardinality()==0)
        return m_factory.getOWLDataMinCardinality(1,d.getProperty(),filler);
    else {
        Set<OWLClassExpression> disjuncts=new HashSet<OWLClassExpression>();
        disjuncts.add(m_factory.getOWLDataMaxCardinality(d.getCardinality()-1,d.getProperty(),filler));
        disjuncts.add(m_factory.getOWLDataMinCardinality(d.getCardinality()+1,d.getProperty(),filler));
        return m_factory.getOWLObjectUnionOf(disjuncts);
    }
}
项目:HermiT-android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLDataExactCardinality d) {
    OWLDataRange filler=getSimplified(d.getFiller());
    if (d.getCardinality()<0)
        return m_factory.getOWLNothing();
    else if (d.getCardinality()==0)
        return m_factory.getOWLDataAllValuesFrom(d.getProperty(),m_factory.getOWLDataComplementOf(filler));
    else if (isBottomDataRange(filler))
        return m_factory.getOWLNothing();
    else {
        OWLDataMinCardinality minCardinality=m_factory.getOWLDataMinCardinality(d.getCardinality(),d.getProperty(),filler);
        OWLDataMaxCardinality maxCardinality=m_factory.getOWLDataMaxCardinality(d.getCardinality(),d.getProperty(),filler);
        return m_factory.getOWLObjectIntersectionOf(minCardinality,maxCardinality);
    }
}
项目:elk-reasoner    文件:AbstractElkObjectConverter.java   
@Override
public OWLDataExactCardinality visit(
        ElkDataExactCardinalityQualified expression) {
    return owlFactory_.getOWLDataExactCardinality(
            expression.getCardinality(), convert(expression.getProperty()),
            convert(expression.getFiller()));
}
项目:elk-reasoner    文件:OwlConverter.java   
@SuppressWarnings("static-method")
public ElkDataExactCardinality convert(
        OWLDataExactCardinality owlDataExactCardinality) {
    if (owlDataExactCardinality.isQualified())
        return new ElkDataExactCardinalityQualifiedWrap<OWLDataExactCardinality>(
                owlDataExactCardinality);
    // else
    return new ElkDataExactCardinalityUnqualifiedWrap<OWLDataExactCardinality>(
            owlDataExactCardinality);
}
项目:Hermit_1.3.8_android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLDataExactCardinality d) {
    OWLDataRange filler=getNNF(d.getFiller());
    if (d.getCardinality()==0)
        return m_factory.getOWLDataMinCardinality(1,d.getProperty(),filler);
    else {
        Set<OWLClassExpression> disjuncts=new HashSet<OWLClassExpression>();
        disjuncts.add(m_factory.getOWLDataMaxCardinality(d.getCardinality()-1,d.getProperty(),filler));
        disjuncts.add(m_factory.getOWLDataMinCardinality(d.getCardinality()+1,d.getProperty(),filler));
        return m_factory.getOWLObjectUnionOf(disjuncts);
    }
}
项目:Hermit_1.3.8_android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLDataExactCardinality d) {
    OWLDataRange filler=getSimplified(d.getFiller());
    if (d.getCardinality()<0)
        return m_factory.getOWLNothing();
    else if (d.getCardinality()==0)
        return m_factory.getOWLDataAllValuesFrom(d.getProperty(),m_factory.getOWLDataComplementOf(filler));
    else if (isBottomDataRange(filler))
        return m_factory.getOWLNothing();
    else {
        OWLDataMinCardinality minCardinality=m_factory.getOWLDataMinCardinality(d.getCardinality(),d.getProperty(),filler);
        OWLDataMaxCardinality maxCardinality=m_factory.getOWLDataMaxCardinality(d.getCardinality(),d.getProperty(),filler);
        return m_factory.getOWLObjectIntersectionOf(minCardinality,maxCardinality);
    }
}
项目:Wolpertinger    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLDataExactCardinality d) {
    OWLDataRange filler=getNNF(d.getFiller());
    if (d.getCardinality()==0)
        return m_factory.getOWLDataMinCardinality(1,d.getProperty(),filler);
    else {
        Set<OWLClassExpression> disjuncts=new HashSet<OWLClassExpression>();
        disjuncts.add(m_factory.getOWLDataMaxCardinality(d.getCardinality()-1,d.getProperty(),filler));
        disjuncts.add(m_factory.getOWLDataMinCardinality(d.getCardinality()+1,d.getProperty(),filler));
        return m_factory.getOWLObjectUnionOf(disjuncts);
    }
}
项目:Wolpertinger    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLDataExactCardinality d) {
    OWLDataRange filler=getSimplified(d.getFiller());
    if (d.getCardinality()<0)
        return m_factory.getOWLNothing();
    else if (d.getCardinality()==0)
        return m_factory.getOWLDataAllValuesFrom(d.getProperty(),m_factory.getOWLDataComplementOf(filler));
    else if (isBottomDataRange(filler))
        return m_factory.getOWLNothing();
    else {
        OWLDataMinCardinality minCardinality=m_factory.getOWLDataMinCardinality(d.getCardinality(),d.getProperty(),filler);
        OWLDataMaxCardinality maxCardinality=m_factory.getOWLDataMaxCardinality(d.getCardinality(),d.getProperty(),filler);
        return m_factory.getOWLObjectIntersectionOf(minCardinality,maxCardinality);
    }
}
项目:owlapi-gwt    文件:HashCode.java   
@Override
public void visit(OWLDataExactCardinality ce) {
    hashCode = primes[35];
    hashCode = hashCode * MULT + ce.getProperty().hashCode();
    hashCode = hashCode * MULT + ce.getCardinality();
    hashCode = hashCode * MULT + ce.getFiller().hashCode();
}
项目:owlapi-gwt    文件:OWLDataExactCardinalityImpl.java   
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    return obj instanceof OWLDataExactCardinality;
}
项目:HermiT-android    文件:BuiltInPropertyManager.java   
public void visit(OWLDataExactCardinality object) {
    visitProperty(object.getProperty());
}
项目:HermiT-android    文件:OWLNormalization.java   
public OWLClassExpression visit(OWLDataExactCardinality object) {
    throw new IllegalStateException("Internal error: exact data cardinality restrictions should have been simplified.");
}
项目:HermiT-android    文件:OWLNormalization.java   
public Boolean visit(OWLDataExactCardinality desc) {
    return Boolean.TRUE;
}
项目:HermiT-android    文件:OWLAxiomsExpressivity.java   
public void visit(OWLDataExactCardinality object) {
    m_hasDatatypes=true;
}
项目:HermiT-android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLDataExactCardinality d) {
    OWLDataRange filler=getNNF(d.getFiller());
    return m_factory.getOWLDataExactCardinality(d.getCardinality(),d.getProperty(),filler);
}
项目:HermiT-android    文件:OWLClausification.java   
public void visit(OWLDataExactCardinality object) {
    throw new IllegalStateException("Internal error: invalid normal form.");
}
项目:elk-reasoner    文件:AbstractElkObjectConverter.java   
@Override
public OWLDataExactCardinality visit(
        ElkDataExactCardinalityUnqualified expression) {
    return owlFactory_.getOWLDataExactCardinality(
            expression.getCardinality(), convert(expression.getProperty()));
}
项目:elk-reasoner    文件:OwlClassExpressionConverterVisitor.java   
@Override
public ElkDataExactCardinality visit(
        OWLDataExactCardinality owlDataExactCardinality) {
    return CONVERTER.convert(owlDataExactCardinality);
}
项目:Hermit_1.3.8_android    文件:BuiltInPropertyManager.java   
public void visit(OWLDataExactCardinality object) {
    visitProperty(object.getProperty());
}
项目:Hermit_1.3.8_android    文件:OWLNormalization.java   
public OWLClassExpression visit(OWLDataExactCardinality object) {
    throw new IllegalStateException("Internal error: exact data cardinality restrictions should have been simplified.");
}
项目:Hermit_1.3.8_android    文件:OWLNormalization.java   
public Boolean visit(OWLDataExactCardinality desc) {
    return Boolean.TRUE;
}
项目:Hermit_1.3.8_android    文件:OWLAxiomsExpressivity.java   
public void visit(OWLDataExactCardinality object) {
    m_hasDatatypes=true;
}
项目:Hermit_1.3.8_android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLDataExactCardinality d) {
    OWLDataRange filler=getNNF(d.getFiller());
    return m_factory.getOWLDataExactCardinality(d.getCardinality(),d.getProperty(),filler);
}
项目:Hermit_1.3.8_android    文件:OWLClausification.java   
public void visit(OWLDataExactCardinality object) {
    throw new IllegalStateException("Internal error: invalid normal form.");
}
项目:owltools    文件:TBoxUnFoldingTool.java   
@Override
public OWLDataExactCardinality visit(OWLDataExactCardinality ce) {
    return null;
}
项目:owltools    文件:CardinalityContraintsTools.java   
@Override
public HandlerResult visit(OWLDataExactCardinality ce) {
    return null;
}
项目:Wolpertinger    文件:OWLNormalization.java   
public OWLClassExpression visit(OWLDataExactCardinality object) {
    throw new IllegalStateException("Internal error: exact data cardinality restrictions should have been simplified.");
}
项目:Wolpertinger    文件:OWLNormalization.java   
public Boolean visit(OWLDataExactCardinality desc) {
    return Boolean.TRUE;
}
项目:Wolpertinger    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLDataExactCardinality d) {
    OWLDataRange filler=getNNF(d.getFiller());
    return m_factory.getOWLDataExactCardinality(d.getCardinality(),d.getProperty(),filler);
}
项目:owl2diagram    文件:DataPropertyRestriction.java   
public DataPropertyRestriction(OWLDataExactCardinality ex, OWLHelper helper) {
    IRI roleIRI = ex.getProperty().asOWLDataProperty().getIRI();
    this.role = helper.shorten(roleIRI);
    this.fillerType = ex.getFiller().asOWLDatatype().getBuiltInDatatype();
    this.multiplicity = Multiplicity.create(ex.getCardinality(), ex.getCardinality());
}
项目:born    文件:ElClassExpressionFilter.java   
@Override
public Boolean visit(OWLDataExactCardinality classExpression) {
    return false;
}
项目:jcel    文件:ClassExpressionTranslator.java   
@Override
public IntegerClassExpression visit(OWLDataExactCardinality ce) {
    Objects.requireNonNull(ce);
    throw TranslationException.newUnsupportedTranslationException(ce);
}
项目:OWL2SPARQL    文件:OWLClassExpressionMinimizer.java   
@Override
public OWLClassExpression visit(OWLDataExactCardinality ce) {
    return ce;
}
项目:owlapi-gwt    文件:OWLObjectVisitorExAdapter.java   
@Override
public O visit(OWLDataExactCardinality ce) {
    return doDefault(ce);
}
项目:owlapi-gwt    文件:OWLObjectVisitorAdapter.java   
@Override
public void visit(OWLDataExactCardinality ce) {
    handleDefault(ce);
}
项目:owlapi-gwt    文件:OWLObjectTypeIndexProvider.java   
@Override
public void visit(OWLDataExactCardinality ce) {
    type = CLASS_EXPRESSION_TYPE_INDEX_BASE + 16;
}
项目:owlapi-gwt    文件:NNF.java   
@Override
public OWLClassExpression visit(OWLDataExactCardinality ce) {
    return ce.asIntersectionOfMinMax().accept(this);
}