当前位置: 首页>>代码示例>>Java>>正文


Java OWLReflexiveObjectPropertyAxiom.getProperty方法代码示例

本文整理汇总了Java中org.semanticweb.owlapi.model.OWLReflexiveObjectPropertyAxiom.getProperty方法的典型用法代码示例。如果您正苦于以下问题:Java OWLReflexiveObjectPropertyAxiom.getProperty方法的具体用法?Java OWLReflexiveObjectPropertyAxiom.getProperty怎么用?Java OWLReflexiveObjectPropertyAxiom.getProperty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.semanticweb.owlapi.model.OWLReflexiveObjectPropertyAxiom的用法示例。


在下文中一共展示了OWLReflexiveObjectPropertyAxiom.getProperty方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: visit

import org.semanticweb.owlapi.model.OWLReflexiveObjectPropertyAxiom; //导入方法依赖的package包/类
/**
 * A reflexive role assertion<i>Ref(r)</i> is translated into the constraint:</br></br>
 *
 * <code>
 * :- not r(X,X), thing(X).
 * </code>
 * @see org.semanticweb.owlapi.model.OWLAxiomVisitor#visit(org.semanticweb.owlapi.model.OWLReflexiveObjectPropertyAxiom)
 */

public void visit(OWLReflexiveObjectPropertyAxiom refPropertyAxiom) {
	OWLObjectPropertyExpression property = refPropertyAxiom.getProperty();
	String propertyName = mapper.getPredicateName(property.getNamedProperty());
	String cVar = var.currentVar();

	writer.write("icons " + ASP2CoreSymbols.IMPLICATION);
	writer.write(String.format(" activated(%d), ", nConstraints++));
	writer.write(ASP2CoreSymbols.NAF);
	writer.write("_");
	writer.write(propertyName);
	writer.write(ASP2CoreSymbols.BRACKET_OPEN);
	writer.write(cVar);
	writer.write(ASP2CoreSymbols.ARG_SEPERATOR);
	writer.write(cVar);
	writer.write(ASP2CoreSymbols.BRACKET_CLOSE);
	writer.write(ASP2CoreSymbols.CONJUNCTION);
	writer.write("thing(");
	writer.write(cVar);
	writer.write(")"+ASP2CoreSymbols.EOR);
}
 
开发者ID:wolpertinger-reasoner,项目名称:Wolpertinger,代码行数:30,代码来源:DebugTranslation.java

示例2: visit

import org.semanticweb.owlapi.model.OWLReflexiveObjectPropertyAxiom; //导入方法依赖的package包/类
/**
 * A reflexive role assertion<i>Ref(r)</i> is translated into the constraint:</br></br>
 *
 * <code>
 * :- not r(X,X), thing(X).
 * </code>
 * @see org.semanticweb.owlapi.model.OWLAxiomVisitor#visit(org.semanticweb.owlapi.model.OWLReflexiveObjectPropertyAxiom)
 */

public void visit(OWLReflexiveObjectPropertyAxiom refPropertyAxiom) {
	OWLObjectPropertyExpression property = refPropertyAxiom.getProperty();
	String propertyName = mapper.getPredicateName(property.getNamedProperty());
	String cVar = var.currentVar();

	writer.write(ASP2CoreSymbols.IMPLICATION);
	writer.write(ASP2CoreSymbols.NAF);
	writer.write(" ");
	writer.write(propertyName);
	writer.write(ASP2CoreSymbols.BRACKET_OPEN);
	writer.write(cVar);
	writer.write(ASP2CoreSymbols.ARG_SEPERATOR);
	writer.write(cVar);
	writer.write(ASP2CoreSymbols.BRACKET_CLOSE);
	writer.write(ASP2CoreSymbols.CONJUNCTION);
	writer.write("thing(");
	writer.write(cVar);
	writer.write(")"+ASP2CoreSymbols.EOR);
}
 
开发者ID:wolpertinger-reasoner,项目名称:Wolpertinger,代码行数:29,代码来源:NaiveTranslation.java

示例3: transformOWLReflexiveObjectPropertyAxiom

import org.semanticweb.owlapi.model.OWLReflexiveObjectPropertyAxiom; //导入方法依赖的package包/类
private Axiom transformOWLReflexiveObjectPropertyAxiom(OWLReflexiveObjectPropertyAxiom a) {
    OWLObjectPropertyExpression exp = a.getProperty();
    return new RoleInclusion(new Role[] {}, new NamedRole(exp.asOWLObjectProperty().toStringID()));
}
 
开发者ID:aehrc,项目名称:ontology-core,代码行数:5,代码来源:OWLImporter.java


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