本文整理匯總了Java中org.semanticweb.owlapi.model.OWLAxiom.isLogicalAxiom方法的典型用法代碼示例。如果您正苦於以下問題:Java OWLAxiom.isLogicalAxiom方法的具體用法?Java OWLAxiom.isLogicalAxiom怎麽用?Java OWLAxiom.isLogicalAxiom使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.semanticweb.owlapi.model.OWLAxiom
的用法示例。
在下文中一共展示了OWLAxiom.isLogicalAxiom方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: entails
import org.semanticweb.owlapi.model.OWLAxiom; //導入方法依賴的package包/類
/**
* Checks entailment of a set of axioms (an ontology) against the loaded ontology.
*
* @param axioms
* the axioms that should be checked for enailment
* @return true if all axioms follow from the loaded ontology and false otherwise.
*/
public boolean entails(Set<? extends OWLAxiom> axioms) {
anonymousIndividualAxioms.clear();
for (OWLAxiom axiom : axioms) {
if (axiom.isLogicalAxiom())
if (!axiom.accept(this))
return false;
}
return checkAnonymousIndividuals();
}
示例2: isRelevantAxiom
import org.semanticweb.owlapi.model.OWLAxiom; //導入方法依賴的package包/類
/**
* @param axiom
* the owl axiom to test
* @return {@code true} if the owl axiom can be converted to ELK axiom
*/
@SuppressWarnings("static-method")
public boolean isRelevantAxiom(OWLAxiom axiom) {
return axiom.isLogicalAxiom() || axiom.isOfType(AxiomType.DECLARATION);
}