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

Java OWLDataUnionOf类代码示例

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

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



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

示例1: visit

import org.semanticweb.owlapi.model.OWLDataUnionOf; //导入依赖的package包/类
public void visit(SWRLDataRangeAtom at) {
    OWLDataRange dr=at.getPredicate();
    SWRLDArgument argument=at.getArgument();
    if (!(argument instanceof SWRLVariable))
        throw new IllegalArgumentException("A SWRL rule contains a data range with an argument that is not a literal, and such rules are not supported.");
    if (!m_isPositive)
        dr=m_factory.getOWLDataComplementOf(dr);
    dr=m_expressionManager.getNNF(m_expressionManager.getSimplified(dr));
    if (dr instanceof OWLDataIntersectionOf || dr instanceof OWLDataUnionOf) {
        OWLDatatype definition=getDefinitionFor(dr,m_alreadyExists);
        if (!m_alreadyExists[0])
            m_dataRangeInclusions.add(new OWLDataRange[] { negative(definition),dr });
        dr=definition;
    }
    SWRLAtom atom=m_factory.getSWRLDataRangeAtom(dr,argument);
    m_normalizedHeadAtoms.add(atom);
    m_headDataRangeVariables.add((SWRLVariable)argument);
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:19,代码来源:OWLNormalization.java


示例2: visit

import org.semanticweb.owlapi.model.OWLDataUnionOf; //导入依赖的package包/类
public Boolean visit(OWLDatatypeDefinitionAxiom axiom) {
    reasoner.throwInconsistentOntologyExceptionIfNecessary();
    if (!reasoner.isConsistent())
        return true;
    if (reasoner.m_dlOntology.hasDatatypes()) {
        OWLDataFactory factory=reasoner.getDataFactory();
        OWLIndividual freshIndividual=factory.getOWLAnonymousIndividual("fresh-individual");
        OWLDataProperty freshDataProperty=factory.getOWLDataProperty(IRI.create("fresh-data-property"));
        OWLDataRange dataRange=axiom.getDataRange();
        OWLDatatype dt=axiom.getDatatype();
        OWLDataIntersectionOf dr1=factory.getOWLDataIntersectionOf(factory.getOWLDataComplementOf(dataRange),dt);
        OWLDataIntersectionOf dr2=factory.getOWLDataIntersectionOf(factory.getOWLDataComplementOf(dt),dataRange);
        OWLDataUnionOf union=factory.getOWLDataUnionOf(dr1,dr2);
        OWLClassExpression c=factory.getOWLDataSomeValuesFrom(freshDataProperty,union);
        OWLClassAssertionAxiom ax=factory.getOWLClassAssertionAxiom(c,freshIndividual);
        Tableau tableau=reasoner.getTableau(ax);
        return !tableau.isSatisfiable(true,true,null,null,null,null,null,ReasoningTaskDescription.isAxiomEntailed(axiom));
    }
    else
        return false;
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:22,代码来源:EntailmentChecker.java


示例3: addToOntology

import org.semanticweb.owlapi.model.OWLDataUnionOf; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLDatatype d1 = factory.getOWLDatatype(":DataUnionOf_Datatype1", pm);
  OWLDatatype d2 = factory.getOWLDatatype(":DataUnionOf_Datatype2", pm);
  OWLDataUnionOf union = factory.getOWLDataUnionOf(d1, d2);

  OWLDataProperty property = factory.getOWLDataProperty(":DataUnionOf", pm);
  addToGenericDomainAndNewRange(property, union);
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:10,代码来源:OwlDataUnionOfFeature.java


示例4: visit

import org.semanticweb.owlapi.model.OWLDataUnionOf; //导入依赖的package包/类
public OWLDataRange visit(OWLDataUnionOf range) {
    Set<OWLDataRange> newDisjuncts=new HashSet<OWLDataRange>();
    for (OWLDataRange dr : range.getOperands()) {
        OWLDataRange drSimplified=getSimplified(dr);
        if (drSimplified.isTopDatatype())
            return m_factory.getTopDatatype();
        else if (drSimplified instanceof OWLDataUnionOf)
            newDisjuncts.addAll(((OWLDataUnionOf)drSimplified).getOperands());
        else
            newDisjuncts.add(drSimplified);
    }
    return m_factory.getOWLDataUnionOf(newDisjuncts);
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:14,代码来源:ExpressionManager.java


示例5: visit

import org.semanticweb.owlapi.model.OWLDataUnionOf; //导入依赖的package包/类
@Override
public OWLDataRange visit(OWLDataUnionOf node) {
    Set<OWLDataRange> ops = new HashSet<>();
    for (OWLDataRange op : node.getOperands()) {
        ops.add(op.accept(this));
    }
    if (negated) {
        // Flip to an intersection
        return dataFactory.getOWLDataIntersectionOf(ops);
    } else {
        return dataFactory.getOWLDataUnionOf(ops);
    }
}
 
开发者ID:matthewhorridge,项目名称:owlapi-gwt,代码行数:14,代码来源:NNF.java


示例6: equals

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


示例7: visit

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


示例8: visit

import org.semanticweb.owlapi.model.OWLDataUnionOf; //导入依赖的package包/类
@Override
public OWLDataUnionOf visit(ElkDataUnionOf expression) {
	return owlFactory_
			.getOWLDataUnionOf(toDataRangeSet(expression.getDataRanges()));
}
 
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:6,代码来源:AbstractElkObjectConverter.java


示例9: convert

import org.semanticweb.owlapi.model.OWLDataUnionOf; //导入依赖的package包/类
@SuppressWarnings("static-method")
public ElkDataUnionOf convert(OWLDataUnionOf owlDataUnionOf) {
	return new ElkDataUnionOfWrap<OWLDataUnionOf>(owlDataUnionOf);
}
 
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:5,代码来源:OwlConverter.java


示例10: visit

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


示例11: visit

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


示例12: visit

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


示例13: visit

import org.semanticweb.owlapi.model.OWLDataUnionOf; //导入依赖的package包/类
@Override
public void visit(OWLDataUnionOf node) {
    type = AXIOM_TYPE_INDEX_BASE + 5;
}
 
开发者ID:matthewhorridge,项目名称:owlapi-gwt,代码行数:5,代码来源:OWLObjectTypeIndexProvider.java


示例14: visit

import org.semanticweb.owlapi.model.OWLDataUnionOf; //导入依赖的package包/类
@Override
public void visit(OWLDataUnionOf node) {
    hashCode = primes[77];
    hashCode = hashCode * MULT + node.getOperands().hashCode();
}
 
开发者ID:matthewhorridge,项目名称:owlapi-gwt,代码行数:6,代码来源:HashCode.java


示例15: compareObjectOfSameType

import org.semanticweb.owlapi.model.OWLDataUnionOf; //导入依赖的package包/类
@Override
protected int compareObjectOfSameType(OWLObject object) {
    OWLDataUnionOf other = (OWLDataUnionOf) object;
    return compareSets(getOperands(), other.getOperands());
}
 
开发者ID:matthewhorridge,项目名称:owlapi-gwt,代码行数:6,代码来源:OWLDataUnionOfImpl.java


示例16: visit

import org.semanticweb.owlapi.model.OWLDataUnionOf; //导入依赖的package包/类
@Override
public void visit(@Nonnull OWLDataUnionOf node) {
    for (OWLDataRange dr : node.getOperands()) {
        dr.accept(this);
    }
}
 
开发者ID:matthewhorridge,项目名称:owlapi-gwt,代码行数:7,代码来源:AbstractEntityRegistrationManager.java


示例17: visit

import org.semanticweb.owlapi.model.OWLDataUnionOf; //导入依赖的package包/类
public Object visit(OWLDataUnionOf node) {
  profileViolations.add(new UseOfIllegalDataRange(getCurrentOntology(), getCurrentAxiom(), node));
  return null;
}
 
开发者ID:ag-csw,项目名称:SVoNt,代码行数:5,代码来源:PelletOWL2ELProfile.java


示例18: writeObject

import org.semanticweb.owlapi.model.OWLDataUnionOf; //导入依赖的package包/类
@Override
protected void writeObject(OWLDataUnionOf object, BinaryOWLOutputStream outputStream) throws IOException {
    outputStream.writeOWLObjects(object.getOperands());
}
 
开发者ID:matthewhorridge,项目名称:binaryowl,代码行数:5,代码来源:OWLDataUnionOfSerializer.java


示例19: readObject

import org.semanticweb.owlapi.model.OWLDataUnionOf; //导入依赖的package包/类
@Override
protected OWLDataUnionOf readObject(BinaryOWLInputStream inputStream) throws IOException, BinaryOWLParseException {
    Set<OWLDataRange> dataRanges = inputStream.readOWLObjects();
    return inputStream.getDataFactory().getOWLDataUnionOf(dataRanges);
}
 
开发者ID:matthewhorridge,项目名称:binaryowl,代码行数:6,代码来源:OWLDataUnionOfSerializer.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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