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

项目:Wolpertinger    文件:DebugTranslation.java   
/**
 * A reflexive role assertion<i>Ref(r)</i> is translated into the constraint:</br></br>
 *
 * <code>
 * :- not r(X,X), thing(X).
 * </code>
 * @see org.semanticweb.owlapi.model.OWLAxiomVisitor#visit(org.semanticweb.owlapi.model.OWLReflexiveObjectPropertyAxiom)
 */

public void visit(OWLReflexiveObjectPropertyAxiom refPropertyAxiom) {
    OWLObjectPropertyExpression property = refPropertyAxiom.getProperty();
    String propertyName = mapper.getPredicateName(property.getNamedProperty());
    String cVar = var.currentVar();

    writer.write("icons " + ASP2CoreSymbols.IMPLICATION);
    writer.write(String.format(" activated(%d), ", nConstraints++));
    writer.write(ASP2CoreSymbols.NAF);
    writer.write("_");
    writer.write(propertyName);
    writer.write(ASP2CoreSymbols.BRACKET_OPEN);
    writer.write(cVar);
    writer.write(ASP2CoreSymbols.ARG_SEPERATOR);
    writer.write(cVar);
    writer.write(ASP2CoreSymbols.BRACKET_CLOSE);
    writer.write(ASP2CoreSymbols.CONJUNCTION);
    writer.write("thing(");
    writer.write(cVar);
    writer.write(")"+ASP2CoreSymbols.EOR);
}
项目:Wolpertinger    文件:NaiveTranslation.java   
/**
 * A reflexive role assertion<i>Ref(r)</i> is translated into the constraint:</br></br>
 *
 * <code>
 * :- not r(X,X), thing(X).
 * </code>
 * @see org.semanticweb.owlapi.model.OWLAxiomVisitor#visit(org.semanticweb.owlapi.model.OWLReflexiveObjectPropertyAxiom)
 */

public void visit(OWLReflexiveObjectPropertyAxiom refPropertyAxiom) {
    OWLObjectPropertyExpression property = refPropertyAxiom.getProperty();
    String propertyName = mapper.getPredicateName(property.getNamedProperty());
    String cVar = var.currentVar();

    writer.write(ASP2CoreSymbols.IMPLICATION);
    writer.write(ASP2CoreSymbols.NAF);
    writer.write(" ");
    writer.write(propertyName);
    writer.write(ASP2CoreSymbols.BRACKET_OPEN);
    writer.write(cVar);
    writer.write(ASP2CoreSymbols.ARG_SEPERATOR);
    writer.write(cVar);
    writer.write(ASP2CoreSymbols.BRACKET_CLOSE);
    writer.write(ASP2CoreSymbols.CONJUNCTION);
    writer.write("thing(");
    writer.write(cVar);
    writer.write(")"+ASP2CoreSymbols.EOR);
}
项目:elk-reasoner    文件:AbstractOwlAxiomConverterVisitor.java   
@Override
public T visit(OWLReflexiveObjectPropertyAxiom axiom) {
    throw new IllegalArgumentException(
            OWLReflexiveObjectPropertyAxiom.class.getSimpleName()
                    + " cannot be converted to "
                    + getTargetClass().getSimpleName());
}
项目:owltools    文件:OWLGraphWrapperExtended.java   
/**
 * true if c is reflexive in the graph
 * 
 * @param c
 * @return boolean
 */
public boolean getIsReflexive(OWLObjectProperty c) {
    for(OWLOntology ont : getAllOntologies()) {
        Set<OWLReflexiveObjectPropertyAxiom> ax = ont.getReflexiveObjectPropertyAxioms(c);
        if (ax.isEmpty() == false) {
            return true;
        }
    }
    return false;
}
项目:jcel    文件:AxiomTranslator.java   
@Override
public Set<ComplexIntegerAxiom> visit(OWLReflexiveObjectPropertyAxiom axiom) {
    Objects.requireNonNull(axiom);
    OWLObjectProperty property = asOWLObjectProperty(axiom.getProperty());
    IntegerObjectProperty propertyExpr = getDataTypeFactory()
            .createObjectProperty(translateObjectProperty(property));
    ComplexIntegerAxiom ret = getAxiomFactory().createReflexiveObjectPropertyAxiom(propertyExpr,
            translateAnnotations(axiom.getAnnotations()));
    return Collections.singleton(ret);
}
项目:owlapi-gwt    文件:OWLReflexiveObjectPropertyAxiomImpl.java   
@Nonnull
@Override
public OWLReflexiveObjectPropertyAxiom getAxiomWithoutAnnotations() {
    if (!isAnnotated()) {
        return this;
    }
    return new OWLReflexiveObjectPropertyAxiomImpl(getProperty(),
            NO_ANNOTATIONS);
}
项目:owlapi-gwt    文件:OWLReflexiveObjectPropertyAxiomImpl.java   
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    return obj instanceof OWLReflexiveObjectPropertyAxiom;
}
项目:jopa    文件:IntegrityConstraintParser.java   
public void visit(OWLReflexiveObjectPropertyAxiom axiom) {
    notSupported(axiom);
}
项目:HermiT-android    文件:OWLNormalization.java   
public void visit(OWLReflexiveObjectPropertyAxiom axiom) {
    makeReflexive(axiom.getProperty());
    m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(axiom.getProperty().getNamedProperty());
}
项目:HermiT-android    文件:EntailmentChecker.java   
public Boolean visit(OWLReflexiveObjectPropertyAxiom axiom) {
    return reasoner.isReflexive(axiom.getProperty());
}
项目:HermiT-android    文件:EntailmentChecker.java   
public void visit(OWLReflexiveObjectPropertyAxiom axiom) {
}
项目:elk-reasoner    文件:AbstractElkObjectConverter.java   
@Override
public OWLReflexiveObjectPropertyAxiom visit(
        ElkReflexiveObjectPropertyAxiom axiom) {
    return owlFactory_.getOWLReflexiveObjectPropertyAxiom(
            convert(axiom.getProperty()));
}
项目:elk-reasoner    文件:OwlConverter.java   
@SuppressWarnings("static-method")
public ElkReflexiveObjectPropertyAxiom convert(
        OWLReflexiveObjectPropertyAxiom owlReflexiveObjectPropertyAxiom) {
    return new ElkReflexiveObjectPropertyAxiomWrap<OWLReflexiveObjectPropertyAxiom>(
            owlReflexiveObjectPropertyAxiom);
}
项目:elk-reasoner    文件:OwlAxiomConverterVisitor.java   
@Override
public ElkAxiom visit(
        OWLReflexiveObjectPropertyAxiom owlReflexiveObjectPropertyAxiom) {
    return CONVERTER.convert(owlReflexiveObjectPropertyAxiom);
}
项目:elk-reasoner    文件:OwlObjectPropertyAxiomConverterVisitor.java   
@Override
public ElkObjectPropertyAxiom visit(
        OWLReflexiveObjectPropertyAxiom owlReflexiveObjectPropertyAxiom) {
    return CONVERTER.convert(owlReflexiveObjectPropertyAxiom);
}
项目:elk-reasoner    文件:FailingOwlAxiomVisitor.java   
@Override
public void visit(OWLReflexiveObjectPropertyAxiom axiom) {
    defaultVisit(axiom);
}
项目:Hermit_1.3.8_android    文件:OWLNormalization.java   
public void visit(OWLReflexiveObjectPropertyAxiom axiom) {
    makeReflexive(axiom.getProperty());
    m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(axiom.getProperty().getNamedProperty());
}
项目:Hermit_1.3.8_android    文件:EntailmentChecker.java   
public Boolean visit(OWLReflexiveObjectPropertyAxiom axiom) {
    return reasoner.isReflexive(axiom.getProperty());
}
项目:Hermit_1.3.8_android    文件:EntailmentChecker.java   
public void visit(OWLReflexiveObjectPropertyAxiom axiom) {
}
项目:owltools    文件:AxiomAnnotationTools.java   
@Override
public OWLAxiom visit(OWLReflexiveObjectPropertyAxiom axiom) {
    return factory.getOWLReflexiveObjectPropertyAxiom(axiom.getProperty(), annotations);
}
项目:owltools    文件:CardinalityContraintsTools.java   
@Override
public void visit(OWLReflexiveObjectPropertyAxiom axiom) {
}
项目:Wolpertinger    文件:OWLNormalization.java   
public void visit(OWLReflexiveObjectPropertyAxiom axiom) {
    makeReflexive(axiom.getProperty());
    m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(axiom.getProperty().getNamedProperty());
}
项目:born    文件:CycleDetector.java   
@Override
public Boolean visit(OWLReflexiveObjectPropertyAxiom axiom) {
    return true;
}
项目:born    文件:ElAxiomFilter.java   
@Override
public Boolean visit(OWLReflexiveObjectPropertyAxiom axiom) {
    return false;
}
项目:born    文件:AnnotationProcessor.java   
@Override
public Boolean visit(OWLReflexiveObjectPropertyAxiom axiom) {
    Objects.requireNonNull(axiom);
    return add(this.df.getOWLReflexiveObjectPropertyAxiom(axiom.getProperty(), reg(axiom.getAnnotations())));
}
项目:born    文件:AnnotationCreator.java   
@Override
public Boolean visit(OWLReflexiveObjectPropertyAxiom axiom) {
    Objects.requireNonNull(axiom);
    return add(this.df.getOWLReflexiveObjectPropertyAxiom(axiom.getProperty(), empty()));
}
项目:semantika    文件:TMappingProcessor.java   
@Override
public void visit(OWLReflexiveObjectPropertyAxiom axiom)
{
   ignoreOwlAxiom("ReflextiveObjectProperty", axiom);
}
项目:OWL2SPARQL    文件:OWLAxiomToSPARQLConverter.java   
@Override
public void visit(OWLReflexiveObjectPropertyAxiom axiom) {
    axiom.asOWLSubClassOfAxiom().accept(this);
}
项目:owlapi-gwt    文件:OWLObjectVisitorExAdapter.java   
@Override
public O visit(OWLReflexiveObjectPropertyAxiom axiom) {
    return doDefault(axiom);
}
项目:owlapi-gwt    文件:OWLObjectTypeIndexProvider.java   
@Override
public void visit(OWLReflexiveObjectPropertyAxiom axiom) {
    type = AXIOM_TYPE_INDEX_BASE + axiom.getAxiomType().getIndex();
}
项目:owlapi-gwt    文件:NNF.java   
@Override
public OWLAxiom visit(OWLReflexiveObjectPropertyAxiom axiom) {
    return axiom;
}
项目:owlapi-gwt    文件:HashCode.java   
@Override
public void visit(OWLReflexiveObjectPropertyAxiom axiom) {
    hashCode = primes[28];
    hashCode = hashCode * MULT + axiom.getProperty().hashCode();
    hashCode = hashCode * MULT + axiom.getAnnotations().hashCode();
}
项目:owlapi-gwt    文件:OWLAxiomVisitorAdapter.java   
@Override
public void visit(OWLReflexiveObjectPropertyAxiom axiom) {
    handleDefault(axiom);
}
项目:owlapi-gwt    文件:AbstractEntityRegistrationManager.java   
@Override
public void visit(@Nonnull OWLReflexiveObjectPropertyAxiom axiom) {
    axiom.getProperty().accept(this);
    processAxiomAnnotations(axiom);
}
项目:owlapi-gwt    文件:OWLReflexiveObjectPropertyAxiomImpl.java   
@Override
public OWLReflexiveObjectPropertyAxiom getAnnotatedAxiom(
        Set<OWLAnnotation> annotations) {
    return new OWLReflexiveObjectPropertyAxiomImpl(getProperty(),
            mergeAnnos(annotations));
}
项目:ontology-core    文件:OWLImporter.java   
private Axiom transformOWLReflexiveObjectPropertyAxiom(OWLReflexiveObjectPropertyAxiom a) {
    OWLObjectPropertyExpression exp = a.getProperty();
    return new RoleInclusion(new Role[] {}, new NamedRole(exp.asOWLObjectProperty().toStringID()));
}
项目:SVoNt    文件:CEXOWL2ELProfile.java   
public void visit(OWLReflexiveObjectPropertyAxiom arg0) {
    unusedAxiom(arg0);
}
项目:binaryowl    文件:OWLReflexiveObjectPropertyAxiomSerializer.java   
@Override
protected OWLReflexiveObjectPropertyAxiom createAxiom(OWLObjectPropertyExpression propertyExpression, Set<OWLAnnotation> annotations, OWLDataFactory dataFactory) {
    return dataFactory.getOWLReflexiveObjectPropertyAxiom(propertyExpression, annotations);
}
项目:logmap-matcher    文件:OWLMappingAxiomVisitor.java   
public void visit(OWLReflexiveObjectPropertyAxiom arg0) {

}
项目:logmap-matcher    文件:ELAxiomVisitor.java   
public void visit(OWLReflexiveObjectPropertyAxiom arg0) {

}