KnowledgeCaptureAndDiscovery / OBA

Ontology based APIs
Apache License 2.0
32 stars 11 forks source link

Alow configuring default ontology ns in configuration #109

Open dgarijo opened 4 years ago

dgarijo commented 4 years ago

In line 118 of Mapper.java we have: String defaultOntologyPrefixIRI = format.asPrefixOWLDocumentFormat().getDefaultPrefix();

This is not a safe assumption in some cases, because ontologies violate this. We should allow the optionof configuring the default ns from the config file. Otherwise the specification will be empty in some cases.

dgarijo commented 4 years ago

Example: http://vocab.linkeddata.es/vgo/GameOntologyv3.owl -> for some reason the default is different than the ontolgy ns prefix