use of org.geneontology.minerva.curie.CurieHandler in project minerva by geneontology.
the class ShexValidatorTest method setUpBeforeClass.
@BeforeClass
public static void setUpBeforeClass() throws Exception {
go_lego = new BlazegraphOntologyManager(go_lego_journal_file, true);
CurieHandler curieHandler = DefaultCurieHandler.getDefaultHandler();
shex = new ShexValidator(schemaFile, mainShapemapFile, go_lego, curieHandler);
shexMeta = new ShexValidator(metadataSchemaFile, metadataShapemapFile, go_lego, curieHandler);
}
use of org.geneontology.minerva.curie.CurieHandler in project minerva by geneontology.
the class BlazegraphMolecularModelManagerTest method createBlazegraphMolecularModelManager.
/**
* @return the instance of BlazegraphMolecularModelManager
* @throws Exception
*/
private BlazegraphMolecularModelManager<Void> createBlazegraphMolecularModelManager() throws Exception {
/* A path of the temporary journal file for Blazegraph storage system */
String journalPath = folder.newFile().getAbsolutePath();
/* A root path of the temporary directory */
String tempRootPath = folder.getRoot().getAbsolutePath();
/* Delete the journal file if exists */
FileUtils.deleteQuietly(new File(journalPath));
OWLOntology tbox = OWLManager.createOWLOntologyManager().loadOntology(IRI.create(new File("src/test/resources/mmg/basic-tbox.omn")));
Map<String, String> prefixes = new HashMap<>();
prefixes.put("gomodel", "http://model.geneontology.org/");
prefixes.put("ex", "http://example.org/");
prefixes.put("GO", "http://purl.obolibrary.org/obo/GO_");
CurieHandler curieHandler = new MappedCurieHandler(prefixes);
BlazegraphMolecularModelManager<Void> m3 = new BlazegraphMolecularModelManager<>(tbox, curieHandler, "http://model.geneontology.org/", journalPath, tempRootPath, go_lego_journal_file, true);
return m3;
}
Aggregations