Hi,
I'm trying to modify an old algorithm of mine in order to exploit
parallelization and I would like to use MPI. My algorithm is written in
Java and make use of OWL API library. I've noticed that if I try to load an
ontology after the initialization of MPI the process ends returning signal
11 (segmentation fault).

The code I've tried to test is below

public static void main(String[] args) {

        try {
            MPI.Init(args);

            OWLOntologyManager manager;
            OWLOntology ontology = null;

            manager = new OWLManager().buildOWLOntologyManager();
            String ontologyPath = "file:/path/to/file"; //This variable
contains the correct path
            System.out.println("Before load");
            ontology =
manager.loadOntologyFromOntologyDocument(IRI.create(ontologyPath));
            System.out.println("After load");

            MPI.Finalize();



        } catch (MPIException | OWLOntologyCreationException ex) {
            System.out.println(ex);
        }

    }


Does anyone have an idea of why or where is the error?

-- 
Riccardo Zese
PhD Student
ENDIF - Dipartimento di Ingegneria
Università di Ferrara
Via Saragat 1, I-44122,  Ferrara,  Italy
Tel. +39 0532974827

Reply via email to