• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java OWLDataExactCardinality类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.semanticweb.owlapi.model.OWLDataExactCardinality的典型用法代码示例。如果您正苦于以下问题:Java OWLDataExactCardinality类的具体用法?Java OWLDataExactCardinality怎么用?Java OWLDataExactCardinality使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



OWLDataExactCardinality类属于org.semanticweb.owlapi.model包,在下文中一共展示了OWLDataExactCardinality类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: addToOntology

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
@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));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:12,代码来源:OwlDataQualifiedCardinalityFeature.java


示例2: addToOntology

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
@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));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:12,代码来源:OwlDataCardinalityFeature.java


示例3: visit

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
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);
    }
}
 
开发者ID:kbss-cvut,项目名称:jopa,代码行数:14,代码来源:IntegrityConstraintClassParser.java


示例4: visit

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
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);
    }
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:12,代码来源:ExpressionManager.java


示例5: visit

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
@Override
public OWLDataExactCardinality visit(
		ElkDataExactCardinalityQualified expression) {
	return owlFactory_.getOWLDataExactCardinality(
			expression.getCardinality(), convert(expression.getProperty()),
			convert(expression.getFiller()));
}
 
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:8,代码来源:AbstractElkObjectConverter.java


示例6: convert

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
@SuppressWarnings("static-method")
public ElkDataExactCardinality convert(
		OWLDataExactCardinality owlDataExactCardinality) {
	if (owlDataExactCardinality.isQualified())
		return new ElkDataExactCardinalityQualifiedWrap<OWLDataExactCardinality>(
				owlDataExactCardinality);
	// else
	return new ElkDataExactCardinalityUnqualifiedWrap<OWLDataExactCardinality>(
			owlDataExactCardinality);
}
 
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:11,代码来源:OwlConverter.java


示例7: visit

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
@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();
}
 
开发者ID:matthewhorridge,项目名称:owlapi-gwt,代码行数:8,代码来源:HashCode.java


示例8: equals

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    return obj instanceof OWLDataExactCardinality;
}
 
开发者ID:matthewhorridge,项目名称:owlapi-gwt,代码行数:11,代码来源:OWLDataExactCardinalityImpl.java


示例9: visit

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
public void visit(OWLDataExactCardinality object) {
    visitProperty(object.getProperty());
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:4,代码来源:BuiltInPropertyManager.java


示例10: visit

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
public OWLClassExpression visit(OWLDataExactCardinality object) {
    throw new IllegalStateException("Internal error: exact data cardinality restrictions should have been simplified.");
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:4,代码来源:OWLNormalization.java


示例11: visit

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
public void visit(OWLDataExactCardinality object) {
    m_hasDatatypes=true;
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:4,代码来源:OWLAxiomsExpressivity.java


示例12: visit

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
public void visit(OWLDataExactCardinality object) {
    throw new IllegalStateException("Internal error: invalid normal form.");
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:4,代码来源:OWLClausification.java


示例13: visit

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
@Override
public ElkDataExactCardinality visit(
		OWLDataExactCardinality owlDataExactCardinality) {
	return CONVERTER.convert(owlDataExactCardinality);
}
 
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:6,代码来源:OwlClassExpressionConverterVisitor.java


示例14: visit

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
@Override
public OWLDataExactCardinality visit(OWLDataExactCardinality ce) {
	return null;
}
 
开发者ID:owlcollab,项目名称:owltools,代码行数:5,代码来源:TBoxUnFoldingTool.java


示例15: visit

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
@Override
public HandlerResult visit(OWLDataExactCardinality ce) {
	return null;
}
 
开发者ID:owlcollab,项目名称:owltools,代码行数:5,代码来源:CardinalityContraintsTools.java


示例16: DataPropertyRestriction

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
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());
}
 
开发者ID:dratc,项目名称:owl2diagram,代码行数:7,代码来源:DataPropertyRestriction.java


示例17: visit

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
@Override
public Boolean visit(OWLDataExactCardinality classExpression) {
	return false;
}
 
开发者ID:julianmendez,项目名称:born,代码行数:5,代码来源:ElClassExpressionFilter.java


示例18: visit

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
@Override
public IntegerClassExpression visit(OWLDataExactCardinality ce) {
	Objects.requireNonNull(ce);
	throw TranslationException.newUnsupportedTranslationException(ce);
}
 
开发者ID:julianmendez,项目名称:jcel,代码行数:6,代码来源:ClassExpressionTranslator.java


示例19: visit

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
@Override
public OWLClassExpression visit(OWLDataExactCardinality ce) {
	return ce;
}
 
开发者ID:SmartDataAnalytics,项目名称:OWL2SPARQL,代码行数:5,代码来源:OWLClassExpressionMinimizer.java


示例20: visit

import org.semanticweb.owlapi.model.OWLDataExactCardinality; //导入依赖的package包/类
@Override
public O visit(OWLDataExactCardinality ce) {
    return doDefault(ce);
}
 
开发者ID:matthewhorridge,项目名称:owlapi-gwt,代码行数:5,代码来源:OWLObjectVisitorExAdapter.java



注:本文中的org.semanticweb.owlapi.model.OWLDataExactCardinality类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java DirectedLinksResource类代码示例发布时间:2022-05-21
下一篇:
Java AnnotationBeanNameGenerator类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap