本文整理汇总了Java中org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom类的典型用法代码示例。如果您正苦于以下问题:Java OWLFunctionalObjectPropertyAxiom类的具体用法?Java OWLFunctionalObjectPropertyAxiom怎么用?Java OWLFunctionalObjectPropertyAxiom使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OWLFunctionalObjectPropertyAxiom类属于org.semanticweb.owlapi.model包,在下文中一共展示了OWLFunctionalObjectPropertyAxiom类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visit
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom; //导入依赖的package包/类
public void visit(OWLFunctionalObjectPropertyAxiom axiom) {
// ic.addAll(processParticipationConstraint(f.getOWLThing(), f
// .getOWLObjectMaxCardinality(1, axiom.getProperty())));
// processParticipationConstraint(f.getOWLThing(), f
// .getOWLObjectMaxCardinality(1, axiom.getProperty()));
notSupported(axiom);
}
示例2: isUnsupportedExtensionAxiom
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom; //导入依赖的package包/类
protected static boolean isUnsupportedExtensionAxiom(OWLAxiom axiom) {
return axiom instanceof OWLSubObjectPropertyOfAxiom
|| axiom instanceof OWLTransitiveObjectPropertyAxiom
|| axiom instanceof OWLSubPropertyChainOfAxiom
|| axiom instanceof OWLFunctionalObjectPropertyAxiom
|| axiom instanceof OWLInverseFunctionalObjectPropertyAxiom
|| axiom instanceof SWRLRule;
}
示例3: visit
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom; //导入依赖的package包/类
@Override
public T visit(OWLFunctionalObjectPropertyAxiom axiom) {
throw new IllegalArgumentException(
OWLFunctionalObjectPropertyAxiom.class.getSimpleName()
+ " cannot be converted to "
+ getTargetClass().getSimpleName());
}
示例4: getIsFunctional
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom; //导入依赖的package包/类
/**
* true if c is functional in the graph
*
* @param c
* @return boolean
*/
public boolean getIsFunctional(OWLObjectProperty c) {
for(OWLOntology ont : getAllOntologies()) {
Set<OWLFunctionalObjectPropertyAxiom> ax = ont.getFunctionalObjectPropertyAxioms(c);
if (ax.isEmpty() == false) {
return true;
}
}
return false;
}
示例5: visit
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom; //导入依赖的package包/类
@Override
public Set<ComplexIntegerAxiom> visit(OWLFunctionalObjectPropertyAxiom axiom) {
Objects.requireNonNull(axiom);
OWLObjectProperty property = asOWLObjectProperty(axiom.getProperty());
IntegerObjectPropertyExpression propExpr = this.getDataTypeFactory()
.createObjectProperty(translateObjectProperty(property));
ComplexIntegerAxiom ret = getAxiomFactory().createFunctionalObjectPropertyAxiom(propExpr,
translateAnnotations(axiom.getAnnotations()));
return Collections.singleton(ret);
}
示例6: getAxiomWithoutAnnotations
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom; //导入依赖的package包/类
@Nonnull
@Override
public OWLFunctionalObjectPropertyAxiom getAxiomWithoutAnnotations() {
if (!isAnnotated()) {
return this;
}
return new OWLFunctionalObjectPropertyAxiomImpl(getProperty(),
NO_ANNOTATIONS);
}
示例7: equals
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom; //导入依赖的package包/类
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!super.equals(obj)) {
return false;
}
return obj instanceof OWLFunctionalObjectPropertyAxiom;
}
示例8: visit
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom; //导入依赖的package包/类
public void visit(OWLFunctionalObjectPropertyAxiom axiom) {
m_classExpressionInclusionsAsDisjunctions.add(new OWLClassExpression[] { m_factory.getOWLObjectMaxCardinality(1,axiom.getProperty().getSimplified()) });
m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(axiom.getProperty().getNamedProperty());
}
示例9: visit
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom; //导入依赖的package包/类
public Boolean visit(OWLFunctionalObjectPropertyAxiom axiom) {
return reasoner.isFunctional(axiom.getProperty());
}
示例10: visit
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom; //导入依赖的package包/类
@Override
public OWLFunctionalObjectPropertyAxiom visit(
ElkFunctionalObjectPropertyAxiom axiom) {
return owlFactory_.getOWLFunctionalObjectPropertyAxiom(
convert(axiom.getProperty()));
}
示例11: convert
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom; //导入依赖的package包/类
@SuppressWarnings("static-method")
public ElkFunctionalObjectPropertyAxiom convert(
OWLFunctionalObjectPropertyAxiom owlFunctionalObjectPropertyAxiom) {
return new ElkFunctionalObjectPropertyAxiomWrap<OWLFunctionalObjectPropertyAxiom>(
owlFunctionalObjectPropertyAxiom);
}
示例12: visit
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom; //导入依赖的package包/类
@Override
public ElkAxiom visit(
OWLFunctionalObjectPropertyAxiom owlFunctionalObjectPropertyAxiom) {
return CONVERTER.convert(owlFunctionalObjectPropertyAxiom);
}
示例13: visit
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom; //导入依赖的package包/类
@Override
public ElkObjectPropertyAxiom visit(
OWLFunctionalObjectPropertyAxiom owlFunctionalObjectPropertyAxiom) {
return CONVERTER.convert(owlFunctionalObjectPropertyAxiom);
}
示例14: visit
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom; //导入依赖的package包/类
@Override
public void visit(OWLFunctionalObjectPropertyAxiom axiom) {
defaultVisit(axiom);
}
示例15: visit
import org.semanticweb.owlapi.model.OWLFunctionalObjectPropertyAxiom; //导入依赖的package包/类
@Override
public OWLAxiom visit(OWLFunctionalObjectPropertyAxiom axiom) {
return factory.getOWLFunctionalObjectPropertyAxiom(axiom.getProperty(), annotations);
}