本文整理汇总了Java中org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom类的典型用法代码示例。如果您正苦于以下问题:Java OWLSubDataPropertyOfAxiom类的具体用法?Java OWLSubDataPropertyOfAxiom怎么用?Java OWLSubDataPropertyOfAxiom使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OWLSubDataPropertyOfAxiom类属于org.semanticweb.owlapi.model包,在下文中一共展示了OWLSubDataPropertyOfAxiom类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visit
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
public void visit(OWLSubDataPropertyOfAxiom ax){
type = Utilities.DATAPROPERTIES;
for (OWLAnnotation ann : ax.getAnnotations()){
treatAnnotation(ann);
}
}
示例2: visit
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
public void visit(OWLSubDataPropertyOfAxiom axiom) {
OWLDataPropertyExpression subDataProperty=axiom.getSubProperty();
checkTopDataPropertyUse(subDataProperty,axiom);
OWLDataPropertyExpression superDataProperty=axiom.getSuperProperty();
if (!subDataProperty.isOWLBottomDataProperty() && !superDataProperty.isOWLTopDataProperty())
addInclusion(subDataProperty,superDataProperty);
}
示例3: visit
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
@Override
public T visit(OWLSubDataPropertyOfAxiom axiom) {
throw new IllegalArgumentException(
OWLSubDataPropertyOfAxiom.class.getSimpleName()
+ " cannot be converted to "
+ getTargetClass().getSimpleName());
}
示例4: visit
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
/**
* A utility method to process OWL <code>SubDataPropertyOf(DPE1 DPE2)</code> axiom and produce
* inferred mapping assertions.
*/
@Override
public void visit(OWLSubDataPropertyOfAxiom axiom)
{
/*
* Trace all the ancestors of the data property expression in the given OWL SubDataPropertyOf axiom.
*/
Set<OWLSubPropertyAxiom<?>> ancestors = mOntology.traceAncestors(axiom.getSubProperty(), true);
for (OWLSubPropertyAxiom<?> ax : ancestors) {
/*
* Get all (copy) known mappings for the visited sub data property expression.
*/
OWLDataPropertyExpression subProperty = (OWLDataPropertyExpression) ax.getSubProperty();
subProperty.accept(this); // this call will produce (sub property) mSignature
Set<IMapping> subPropertyMappings = getMappingsForPropertyExpression();
if (subPropertyMappings.isEmpty()) {
continue;
}
/*
* Produce the "extra" mappings for the visited super data property expression as many as
* the known mappings in the sub data property expression.
*/
OWLDataPropertyExpression superProperty = (OWLDataPropertyExpression) ax.getSuperProperty();
superProperty.accept(this); // this call will produce (super property) mSignature and mIsInverse
URI superPropertySignature = mSignature;
for (IMapping subPropertyMapping : subPropertyMappings) {
IPropertyMapping pm = createPropertyMapping(superPropertySignature, subPropertyMapping, mIsInverse);
addInferredMapping(pm);
}
}
}
示例5: visit
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
@Override
public void visit(OWLSubDataPropertyOfAxiom axiom) {
OWLDataPropertyExpression subPropertyExpression = axiom.getSubProperty();
sparql += subjectVar + "<" + subPropertyExpression.asOWLDataProperty().toStringID() + "> " + objectVar + " .";
OWLDataPropertyExpression superPropertyExpression = axiom.getSuperProperty();
sparql += subjectVar + "<" + superPropertyExpression.asOWLDataProperty().toStringID() + "> " + objectVar + " .";
}
示例6: visit
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
@Override
public void visit(OWLSubDataPropertyOfAxiom axiom) {
hashCode = primes[5];
hashCode = hashCode * MULT + axiom.getSubProperty().hashCode();
hashCode = hashCode * MULT + axiom.getSuperProperty().hashCode();
hashCode = hashCode * MULT + axiom.getAnnotations().hashCode();
}
示例7: getAxiomWithoutAnnotations
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
@Override
public OWLSubDataPropertyOfAxiom getAxiomWithoutAnnotations() {
if (!isAnnotated()) {
return this;
}
return new OWLSubDataPropertyOfAxiomImpl(getSubProperty(),
getSuperProperty(), NO_ANNOTATIONS);
}
示例8: equals
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!super.equals(obj)) {
return false;
}
return obj instanceof OWLSubDataPropertyOfAxiom;
}
示例9: addAxiom
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
private void addAxiom(List<Rule> list, OWLSubDataPropertyOfAxiom a) {
String op1 = getString(a.getSubProperty());
String op2 = getString(a.getSuperProperty());
list.add(new SubPropertyOf(op1, op2));
}
示例10: addDataAxioms
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
private void addDataAxioms(List<Rule> list,
Set<OWLSubDataPropertyOfAxiom> axs) {
for (OWLSubDataPropertyOfAxiom a : axs) {
addAxiom(list, a);
}
}
示例11: visit
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
public void visit(OWLSubDataPropertyOfAxiom axiom) {
notSupported(axiom);
}
示例12: visit
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
public Boolean visit(OWLSubDataPropertyOfAxiom axiom) {
return reasoner.isSubDataPropertyOf(axiom.getSubProperty().asOWLDataProperty(),axiom.getSuperProperty().asOWLDataProperty());
}
示例13: visit
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
@Override
public OWLSubDataPropertyOfAxiom visit(ElkSubDataPropertyOfAxiom axiom) {
return owlFactory_.getOWLSubDataPropertyOfAxiom(
convert(axiom.getSubDataPropertyExpression()),
convert(axiom.getSuperDataPropertyExpression()));
}
示例14: visit
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
@Override
public ElkDataPropertyAxiom visit(
OWLSubDataPropertyOfAxiom owlSubDataPropertyOfAxiom) {
return CONVERTER.convert(owlSubDataPropertyOfAxiom);
}
示例15: convert
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
@SuppressWarnings("static-method")
public ElkSubDataPropertyOfAxiom convert(
OWLSubDataPropertyOfAxiom owlSubDataPropertyOfAxiom) {
return new ElkSubDataPropertyOfAxiomWrap<OWLSubDataPropertyOfAxiom>(
owlSubDataPropertyOfAxiom);
}