本文整理汇总了Java中org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom类的典型用法代码示例。如果您正苦于以下问题:Java OWLIrreflexiveObjectPropertyAxiom类的具体用法?Java OWLIrreflexiveObjectPropertyAxiom怎么用?Java OWLIrreflexiveObjectPropertyAxiom使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OWLIrreflexiveObjectPropertyAxiom类属于org.semanticweb.owlapi.model包,在下文中一共展示了OWLIrreflexiveObjectPropertyAxiom类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visit
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom; //导入依赖的package包/类
/**
* An irreflexive role assertion <i>Irr(r)</i> is tranlated into the constrained:</br>
* </br>
* <code>
* :- r(X,X).
* </code>
* @see org.semanticweb.owlapi.model.OWLAxiomVisitor#visit(org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom)
*/
public void visit(OWLIrreflexiveObjectPropertyAxiom irrPropertyAxiom) {
OWLObjectPropertyExpression property = irrPropertyAxiom.getProperty();
String propertyName = mapper.getPredicateName(property.getNamedProperty());
String cVar = var.currentVar();
//String nVar = var.nextVariable();
writer.write("icons " + ASP2CoreSymbols.IMPLICATION);
writer.write(String.format(" activated(%d), ", nConstraints++));
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.EOR);
}
示例2: visit
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom; //导入依赖的package包/类
/**
* An irreflexive role assertion <i>Irr(r)</i> is tranlated into the constrained:</br>
* </br>
* <code>
* :- r(X,X).
* </code>
* @see org.semanticweb.owlapi.model.OWLAxiomVisitor#visit(org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom)
*/
public void visit(OWLIrreflexiveObjectPropertyAxiom irrPropertyAxiom) {
OWLObjectPropertyExpression property = irrPropertyAxiom.getProperty();
String propertyName = mapper.getPredicateName(property.getNamedProperty());
String cVar = var.currentVar();
//String nVar = var.nextVariable();
writer.write(ASP2CoreSymbols.IMPLICATION);
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.EOR);
}
示例3: visit
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom; //导入依赖的package包/类
@Override
public T visit(OWLIrreflexiveObjectPropertyAxiom axiom) {
throw new IllegalArgumentException(
OWLIrreflexiveObjectPropertyAxiom.class.getSimpleName()
+ " cannot be converted to "
+ getTargetClass().getSimpleName());
}
示例4: getAxiomWithoutAnnotations
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom; //导入依赖的package包/类
@Nonnull
@Override
public OWLIrreflexiveObjectPropertyAxiom getAxiomWithoutAnnotations() {
if (!isAnnotated()) {
return this;
}
return new OWLIrreflexiveObjectPropertyAxiomImpl(getProperty(),
NO_ANNOTATIONS);
}
示例5: equals
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom; //导入依赖的package包/类
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!super.equals(obj)) {
return false;
}
return obj instanceof OWLIrreflexiveObjectPropertyAxiom;
}
示例6: visit
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom; //导入依赖的package包/类
public void visit(OWLIrreflexiveObjectPropertyAxiom axiom) {
notSupported(axiom);
}
示例7: visit
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom; //导入依赖的package包/类
public void visit(OWLIrreflexiveObjectPropertyAxiom axiom) {
makeIrreflexive(axiom.getProperty());
m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(axiom.getProperty().getNamedProperty());
}
示例8: visit
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom; //导入依赖的package包/类
public Boolean visit(OWLIrreflexiveObjectPropertyAxiom axiom) {
return reasoner.isIrreflexive(axiom.getProperty());
}
示例9: visit
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom; //导入依赖的package包/类
@Override
public OWLIrreflexiveObjectPropertyAxiom visit(
ElkIrreflexiveObjectPropertyAxiom axiom) {
return owlFactory_.getOWLIrreflexiveObjectPropertyAxiom(
convert(axiom.getProperty()));
}
示例10: convert
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom; //导入依赖的package包/类
@SuppressWarnings("static-method")
public ElkIrreflexiveObjectPropertyAxiom convert(
OWLIrreflexiveObjectPropertyAxiom owlIrreflexiveObjectPropertyAxiom) {
return new ElkIrreflexiveObjectPropertyAxiomWrap<OWLIrreflexiveObjectPropertyAxiom>(
owlIrreflexiveObjectPropertyAxiom);
}
示例11: visit
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom; //导入依赖的package包/类
@Override
public ElkAxiom visit(
OWLIrreflexiveObjectPropertyAxiom owlIrreflexiveObjectPropertyAxiom) {
return CONVERTER.convert(owlIrreflexiveObjectPropertyAxiom);
}
示例12: visit
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom; //导入依赖的package包/类
@Override
public ElkObjectPropertyAxiom visit(
OWLIrreflexiveObjectPropertyAxiom owlIrreflexiveObjectPropertyAxiom) {
return CONVERTER.convert(owlIrreflexiveObjectPropertyAxiom);
}
示例13: visit
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom; //导入依赖的package包/类
@Override
public void visit(OWLIrreflexiveObjectPropertyAxiom axiom) {
defaultVisit(axiom);
}
示例14: visit
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom; //导入依赖的package包/类
@Override
public OWLAxiom visit(OWLIrreflexiveObjectPropertyAxiom axiom) {
return factory.getOWLIrreflexiveObjectPropertyAxiom(axiom.getProperty(), annotations);
}
示例15: visit
import org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom; //导入依赖的package包/类
@Override
public void visit(OWLIrreflexiveObjectPropertyAxiom axiom) {
}