Java 类org.semanticweb.owlapi.model.OWLObjectHasValue 实例源码

项目:OntoBench    文件:OwlObjectHasValueFeature.java   
@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));
}
项目:owlapi-gwt    文件:OWLObjectHasValueImpl.java   
@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());
}
项目:owlapi-gwt    文件:OWLObjectHasValueImpl.java   
@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());
}
项目:OWLAx    文件:IntegrateOntologyWithProtege.java   
/**
 * 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;
}
项目:jopa    文件:IntegrityConstraintClassParser.java   
public void visit(OWLObjectHasValue arg0) {
    notSupported(arg0);
}
项目:HermiT-android    文件:BuiltInPropertyManager.java   
public void visit(OWLObjectHasValue object) {
    visitProperty(object.getProperty());
}
项目:HermiT-android    文件:OWLNormalization.java   
public OWLClassExpression visit(OWLObjectHasValue object) {
    throw new IllegalStateException("Internal error: object value restrictions should have been simplified.");
}
项目:HermiT-android    文件:OWLNormalization.java   
public Boolean visit(OWLObjectHasValue object) {
    return Boolean.TRUE;
}
项目:HermiT-android    文件:OWLAxiomsExpressivity.java   
public void visit(OWLObjectHasValue object) {
    m_hasNominals=true;
    visitProperty(object.getProperty());
}
项目:HermiT-android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasValue d) {
    return m_factory.getOWLObjectHasValue(d.getProperty().getSimplified(),d.getValue());
}
项目:HermiT-android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasValue d) {
    return m_factory.getOWLObjectComplementOf(getNNF(d));
}
项目:HermiT-android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasValue d) {
    OWLObjectOneOf nominal=m_factory.getOWLObjectOneOf(d.getValue());
    return m_factory.getOWLObjectSomeValuesFrom(d.getProperty().getSimplified(),nominal);
}
项目:HermiT-android    文件:OWLClausification.java   
public void visit(OWLObjectHasValue object) {
    throw new IllegalStateException("Internal error: invalid normal form.");
}
项目:elk-reasoner    文件:AbstractElkObjectConverter.java   
@Override
public OWLObjectHasValue visit(ElkObjectHasValue expression) {
    return owlFactory_.getOWLObjectHasValue(
            convert(expression.getProperty()),
            convert(expression.getFiller()));
}
项目:elk-reasoner    文件:OwlClassExpressionConverterVisitor.java   
@Override
public ElkObjectHasValue visit(OWLObjectHasValue owlObjectHasValue) {
    return CONVERTER.convert(owlObjectHasValue);
}
项目:elk-reasoner    文件:OwlConverter.java   
@SuppressWarnings("static-method")
public ElkObjectHasValue convert(OWLObjectHasValue owlObjectHasValue) {
    return new ElkObjectHasValueWrap<OWLObjectHasValue>(owlObjectHasValue);
}
项目:Hermit_1.3.8_android    文件:BuiltInPropertyManager.java   
public void visit(OWLObjectHasValue object) {
    visitProperty(object.getProperty());
}
项目:Hermit_1.3.8_android    文件:OWLNormalization.java   
public OWLClassExpression visit(OWLObjectHasValue object) {
    throw new IllegalStateException("Internal error: object value restrictions should have been simplified.");
}
项目:Hermit_1.3.8_android    文件:OWLNormalization.java   
public Boolean visit(OWLObjectHasValue object) {
    return Boolean.TRUE;
}
项目:Hermit_1.3.8_android    文件:OWLAxiomsExpressivity.java   
public void visit(OWLObjectHasValue object) {
    m_hasNominals=true;
    visitProperty(object.getProperty());
}
项目:Hermit_1.3.8_android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasValue d) {
    return m_factory.getOWLObjectHasValue(d.getProperty().getSimplified(),d.getValue());
}
项目:Hermit_1.3.8_android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasValue d) {
    return m_factory.getOWLObjectComplementOf(getNNF(d));
}
项目:Hermit_1.3.8_android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasValue d) {
    OWLObjectOneOf nominal=m_factory.getOWLObjectOneOf(d.getValue());
    return m_factory.getOWLObjectSomeValuesFrom(d.getProperty().getSimplified(),nominal);
}
项目:Hermit_1.3.8_android    文件:OWLClausification.java   
public void visit(OWLObjectHasValue object) {
    throw new IllegalStateException("Internal error: invalid normal form.");
}
项目:owltools    文件:TBoxUnFoldingTool.java   
@Override
public OWLObjectHasValue visit(OWLObjectHasValue ce) {
    return null;
}
项目:owltools    文件:CardinalityContraintsTools.java   
@Override
public HandlerResult visit(OWLObjectHasValue ce) {
    return null;
}
项目:Wolpertinger    文件:OWLNormalization.java   
public OWLClassExpression visit(OWLObjectHasValue object) {
    throw new IllegalStateException("Internal error: object value restrictions should have been simplified.");
}
项目:Wolpertinger    文件:OWLNormalization.java   
public Boolean visit(OWLObjectHasValue object) {
    return Boolean.TRUE;
}
项目:Wolpertinger    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasValue d) {
    return m_factory.getOWLObjectHasValue(d.getProperty().getSimplified(),d.getValue());
}
项目:Wolpertinger    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasValue d) {
    return m_factory.getOWLObjectComplementOf(getNNF(d));
}
项目:Wolpertinger    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasValue d) {
    OWLObjectOneOf nominal=m_factory.getOWLObjectOneOf(d.getValue());
    return m_factory.getOWLObjectSomeValuesFrom(d.getProperty().getSimplified(),nominal);
}
项目:born    文件:ElClassExpressionFilter.java   
@Override
public Boolean visit(OWLObjectHasValue classExpression) {
    return false;
}
项目:jcel    文件:ClassExpressionTranslator.java   
@Override
public IntegerClassExpression visit(OWLObjectHasValue ce) {
    Objects.requireNonNull(ce);
    throw TranslationException.newUnsupportedTranslationException(ce);
}
项目:OWL2SPARQL    文件:OWLClassExpressionMinimizer.java   
@Override
public OWLClassExpression visit(OWLObjectHasValue ce) {
    return ce;
}
项目:owlapi-gwt    文件:OWLObjectVisitorExAdapter.java   
@Override
public O visit(OWLObjectHasValue ce) {
    return doDefault(ce);
}
项目:owlapi-gwt    文件:OWLObjectVisitorAdapter.java   
@Override
public void visit(OWLObjectHasValue ce) {
    handleDefault(ce);
}
项目:owlapi-gwt    文件:OWLObjectTypeIndexProvider.java   
@Override
public void visit(OWLObjectHasValue ce) {
    type = CLASS_EXPRESSION_TYPE_INDEX_BASE + 7;
}
项目:owlapi-gwt    文件:NNF.java   
@Override
public OWLClassExpression visit(OWLObjectHasValue ce) {
    return ce.asSomeValuesFrom().accept(this);
}
项目:owlapi-gwt    文件:HashCode.java   
@Override
public void visit(OWLObjectHasValue ce) {
    hashCode = primes[50];
    hashCode = hashCode * MULT + ce.getProperty().hashCode();
    hashCode = hashCode * MULT + ce.getFiller().hashCode();
}
项目:owlapi-gwt    文件:OWLClassExpressionCollector.java   
@Override
public Set<OWLClassExpression> visit(OWLObjectHasValue ce) {
    return toSet(ce);
}