本文整理汇总了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));
}
示例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());
}
示例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());
}
示例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;
}
示例5: visit
import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
public void visit(OWLObjectHasValue arg0) {
notSupported(arg0);
}
示例6: visit
import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
public void visit(OWLObjectHasValue object) {
visitProperty(object.getProperty());
}
示例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.");
}
示例8: visit
import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
public void visit(OWLObjectHasValue object) {
m_hasNominals=true;
visitProperty(object.getProperty());
}
示例9: visit
import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
public OWLClassExpression visit(OWLObjectHasValue d) {
return m_factory.getOWLObjectHasValue(d.getProperty().getSimplified(),d.getValue());
}
示例10: visit
import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
public void visit(OWLObjectHasValue object) {
throw new IllegalStateException("Internal error: invalid normal form.");
}
示例11: visit
import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
@Override
public OWLObjectHasValue visit(ElkObjectHasValue expression) {
return owlFactory_.getOWLObjectHasValue(
convert(expression.getProperty()),
convert(expression.getFiller()));
}
示例12: visit
import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
@Override
public ElkObjectHasValue visit(OWLObjectHasValue owlObjectHasValue) {
return CONVERTER.convert(owlObjectHasValue);
}
示例13: convert
import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
@SuppressWarnings("static-method")
public ElkObjectHasValue convert(OWLObjectHasValue owlObjectHasValue) {
return new ElkObjectHasValueWrap<OWLObjectHasValue>(owlObjectHasValue);
}
示例14: visit
import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
@Override
public OWLObjectHasValue visit(OWLObjectHasValue ce) {
return null;
}
示例15: visit
import org.semanticweb.owlapi.model.OWLObjectHasValue; //导入依赖的package包/类
@Override
public HandlerResult visit(OWLObjectHasValue ce) {
return null;
}