Comments (4)
embedding file should reduce overall complexity and improve resiliency against external resource connectivity issues.
from owlapi_wrapper.
@alexskr - any opinion on where our copy of skos.rdf
should live?
from owlapi_wrapper.
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.
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)
- Refactor unit tests
- Change directory structure to match Maven standard layout
- Upgrade commons-cli dependency to latest version
- Upgrade to OWL API 5
- Upgrade to OWL API 4.3.1
- Version numbers aren't calculated for some OBO ontologies
- Not all ontologies in the specified input folder are parsed
- Upgrade to Open JDK 11 HOT 1
- Upgrade to OWL API 4.5.13 HOT 1
- Check Version IRI for versioning OWL ontologies HOT 1
- Expanding the allowed file extensions list HOT 1
- label creator
- NoClassDefFoundError: java/xml/bind/annotations occurs during parsing of some ontologies
- Ontology-level annotation axioms and version info HOT 4
- The default logging level for metrics calculation is set too high
- update owlapi to v4.5.24 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from owlapi_wrapper.