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


Java OWLSubDataPropertyOfAxiom类代码示例

本文整理汇总了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);
	}
}
 
开发者ID:ernestojimenezruiz,项目名称:logmap-matcher,代码行数:8,代码来源:OWLAlignmentReader.java

示例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);
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:8,代码来源:OWLNormalization.java

示例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());
}
 
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:8,代码来源:AbstractOwlAxiomConverterVisitor.java

示例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);
      }
   }
}
 
开发者ID:obidea,项目名称:semantika,代码行数:35,代码来源:TMappingProcessor.java

示例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 + " .";
}
 
开发者ID:SmartDataAnalytics,项目名称:OWL2SPARQL,代码行数:9,代码来源:OWLAxiomToSPARQLConverter.java

示例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();
}
 
开发者ID:matthewhorridge,项目名称:owlapi-gwt,代码行数:8,代码来源:HashCode.java

示例7: getAxiomWithoutAnnotations

import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
@Override
public OWLSubDataPropertyOfAxiom getAxiomWithoutAnnotations() {
    if (!isAnnotated()) {
        return this;
    }
    return new OWLSubDataPropertyOfAxiomImpl(getSubProperty(),
            getSuperProperty(), NO_ANNOTATIONS);
}
 
开发者ID:matthewhorridge,项目名称:owlapi-gwt,代码行数:9,代码来源:OWLSubDataPropertyOfAxiomImpl.java

示例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;
}
 
开发者ID:matthewhorridge,项目名称:owlapi-gwt,代码行数:11,代码来源:OWLSubDataPropertyOfAxiomImpl.java

示例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));
}
 
开发者ID:lszeremeta,项目名称:neo4j-sparql-extension-yars,代码行数:6,代码来源:SubPropertyOfExtractor.java

示例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);
	}
}
 
开发者ID:lszeremeta,项目名称:neo4j-sparql-extension-yars,代码行数:7,代码来源:SubPropertyOfExtractor.java

示例11: visit

import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
public void visit(OWLSubDataPropertyOfAxiom axiom) {
    notSupported(axiom);
}
 
开发者ID:kbss-cvut,项目名称:jopa,代码行数:4,代码来源:IntegrityConstraintParser.java

示例12: visit

import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
public Boolean visit(OWLSubDataPropertyOfAxiom axiom) {
    return reasoner.isSubDataPropertyOf(axiom.getSubProperty().asOWLDataProperty(),axiom.getSuperProperty().asOWLDataProperty());
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:4,代码来源:EntailmentChecker.java

示例13: visit

import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
@Override
public OWLSubDataPropertyOfAxiom visit(ElkSubDataPropertyOfAxiom axiom) {
	return owlFactory_.getOWLSubDataPropertyOfAxiom(
			convert(axiom.getSubDataPropertyExpression()),
			convert(axiom.getSuperDataPropertyExpression()));
}
 
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:7,代码来源:AbstractElkObjectConverter.java

示例14: visit

import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
@Override
public ElkDataPropertyAxiom visit(
		OWLSubDataPropertyOfAxiom owlSubDataPropertyOfAxiom) {
	return CONVERTER.convert(owlSubDataPropertyOfAxiom);
}
 
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:6,代码来源:OwlDataPropertyAxiomConverterVisitor.java

示例15: convert

import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom; //导入依赖的package包/类
@SuppressWarnings("static-method")
public ElkSubDataPropertyOfAxiom convert(
		OWLSubDataPropertyOfAxiom owlSubDataPropertyOfAxiom) {
	return new ElkSubDataPropertyOfAxiomWrap<OWLSubDataPropertyOfAxiom>(
			owlSubDataPropertyOfAxiom);
}
 
开发者ID:liveontologies,项目名称:elk-reasoner,代码行数:7,代码来源:OwlConverter.java


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