Skip to content

Import ontology from jar #621

@donmendelson

Description

@donmendelson

I would like to distribute an application to create or edit ontologies that would import an ontology that I supply. I expect that the base ontology would be provided as a resource in a distributed jar file. My application works if the imported ontology resides as a flat file, but I am unable to load it from the jar. I've tried providing a file:// protocol on the document IRI in SimpleIRIMapper, but that doesn't work. Usually such resources are accessed by

InputStream ClassLoader.getResourceAsStream(String name)

I can't find a way to adapt that to the API. Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions