Since InterMine 5.1.0, the platform provides support for building a SPARQL endpoint, which allows to query via SPARQL, the data integrated in the intermine instance.
The SPARL endpoint is based on an existing software, Ontop, which translates SPARQL queries into SQL queries, relying on declarative mappings which defines how to map relational schema to RDF model.
In order to generate the intermine specific mapping, run the create-R2RML-mapping postprocess.
The create-R2RML-mapping postprocess reads the genomic_model.xml file and generates the mapping.ttl file; it can be run at any time and it doesn't require any further action. You can find an example in biotestmine.
In the project.xml file of FlyMine, you can find an example on how to configure the create-R2RML-mapping postprocess.
Because InterMine uses postgresql, download the JDBC driver:
and create th file db.properties: