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


Java OWLObjectHasValue类代码示例

本文整理汇总了Java中org.semanticweb.owlapi.model.OWLObjectHasValue的典型用法代码示例。如果您正苦于以下问题:Java OWLObjectHasValue类的具体用法?Java OWLObjectHasValue怎么用?Java OWLObjectHasValue使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


OWLObjectHasValue类属于org.semanticweb.owlapi.model包,在下文中一共展示了OWLObjectHasValue类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addToOntology

import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
@Override
public void addToOntology() {
  OWLObjectProperty property = featurePool.getExclusiveProperty(":objectHasValueProperty");

  OWLIndividual value = factory.getOWLNamedIndividual(":ObjectHasValue_Individual", pm);
  OWLObjectHasValue restriction = factory.getOWLObjectHasValue(property, value);

  OWLClass hasValue = featurePool.getExclusiveClass(":ObjectHasValue");
  addAxiomToOntology(factory.getOWLSubClassOfAxiom(hasValue, restriction));
}
 
开发者ID:VisualDataWeb,项目名称:OntoBench,代码行数:11,代码来源:OwlObjectHasValueFeature.java

示例2: equals

import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    if (!(obj instanceof OWLObjectHasValue)) {
        return false;
    }
    return getProperty().equals(((OWLObjectHasValue) obj).getProperty());
}
 
开发者ID:matthewhorridge,项目名称:owlapi-gwt,代码行数:14,代码来源:OWLObjectHasValueImpl.java

示例3: compareObjectOfSameType

import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
@Override
protected int compareObjectOfSameType(OWLObject object) {
    OWLObjectHasValue other = (OWLObjectHasValue) object;
    int diff = getProperty().compareTo(other.getProperty());
    if (diff != 0) {
        return diff;
    }
    return value.compareTo(other.getFiller());
}
 
开发者ID:matthewhorridge,项目名称:owlapi-gwt,代码行数:10,代码来源:OWLObjectHasValueImpl.java

示例4: getClass2ObjectProperty2IndividualAxioms

import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
/**
 * create axioms for class--objectproperty----individual relation.
 * 
 * @param src
 * @param objprop
 * @param dest
 * @return
 */
private void getClass2ObjectProperty2IndividualAxioms(OWLClass src, OWLObjectProperty objprop, OWLIndividual dest) {
	// Set<OWLAxiom> tmpaxioms = new HashSet<OWLAxiom>();
	OWLAxiom axiom;
	OWLObjectSomeValuesFrom owlObjectSomeValuesFrom;
	OWLObjectHasValue owlLObjectHasValue;
	OWLObjectMaxCardinality owlObjectMaxCardinality;
	OWLObjectOneOf owlObjectOneOf;

	// set domain and range
	// scoped domain
	if (editor.isGenerateDomainAxiom()) {
		owlLObjectHasValue = owlDataFactory.getOWLObjectHasValue(objprop, dest);
		axiom = owlDataFactory.getOWLSubClassOfAxiom(owlLObjectHasValue, src);
		domainAndRangeAxioms.add(axiom);

		owlObjectSomeValuesFrom = owlDataFactory.getOWLObjectSomeValuesFrom(objprop, owlDataFactory.getOWLThing());
		axiom = owlDataFactory.getOWLSubClassOfAxiom(owlObjectSomeValuesFrom, src);
		domainAndRangeAxioms.add(axiom);
	}

	// set existential restriction
	if (editor.isGenerateExistentialAxiom()) {
		owlObjectSomeValuesFrom = owlDataFactory.getOWLObjectSomeValuesFrom(objprop.getInverseProperty(), src);
		owlObjectOneOf = owlDataFactory.getOWLObjectOneOf(dest);
		axiom = owlDataFactory.getOWLSubClassOfAxiom(owlObjectOneOf, owlObjectSomeValuesFrom);
		existentialAxioms.add(axiom);

		owlLObjectHasValue = owlDataFactory.getOWLObjectHasValue(objprop, dest);
		axiom = owlDataFactory.getOWLSubClassOfAxiom(src, owlLObjectHasValue);
		existentialAxioms.add(axiom);
	}

	// set cardinality restriction
	if (editor.isGenerateCardinalityAxiom()) {
		owlObjectMaxCardinality = owlDataFactory.getOWLObjectMaxCardinality(1, objprop,
				owlDataFactory.getOWLThing());
		axiom = owlDataFactory.getOWLSubClassOfAxiom(owlDataFactory.getOWLThing(), owlObjectMaxCardinality);
		cardinalityAxioms.add(axiom);

		owlObjectMaxCardinality = owlDataFactory.getOWLObjectMaxCardinality(1, objprop,
				owlDataFactory.getOWLThing());
		axiom = owlDataFactory.getOWLSubClassOfAxiom(src, owlObjectMaxCardinality);
		cardinalityAxioms.add(axiom);

		owlObjectOneOf = owlDataFactory.getOWLObjectOneOf(dest);
		owlObjectMaxCardinality = owlDataFactory.getOWLObjectMaxCardinality(1, objprop, owlObjectOneOf);
		axiom = owlDataFactory.getOWLSubClassOfAxiom(src, owlObjectMaxCardinality);
		cardinalityAxioms.add(axiom);

		owlObjectOneOf = owlDataFactory.getOWLObjectOneOf(dest);
		owlObjectMaxCardinality = owlDataFactory.getOWLObjectMaxCardinality(1, objprop, owlObjectOneOf);
		axiom = owlDataFactory.getOWLSubClassOfAxiom(owlDataFactory.getOWLThing(), owlObjectMaxCardinality);
		cardinalityAxioms.add(axiom);
	}
	// return tmpaxioms;
}
 
开发者ID:md-k-sarker,项目名称:OWLAx,代码行数:65,代码来源:IntegrateOntologyWithProtege.java

示例5: visit

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

示例6: visit

import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
public void visit(OWLObjectHasValue object) {
    visitProperty(object.getProperty());
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:4,代码来源:BuiltInPropertyManager.java

示例7: visit

import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
public OWLClassExpression visit(OWLObjectHasValue object) {
    throw new IllegalStateException("Internal error: object value restrictions should have been simplified.");
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:4,代码来源:OWLNormalization.java

示例8: visit

import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
public void visit(OWLObjectHasValue object) {
    m_hasNominals=true;
    visitProperty(object.getProperty());
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:5,代码来源:OWLAxiomsExpressivity.java

示例9: visit

import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
public OWLClassExpression visit(OWLObjectHasValue d) {
    return m_factory.getOWLObjectHasValue(d.getProperty().getSimplified(),d.getValue());
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:4,代码来源:ExpressionManager.java

示例10: visit

import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
public void visit(OWLObjectHasValue object) {
    throw new IllegalStateException("Internal error: invalid normal form.");
}
 
开发者ID:robertoyus,项目名称:HermiT-android,代码行数:4,代码来源:OWLClausification.java

示例11: visit

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

示例12: visit

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

示例13: convert

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

示例14: visit

import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
@Override
public OWLObjectHasValue visit(OWLObjectHasValue ce) {
	return null;
}
 
开发者ID:owlcollab,项目名称:owltools,代码行数:5,代码来源:TBoxUnFoldingTool.java

示例15: visit

import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
@Override
public HandlerResult visit(OWLObjectHasValue ce) {
	return null;
}
 
开发者ID:owlcollab,项目名称:owltools,代码行数:5,代码来源:CardinalityContraintsTools.java


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