Code Monkey home page Code Monkey logo

Comments (4)

alexskr avatar alexskr commented on August 12, 2024 2

embedding file should reduce overall complexity and improve resiliency against external resource connectivity issues.

from owlapi_wrapper.

jvendetti avatar jvendetti commented on August 12, 2024

@alexskr - any opinion on where our copy of skos.rdf should live?

from owlapi_wrapper.

alexskr avatar alexskr commented on August 12, 2024

do you know if there a way to specify local file system path instead of a web address? If thats possible then embedding it with owlapi_wrapper would be my first choice.
Or maybe we can host skos core in BioPortal?

Alternatively we can create a purl for it and host file on ontoportal or www.bioontology.org site.

from owlapi_wrapper.

jvendetti avatar jvendetti commented on August 12, 2024

The example code provided by the OWL API shows that you can use a local file system path. I tested it and it seems to work - at least in a simple unit test scenario:

@Test
public void testSimpleIRIMapper() throws Exception {
  IRI skosCoreIRI = IRI.create("http://www.w3.org/2004/02/skos/core");
  IRI skosCoreDocumentIRI = IRI.create("file:/Users/vendetti/Downloads/skos.rdf");
  SimpleIRIMapper mapper = new SimpleIRIMapper(skosCoreIRI, skosCoreDocumentIRI);

  OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
  manager.getIRIMappers().add(mapper);

  File broFile = new File("src/test/resources/BRO_v3.2.owl");
  FileDocumentSource fileDocumentSource = new FileDocumentSource(broFile);
  OWLOntology ontology = manager.loadOntologyFromOntologyDocument(fileDocumentSource);
  assertNotNull(ontology);
}

So I take it that means you'd prefer to have it embedded?

from owlapi_wrapper.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.