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

Java OWLObjectHasSelf类代码示例

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

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



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

示例1: visit

import org.semanticweb.owlapi.model.OWLObjectHasSelf; //导入依赖的package包/类
public void visit(OWLObjectComplementOf object) {
    OWLClassExpression description=object.getOperand();
    if (description instanceof OWLObjectHasSelf) {
        OWLObjectPropertyExpression objectProperty=((OWLObjectHasSelf)description).getProperty();
        Atom roleAtom=getRoleAtom(objectProperty,X,X);
        m_bodyAtoms.add(roleAtom);
    }
    else if (description instanceof OWLObjectOneOf && ((OWLObjectOneOf)description).getIndividuals().size()==1) {
        OWLIndividual individual=((OWLObjectOneOf)description).getIndividuals().iterator().next();
        m_bodyAtoms.add(Atom.create(getConceptForNominal(individual),X));
    }
    else if (!(description instanceof OWLClass))
        throw new IllegalStateException("Internal error: invalid normal form.");
    else
        m_bodyAtoms.add(Atom.create(AtomicConcept.create(((OWLClass)description).getIRI().toString()),X));
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:17,代码来源:OWLClausification.java


示例2: addToOntology

import org.semanticweb.owlapi.model.OWLObjectHasSelf; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLObjectProperty property = featurePool.getExclusiveProperty(":hasSelfProperty");

  OWLClass hasSelf = featurePool.getExclusiveClass(":HasSelfClass");

  OWLObjectHasSelf restriction = factory.getOWLObjectHasSelf(property);
  addAxiomToOntology(factory.getOWLEquivalentClassesAxiom(hasSelf, restriction));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:10,代码来源:OwlHasSelfFeature.java


示例3: visit

import org.semanticweb.owlapi.model.OWLObjectHasSelf; //导入依赖的package包/类
/**
 * We assume that we deal with a normalized axioms, i.e. they are in NNF and structural transformation took place.
 *
 * Thereofre we test here whether the operand
 * @see org.semanticweb.owlapi.model.OWLClassExpressionVisitor#visit(org.semanticweb.owlapi.model.OWLObjectComplementOf)
 */

public void visit(OWLObjectComplementOf objComplementOf) {
	OWLClassExpression operand = objComplementOf.getOperand();
	if (operand instanceof OWLClass) {
		OWLClass owlClass = operand.asOWLClass();
		String predicateName = mapper.getPredicateName(owlClass);

		writer.print(predicateName);
		writer.print(ASP2CoreSymbols.BRACKET_OPEN);
		writer.print(var.currentVar());
		writer.print(ASP2CoreSymbols.BRACKET_CLOSE);

		if (isAuxiliaryClass(owlClass)) auxClasses.add(owlClass);
	}
	//
	else if (operand instanceof OWLObjectHasSelf) {
		OWLObjectHasSelf owlHasSelf = (OWLObjectHasSelf) operand;
		OWLObjectProperty property = owlHasSelf.getProperty().asOWLObjectProperty();
		String propertyName = mapper.getPredicateName(property);
		String cVar = var.currentVar();

		// r(X,X)
		writer.print(propertyName);
		writer.print(ASP2CoreSymbols.BRACKET_OPEN);
		writer.print(cVar);
		writer.print(ASP2CoreSymbols.ARG_SEPERATOR);
		writer.print(cVar);
		writer.print(ASP2CoreSymbols.BRACKET_CLOSE);
	}
	else if (operand instanceof OWLObjectOneOf) {
		throw new NotImplementedException();
	}
}
 
开发者ID:wolpertinger-reasoner,项目名称:Wolpertinger,代码行数:40,代码来源:DebugTranslation.java


示例4: visit

import org.semanticweb.owlapi.model.OWLObjectHasSelf; //导入依赖的package包/类
/**
 * We assume that we deal with a normalized axioms, i.e. they are in NNF and structural transformation took place.
 *
 * Thereofre we test here whether the operand
 * @see org.semanticweb.owlapi.model.OWLClassExpressionVisitor#visit(org.semanticweb.owlapi.model.OWLObjectComplementOf)
 */

public void visit(OWLObjectComplementOf objComplementOf) {
	OWLClassExpression operand = objComplementOf.getOperand();

	if (operand instanceof OWLClass) {
		OWLClass owlClass = operand.asOWLClass();
		String predicateName = mapper.getPredicateName(owlClass);

		writer.print(predicateName);
		writer.print(ASP2CoreSymbols.BRACKET_OPEN);
		writer.print(var.currentVar());
		writer.print(ASP2CoreSymbols.BRACKET_CLOSE);

		if (isAuxiliaryClass(owlClass)) auxClasses.add(owlClass);
	}
	else if (operand instanceof OWLObjectHasSelf) {
		OWLObjectHasSelf owlHasSelf = (OWLObjectHasSelf) operand;
		OWLObjectProperty property = owlHasSelf.getProperty().asOWLObjectProperty();
		String propertyName = mapper.getPredicateName(property);
		String cVar = var.currentVar();

		// r(X,X)
		writer.print(propertyName);
		writer.print(ASP2CoreSymbols.BRACKET_OPEN);
		writer.print(cVar);
		writer.print(ASP2CoreSymbols.ARG_SEPERATOR);
		writer.print(cVar);
		writer.print(ASP2CoreSymbols.BRACKET_CLOSE);
	}
	else if (operand instanceof OWLObjectOneOf) {
		throw new NotImplementedException();
	}
}
 
开发者ID:wolpertinger-reasoner,项目名称:Wolpertinger,代码行数:40,代码来源:NaiveTranslation.java


示例5: visit

import org.semanticweb.owlapi.model.OWLObjectHasSelf; //导入依赖的package包/类
@Override
public OWLClassExpression visit(OWLObjectHasSelf ce) {
    if (negated) {
        return getNegation(ce);
    } else {
        return ce;
    }
}
 
开发者ID:matthewhorridge,项目名称:owlapi-gwt,代码行数:9,代码来源:NNF.java


示例6: equals

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


示例7: visit

import org.semanticweb.owlapi.model.OWLObjectHasSelf; //导入依赖的package包/类
public void visit(OWLObjectHasSelf arg0) {
    notSupported(arg0);
}
 
开发者ID:kbss-cvut,项目名称:jopa,代码行数:4,代码来源:IntegrityConstraintClassParser.java


示例8: visit

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


示例9: visit

import org.semanticweb.owlapi.model.OWLObjectHasSelf; //导入依赖的package包/类
public OWLClassExpression visit(OWLObjectHasSelf object) {
    m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(object.getProperty().getNamedProperty());
    return object;
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:5,代码来源:OWLNormalization.java


示例10: visit

import org.semanticweb.owlapi.model.OWLObjectHasSelf; //导入依赖的package包/类
public OWLClassExpression visit(OWLObjectHasSelf d) {
    return m_factory.getOWLObjectHasSelf(d.getProperty().getSimplified());
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:4,代码来源:ExpressionManager.java


示例11: visit

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


示例12: visit

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


示例13: convert

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


示例14: visit

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


示例15: visit

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


示例16: visit

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


示例17: visit

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


示例18: visit

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


示例19: visit

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



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java ConnectionEventListener类代码示例发布时间:2022-05-21
下一篇:
Java DeclarativeWebScript类代码示例发布时间: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