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

项目:OWL2SPARQL    文件:OWLAxiomToSPARQLConverter.java   
@Override
public void visit(OWLDisjointDataPropertiesAxiom axiom) {
    List<OWLDataPropertyExpression> propertyExpressions = new LinkedList<>(axiom.getProperties());

    for(int i = 0; i < propertyExpressions.size(); i++){
        sparql += "{";
        OWLDataPropertyExpression pe = propertyExpressions.remove(i);
        sparql += subjectVar + "<" + pe.asOWLDataProperty().toStringID() + "> " + objectVar + " .";
        for (OWLDataPropertyExpression pe2 : propertyExpressions) {
            String pattern = subjectVar + "<" + pe2.asOWLDataProperty().toStringID() + "> " + objectVar + " .";
            sparql += notExists(pattern);
        }
        propertyExpressions.add(i, pe);
        sparql += "}";
        if(i < propertyExpressions.size()-1){
            sparql += " UNION ";
        }
    }
}
项目:logmap-matcher    文件:StructuralReasoner2.java   
public NodeSet<OWLDataProperty> getDisjointDataProperties(OWLDataPropertyExpression pe) throws InconsistentOntologyException, FreshEntitiesException, ReasonerInterruptedException, TimeOutException {
    ensurePrepared();
    DefaultNodeSet<OWLDataProperty> result = new OWLDataPropertyNodeSet();
    for (OWLOntology ontology : getRootOntology().getImportsClosure()) {
        for (OWLDisjointDataPropertiesAxiom axiom : ontology.getDisjointDataPropertiesAxioms(pe.asOWLDataProperty())) {
            for (OWLDataPropertyExpression dpe : axiom.getPropertiesMinus(pe)) {
                if (!dpe.isAnonymous()) {
                    result.addNode(dataPropertyHierarchyInfo.getEquivalents(dpe.asOWLDataProperty()));
                    result.addAllNodes(getSubDataProperties(dpe.asOWLDataProperty(), false).getNodes());
                }
            }
        }
    }
    return result;
}
项目:HermiT-android    文件:OWLNormalization.java   
public void visit(OWLDisjointDataPropertiesAxiom axiom) {
    OWLDataPropertyExpression[] dataProperties=new OWLDataPropertyExpression[axiom.getProperties().size()];
    axiom.getProperties().toArray(dataProperties);
    for (OWLDataPropertyExpression dataProperty : dataProperties)
        checkTopDataPropertyUse(dataProperty,axiom);
    m_axioms.m_disjointDataProperties.add(dataProperties);
}
项目:HermiT-android    文件:EntailmentChecker.java   
public Boolean visit(OWLDisjointDataPropertiesAxiom axiom) {
    int n=axiom.getProperties().size();
    OWLDataPropertyExpression[] props=axiom.getProperties().toArray(new OWLDataPropertyExpression[n]);
    for (int i=0;i<n-1;i++) {
        for (int j=i+1;j<n;j++) {
            OWLDataSomeValuesFrom some_i=factory.getOWLDataSomeValuesFrom(props[i],factory.getOWLDatatype(IRI.create(InternalDatatype.RDFS_LITERAL.getIRI())));
            OWLDataSomeValuesFrom some_j=factory.getOWLDataSomeValuesFrom(props[j],factory.getOWLDatatype(IRI.create(InternalDatatype.RDFS_LITERAL.getIRI())));
            OWLDataMaxCardinality max1=factory.getOWLDataMaxCardinality(1,factory.getOWLDataProperty(IRI.create(AtomicRole.TOP_DATA_ROLE.getIRI())));
            OWLClassExpression desc=factory.getOWLObjectIntersectionOf(some_i,some_j,max1);
            if (reasoner.isSatisfiable(desc))
                return Boolean.FALSE;
        }
    }
    return Boolean.TRUE;
}
项目:elk-reasoner    文件:AbstractElkObjectConverter.java   
@Override
public OWLDisjointDataPropertiesAxiom visit(
        ElkDisjointDataPropertiesAxiom axiom) {
    return owlFactory_
            .getOWLDisjointDataPropertiesAxiom(toDataPropertyExpressionSet(
                    axiom.getDataPropertyExpressions()));
}
项目:elk-reasoner    文件:AbstractOwlAxiomConverterVisitor.java   
@Override
public T visit(OWLDisjointDataPropertiesAxiom axiom) {
    throw new IllegalArgumentException(
            OWLDisjointDataPropertiesAxiom.class.getSimpleName()
                    + " cannot be converted to "
                    + getTargetClass().getSimpleName());
}
项目:Hermit_1.3.8_android    文件:OWLNormalization.java   
public void visit(OWLDisjointDataPropertiesAxiom axiom) {
    OWLDataPropertyExpression[] dataProperties=new OWLDataPropertyExpression[axiom.getProperties().size()];
    axiom.getProperties().toArray(dataProperties);
    for (OWLDataPropertyExpression dataProperty : dataProperties)
        checkTopDataPropertyUse(dataProperty,axiom);
    m_axioms.m_disjointDataProperties.add(dataProperties);
}
项目:Hermit_1.3.8_android    文件:EntailmentChecker.java   
public Boolean visit(OWLDisjointDataPropertiesAxiom axiom) {
    int n=axiom.getProperties().size();
    OWLDataPropertyExpression[] props=axiom.getProperties().toArray(new OWLDataPropertyExpression[n]);
    for (int i=0;i<n-1;i++) {
        for (int j=i+1;j<n;j++) {
            OWLDataSomeValuesFrom some_i=factory.getOWLDataSomeValuesFrom(props[i],factory.getOWLDatatype(IRI.create(InternalDatatype.RDFS_LITERAL.getIRI())));
            OWLDataSomeValuesFrom some_j=factory.getOWLDataSomeValuesFrom(props[j],factory.getOWLDatatype(IRI.create(InternalDatatype.RDFS_LITERAL.getIRI())));
            OWLDataMaxCardinality max1=factory.getOWLDataMaxCardinality(1,factory.getOWLDataProperty(IRI.create(AtomicRole.TOP_DATA_ROLE.getIRI())));
            OWLClassExpression desc=factory.getOWLObjectIntersectionOf(some_i,some_j,max1);
            if (reasoner.isSatisfiable(desc))
                return Boolean.FALSE;
        }
    }
    return Boolean.TRUE;
}
项目:Wolpertinger    文件:OWLNormalization.java   
public void visit(OWLDisjointDataPropertiesAxiom axiom) {
    OWLDataPropertyExpression[] dataProperties=new OWLDataPropertyExpression[axiom.getProperties().size()];
    axiom.getProperties().toArray(dataProperties);
    for (OWLDataPropertyExpression dataProperty : dataProperties)
        checkTopDataPropertyUse(dataProperty,axiom);
    m_axioms.m_disjointDataProperties.add(dataProperties);
}
项目:owlapi-gwt    文件:OWLDisjointDataPropertiesAxiomImpl.java   
@Override
public OWLDisjointDataPropertiesAxiom getAxiomWithoutAnnotations() {
    if (!isAnnotated()) {
        return this;
    }
    return new OWLDisjointDataPropertiesAxiomImpl(getProperties(),
            NO_ANNOTATIONS);
}
项目:owlapi-gwt    文件:OWLDisjointDataPropertiesAxiomImpl.java   
@Override
public Set<OWLDisjointDataPropertiesAxiom> asPairwiseAxioms() {
    Set<OWLDisjointDataPropertiesAxiom> result = new HashSet<>();
    List<OWLDataPropertyExpression> list = new ArrayList<>(getProperties());
    for (int i = 0; i < list.size() - 1; i++) {
        for (int j = i + 1; j < list.size(); j++) {
            result.add(new OWLDisjointDataPropertiesAxiomImpl(
                    new HashSet<>(Arrays.asList(list.get(i), list.get(j))),
                    NO_ANNOTATIONS));
        }
    }
    return result;
}
项目:owlapi-gwt    文件:OWLDisjointDataPropertiesAxiomImpl.java   
@Override
public Set<OWLDisjointDataPropertiesAxiom> splitToAnnotatedPairs() {
    List<OWLDataPropertyExpression> ops = new ArrayList<>(getProperties());
    if (ops.size() == 2) {
        return Collections.<OWLDisjointDataPropertiesAxiom> singleton(this);
    }
    Set<OWLDisjointDataPropertiesAxiom> result = new HashSet<>();
    for (int i = 0; i < ops.size() - 1; i++) {
        OWLDataPropertyExpression indI = ops.get(i);
        OWLDataPropertyExpression indJ = ops.get(i + 1);
        result.add(new OWLDisjointDataPropertiesAxiomImpl(new HashSet<>(
                Arrays.asList(indI, indJ)), getAnnotations()));
    }
    return result;
}
项目:owlapi-gwt    文件:OWLDisjointDataPropertiesAxiomImpl.java   
@Override
public boolean equals(Object obj) {
    if (this == obj) {
        return true;
    }
    if (!super.equals(obj)) {
        return false;
    }
    return obj instanceof OWLDisjointDataPropertiesAxiom;
}
项目:owlapi-gwt    文件:AbstractEntityRegistrationManager.java   
@Override
public void visit(@Nonnull OWLDisjointDataPropertiesAxiom axiom) {
    for (OWLDataPropertyExpression prop : axiom.getProperties()) {
        prop.accept(this);
    }
    processAxiomAnnotations(axiom);
}
项目:jopa    文件:IntegrityConstraintParser.java   
public void visit(OWLDisjointDataPropertiesAxiom axiom) {
    notSupported(axiom);
}
项目:HermiT-android    文件:EntailmentChecker.java   
public void visit(OWLDisjointDataPropertiesAxiom axiom) {
}
项目:elk-reasoner    文件:OwlDataPropertyAxiomConverterVisitor.java   
@Override
public ElkDataPropertyAxiom visit(
        OWLDisjointDataPropertiesAxiom owlDisjointDataPropertiesAxiom) {
    return CONVERTER.convert(owlDisjointDataPropertiesAxiom);
}
项目:elk-reasoner    文件:OwlConverter.java   
@SuppressWarnings("static-method")
public ElkDisjointDataPropertiesAxiom convert(
        OWLDisjointDataPropertiesAxiom owlDisjointDataPropertiesAxiom) {
    return new ElkDisjointDataPropertiesAxiomWrap<OWLDisjointDataPropertiesAxiom>(
            owlDisjointDataPropertiesAxiom);
}
项目:elk-reasoner    文件:OwlAxiomConverterVisitor.java   
@Override
public ElkAxiom visit(
        OWLDisjointDataPropertiesAxiom owlDisjointDataPropertiesAxiom) {
    return CONVERTER.convert(owlDisjointDataPropertiesAxiom);
}
项目:elk-reasoner    文件:FailingOwlAxiomVisitor.java   
@Override
public void visit(OWLDisjointDataPropertiesAxiom axiom) {
    defaultVisit(axiom);
}
项目:Hermit_1.3.8_android    文件:EntailmentChecker.java   
public void visit(OWLDisjointDataPropertiesAxiom axiom) {
}
项目:owltools    文件:AxiomAnnotationTools.java   
@Override
public OWLAxiom visit(OWLDisjointDataPropertiesAxiom axiom) {
    return factory.getOWLDisjointDataPropertiesAxiom(axiom.getProperties(), annotations);
}
项目:owltools    文件:CardinalityContraintsTools.java   
@Override
public void visit(OWLDisjointDataPropertiesAxiom axiom) {
}
项目:Wolpertinger    文件:DebugTranslation.java   
public void visit(OWLDisjointDataPropertiesAxiom arg0) {
    // TODO Auto-generated method stub
}
项目:born    文件:CycleDetector.java   
@Override
public Boolean visit(OWLDisjointDataPropertiesAxiom axiom) {
    return true;
}
项目:born    文件:ElAxiomFilter.java   
@Override
public Boolean visit(OWLDisjointDataPropertiesAxiom axiom) {
    return false;
}
项目:born    文件:AnnotationProcessor.java   
@Override
public Boolean visit(OWLDisjointDataPropertiesAxiom axiom) {
    Objects.requireNonNull(axiom);
    return add(this.df.getOWLDisjointDataPropertiesAxiom(axiom.getProperties(), reg(axiom.getAnnotations())));
}
项目:born    文件:AnnotationCreator.java   
@Override
public Boolean visit(OWLDisjointDataPropertiesAxiom axiom) {
    Objects.requireNonNull(axiom);
    return add(this.df.getOWLDisjointDataPropertiesAxiom(axiom.getProperties(), empty()));
}
项目:jcel    文件:AxiomTranslator.java   
@Override
public Set<ComplexIntegerAxiom> visit(OWLDisjointDataPropertiesAxiom axiom) {
    Objects.requireNonNull(axiom);
    throw TranslationException.newUnsupportedAxiomException(axiom);
}
项目:semantika    文件:TMappingProcessor.java   
@Override
public void visit(OWLDisjointDataPropertiesAxiom axiom)
{
   ignoreOwlAxiom("DisjointDataProperty", axiom);
}
项目:owlapi-gwt    文件:OWLObjectVisitorExAdapter.java   
@Override
public O visit(OWLDisjointDataPropertiesAxiom axiom) {
    return doDefault(axiom);
}
项目:owlapi-gwt    文件:OWLObjectTypeIndexProvider.java   
@Override
public void visit(OWLDisjointDataPropertiesAxiom axiom) {
    type = AXIOM_TYPE_INDEX_BASE + axiom.getAxiomType().getIndex();
}
项目:owlapi-gwt    文件:NNF.java   
@Override
public OWLAxiom visit(OWLDisjointDataPropertiesAxiom axiom) {
    return axiom;
}
项目:owlapi-gwt    文件:HashCode.java   
@Override
public void visit(OWLDisjointDataPropertiesAxiom axiom) {
    hashCode = primes[9];
    hashCode = hashCode * MULT + axiom.getProperties().hashCode();
    hashCode = hashCode * MULT + axiom.getAnnotations().hashCode();
}
项目:owlapi-gwt    文件:OWLAxiomVisitorAdapter.java   
@Override
public void visit(OWLDisjointDataPropertiesAxiom axiom) {
    handleDefault(axiom);
}
项目:owlapi-gwt    文件:OWLDisjointDataPropertiesAxiomImpl.java   
@Override
public OWLDisjointDataPropertiesAxiom getAnnotatedAxiom(
        Set<OWLAnnotation> annotations) {
    return new OWLDisjointDataPropertiesAxiomImpl(getProperties(),
            mergeAnnos(annotations));
}
项目:SVoNt    文件:PelletOWL2ELProfile.java   
public Object visit(OWLDisjointDataPropertiesAxiom axiom) {
  profileViolations.add(new UseOfIllegalAxiom(getCurrentOntology(), axiom));
  return null;
}
项目:SVoNt    文件:CEXOWL2ELProfile.java   
public void visit(OWLDisjointDataPropertiesAxiom arg0) {
    unusedAxiom(arg0);
}
项目:binaryowl    文件:OWLDisjointDataPropertiesAxiomSerializer.java   
@Override
protected void writeAxiom(OWLDisjointDataPropertiesAxiom axiom, BinaryOWLOutputStream outputStream) throws IOException {
    outputStream.writeOWLObjects(axiom.getProperties());
}
项目:binaryowl    文件:OWLDisjointDataPropertiesAxiomSerializer.java   
@Override
protected OWLDisjointDataPropertiesAxiom readAxiom(BinaryOWLInputStream inputStream, Set<OWLAnnotation> annotations) throws IOException, BinaryOWLParseException {
    Set<OWLDataPropertyExpression> propertyExpressions = inputStream.readOWLObjects();
    return inputStream.getDataFactory().getOWLDisjointDataPropertiesAxiom(propertyExpressions, annotations);
}