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

项目:HermiT-android    文件:OWLClausification.java   
public void visit(OWLObjectComplementOf object) {
    OWLClassExpression description=object.getOperand();
    if (description instanceof OWLObjectHasSelf) {
        OWLObjectPropertyExpression objectProperty=((OWLObjectHasSelf)description).getProperty();
        Atom roleAtom=getRoleAtom(objectProperty,X,X);
        m_bodyAtoms.add(roleAtom);
    }
    else if (description instanceof OWLObjectOneOf && ((OWLObjectOneOf)description).getIndividuals().size()==1) {
        OWLIndividual individual=((OWLObjectOneOf)description).getIndividuals().iterator().next();
        m_bodyAtoms.add(Atom.create(getConceptForNominal(individual),X));
    }
    else if (!(description instanceof OWLClass))
        throw new IllegalStateException("Internal error: invalid normal form.");
    else
        m_bodyAtoms.add(Atom.create(AtomicConcept.create(((OWLClass)description).getIRI().toString()),X));
}
项目:Hermit_1.3.8_android    文件:OWLClausification.java   
public void visit(OWLObjectComplementOf object) {
    OWLClassExpression description=object.getOperand();
    if (description instanceof OWLObjectHasSelf) {
        OWLObjectPropertyExpression objectProperty=((OWLObjectHasSelf)description).getProperty();
        Atom roleAtom=getRoleAtom(objectProperty,X,X);
        m_bodyAtoms.add(roleAtom);
    }
    else if (description instanceof OWLObjectOneOf && ((OWLObjectOneOf)description).getIndividuals().size()==1) {
        OWLIndividual individual=((OWLObjectOneOf)description).getIndividuals().iterator().next();
        m_bodyAtoms.add(Atom.create(getConceptForNominal(individual),X));
    }
    else if (!(description instanceof OWLClass))
        throw new IllegalStateException("Internal error: invalid normal form.");
    else
        m_bodyAtoms.add(Atom.create(AtomicConcept.create(((OWLClass)description).getIRI().toString()),X));
}
项目:OntoBench    文件:OwlHasSelfFeature.java   
@Override
public void addToOntology() {
  OWLObjectProperty property = featurePool.getExclusiveProperty(":hasSelfProperty");

  OWLClass hasSelf = featurePool.getExclusiveClass(":HasSelfClass");

  OWLObjectHasSelf restriction = factory.getOWLObjectHasSelf(property);
  addAxiomToOntology(factory.getOWLEquivalentClassesAxiom(hasSelf, restriction));
}
项目:Wolpertinger    文件:DebugTranslation.java   
/**
 * We assume that we deal with a normalized axioms, i.e. they are in NNF and structural transformation took place.
 *
 * Thereofre we test here whether the operand
 * @see org.semanticweb.owlapi.model.OWLClassExpressionVisitor#visit(org.semanticweb.owlapi.model.OWLObjectComplementOf)
 */

public void visit(OWLObjectComplementOf objComplementOf) {
    OWLClassExpression operand = objComplementOf.getOperand();
    if (operand instanceof OWLClass) {
        OWLClass owlClass = operand.asOWLClass();
        String predicateName = mapper.getPredicateName(owlClass);

        writer.print(predicateName);
        writer.print(ASP2CoreSymbols.BRACKET_OPEN);
        writer.print(var.currentVar());
        writer.print(ASP2CoreSymbols.BRACKET_CLOSE);

        if (isAuxiliaryClass(owlClass)) auxClasses.add(owlClass);
    }
    //
    else if (operand instanceof OWLObjectHasSelf) {
        OWLObjectHasSelf owlHasSelf = (OWLObjectHasSelf) operand;
        OWLObjectProperty property = owlHasSelf.getProperty().asOWLObjectProperty();
        String propertyName = mapper.getPredicateName(property);
        String cVar = var.currentVar();

        // r(X,X)
        writer.print(propertyName);
        writer.print(ASP2CoreSymbols.BRACKET_OPEN);
        writer.print(cVar);
        writer.print(ASP2CoreSymbols.ARG_SEPERATOR);
        writer.print(cVar);
        writer.print(ASP2CoreSymbols.BRACKET_CLOSE);
    }
    else if (operand instanceof OWLObjectOneOf) {
        throw new NotImplementedException();
    }
}
项目:Wolpertinger    文件:DebugTranslation.java   
public void visit(OWLObjectHasSelf owlHasSelf) {
    OWLObjectProperty property = owlHasSelf.getProperty().asOWLObjectProperty();
    String propertyName = mapper.getPredicateName(property);
    String cVar = var.currentVar();

    // not r(X,X)
    writer.print("not_");
    writer.print(propertyName);
    writer.print(ASP2CoreSymbols.BRACKET_OPEN);
    writer.print(cVar);
    writer.print(ASP2CoreSymbols.ARG_SEPERATOR);
    writer.print(cVar);
    writer.print(ASP2CoreSymbols.BRACKET_CLOSE);

}
项目:Wolpertinger    文件:NaiveTranslation.java   
/**
 * We assume that we deal with a normalized axioms, i.e. they are in NNF and structural transformation took place.
 *
 * Thereofre we test here whether the operand
 * @see org.semanticweb.owlapi.model.OWLClassExpressionVisitor#visit(org.semanticweb.owlapi.model.OWLObjectComplementOf)
 */

public void visit(OWLObjectComplementOf objComplementOf) {
    OWLClassExpression operand = objComplementOf.getOperand();

    if (operand instanceof OWLClass) {
        OWLClass owlClass = operand.asOWLClass();
        String predicateName = mapper.getPredicateName(owlClass);

        writer.print(predicateName);
        writer.print(ASP2CoreSymbols.BRACKET_OPEN);
        writer.print(var.currentVar());
        writer.print(ASP2CoreSymbols.BRACKET_CLOSE);

        if (isAuxiliaryClass(owlClass)) auxClasses.add(owlClass);
    }
    else if (operand instanceof OWLObjectHasSelf) {
        OWLObjectHasSelf owlHasSelf = (OWLObjectHasSelf) operand;
        OWLObjectProperty property = owlHasSelf.getProperty().asOWLObjectProperty();
        String propertyName = mapper.getPredicateName(property);
        String cVar = var.currentVar();

        // r(X,X)
        writer.print(propertyName);
        writer.print(ASP2CoreSymbols.BRACKET_OPEN);
        writer.print(cVar);
        writer.print(ASP2CoreSymbols.ARG_SEPERATOR);
        writer.print(cVar);
        writer.print(ASP2CoreSymbols.BRACKET_CLOSE);
    }
    else if (operand instanceof OWLObjectOneOf) {
        throw new NotImplementedException();
    }
}
项目:Wolpertinger    文件:NaiveTranslation.java   
public void visit(OWLObjectHasSelf owlHasSelf) {
    OWLObjectProperty property = owlHasSelf.getProperty().asOWLObjectProperty();
    String propertyName = mapper.getPredicateName(property);
    String cVar = var.currentVar();

    // not r(X,X)
    writer.print(ASP2CoreSymbols.NAF + " ");
    writer.print(propertyName);
    writer.print(ASP2CoreSymbols.BRACKET_OPEN);
    writer.print(cVar);
    writer.print(ASP2CoreSymbols.ARG_SEPERATOR);
    writer.print(cVar);
    writer.print(ASP2CoreSymbols.BRACKET_CLOSE);
}
项目:owlapi-gwt    文件:NNF.java   
@Override
public OWLClassExpression visit(OWLObjectHasSelf ce) {
    if (negated) {
        return getNegation(ce);
    } else {
        return ce;
    }
}
项目:owlapi-gwt    文件:OWLObjectHasSelfImpl.java   
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    if (!(obj instanceof OWLObjectHasSelf)) {
        return false;
    }
    return getProperty().equals(((OWLObjectHasSelf) obj).getProperty());
}
项目:jopa    文件:IntegrityConstraintClassParser.java   
public void visit(OWLObjectHasSelf arg0) {
    notSupported(arg0);
}
项目:HermiT-android    文件:BuiltInPropertyManager.java   
public void visit(OWLObjectHasSelf object) {
    visitProperty(object.getProperty());
}
项目:HermiT-android    文件:OWLNormalization.java   
public OWLClassExpression visit(OWLObjectHasSelf object) {
    m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(object.getProperty().getNamedProperty());
    return object;
}
项目:HermiT-android    文件:OWLNormalization.java   
public Boolean visit(OWLObjectHasSelf object) {
    return Boolean.TRUE;
}
项目:HermiT-android    文件:OWLAxiomsExpressivity.java   
public void visit(OWLObjectHasSelf object) {
    visitProperty(object.getProperty());
}
项目:HermiT-android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasSelf d) {
    return m_factory.getOWLObjectHasSelf(d.getProperty().getSimplified());
}
项目:HermiT-android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasSelf d) {
    return m_factory.getOWLObjectComplementOf(getNNF(d));
}
项目:HermiT-android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasSelf d) {
    return m_factory.getOWLObjectHasSelf(d.getProperty().getSimplified());
}
项目:HermiT-android    文件:OWLClausification.java   
public void visit(OWLObjectHasSelf object) {
    OWLObjectPropertyExpression objectProperty=object.getProperty();
    Atom roleAtom=getRoleAtom(objectProperty,X,X);
    m_headAtoms.add(roleAtom);
}
项目:elk-reasoner    文件:AbstractElkObjectConverter.java   
@Override
public OWLObjectHasSelf visit(ElkObjectHasSelf expression) {
    return owlFactory_
            .getOWLObjectHasSelf(convert(expression.getProperty()));
}
项目:elk-reasoner    文件:OwlClassExpressionConverterVisitor.java   
@Override
public ElkObjectHasSelf visit(OWLObjectHasSelf owlObjectHasSelf) {
    return CONVERTER.convert(owlObjectHasSelf);
}
项目:elk-reasoner    文件:OwlConverter.java   
@SuppressWarnings("static-method")
public ElkObjectHasSelf convert(OWLObjectHasSelf owlObjectHasSelf) {
    return new ElkObjectHasSelfWrap<OWLObjectHasSelf>(owlObjectHasSelf);
}
项目:Hermit_1.3.8_android    文件:BuiltInPropertyManager.java   
public void visit(OWLObjectHasSelf object) {
    visitProperty(object.getProperty());
}
项目:Hermit_1.3.8_android    文件:OWLNormalization.java   
public OWLClassExpression visit(OWLObjectHasSelf object) {
    m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(object.getProperty().getNamedProperty());
    return object;
}
项目:Hermit_1.3.8_android    文件:OWLNormalization.java   
public Boolean visit(OWLObjectHasSelf object) {
    return Boolean.TRUE;
}
项目:Hermit_1.3.8_android    文件:OWLAxiomsExpressivity.java   
public void visit(OWLObjectHasSelf object) {
    visitProperty(object.getProperty());
}
项目:Hermit_1.3.8_android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasSelf d) {
    return m_factory.getOWLObjectHasSelf(d.getProperty().getSimplified());
}
项目:Hermit_1.3.8_android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasSelf d) {
    return m_factory.getOWLObjectComplementOf(getNNF(d));
}
项目:Hermit_1.3.8_android    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasSelf d) {
    return m_factory.getOWLObjectHasSelf(d.getProperty().getSimplified());
}
项目:Hermit_1.3.8_android    文件:OWLClausification.java   
public void visit(OWLObjectHasSelf object) {
    OWLObjectPropertyExpression objectProperty=object.getProperty();
    Atom roleAtom=getRoleAtom(objectProperty,X,X);
    m_headAtoms.add(roleAtom);
}
项目:owltools    文件:TBoxUnFoldingTool.java   
@Override
public OWLObjectHasSelf visit(OWLObjectHasSelf ce) {
    return null;
}
项目:owltools    文件:CardinalityContraintsTools.java   
@Override
public HandlerResult visit(OWLObjectHasSelf ce) {
    return null;
}
项目:Wolpertinger    文件:OWLNormalization.java   
public OWLClassExpression visit(OWLObjectHasSelf object) {
    m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(object.getProperty().getNamedProperty());
    return object;
}
项目:Wolpertinger    文件:OWLNormalization.java   
public Boolean visit(OWLObjectHasSelf object) {
    return Boolean.TRUE;
}
项目:Wolpertinger    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasSelf d) {
    return m_factory.getOWLObjectHasSelf(d.getProperty().getSimplified());
}
项目:Wolpertinger    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasSelf d) {
    return m_factory.getOWLObjectComplementOf(getNNF(d));
}
项目:Wolpertinger    文件:ExpressionManager.java   
public OWLClassExpression visit(OWLObjectHasSelf d) {
    return m_factory.getOWLObjectHasSelf(d.getProperty().getSimplified());
}
项目:born    文件:ElClassExpressionFilter.java   
@Override
public Boolean visit(OWLObjectHasSelf classExpression) {
    return false;
}
项目:jcel    文件:ClassExpressionTranslator.java   
@Override
public IntegerClassExpression visit(OWLObjectHasSelf ce) {
    Objects.requireNonNull(ce);
    throw TranslationException.newUnsupportedTranslationException(ce);
}
项目:OWL2SPARQL    文件:OWLClassExpressionMinimizer.java   
@Override
public OWLClassExpression visit(OWLObjectHasSelf ce) {
    return ce;
}
项目:owlapi-gwt    文件:OWLObjectVisitorExAdapter.java   
@Override
public O visit(OWLObjectHasSelf ce) {
    return doDefault(ce);
}