Menu

#69 Reform OWLOntologyFormat usage in Parsers and Storers

open
nobody
None
5
2012-12-05
2012-06-18
No

As an alternative to the current parser and storer approach that relies on brute force for loading OWLOntology instances, and the OWLOntologyManager's state for serialising, it would be useful to be able to optionally specify the input format during the load process and specify the output format directly during the call to serialise the ontology. The easiest way to specify these formats is using standardised identifiers such as content types or MIME-Types.

The main complication with doing this right now is that OWLOntologyFormat instances are mutable, so they cannot be permanently stored as keys for people to use in this process in a thread-safe manner.

As part of the META-INF/services/ redesign that I am doing in the service-provider-interface branch of my GitHub fork (see bug #3521488 for more details) I am constructing OWLOntologyFormatFactory instances, which are designed to be immutable, and registering those as services using META-INF/services/org.semanticweb.owlapi.formats.OWLOntologyFormatFactory property files. Each factory has a method to create a new instance of the relevant OWLOntologyFormat, to allow them to still be mutable as necessary, a method to check its human-readable identifier which is currently exposed as the toString() method and extended in my fork based on a new getKey() method in OWLOntologyFormat, and two methods to determine the default and alternative MIME-Types for each OWLOntologyFormat respectively, with the idea that the default MIME-Types are checked first, and then the alternative MIME-Types are checked after that.

These features can be implemented with only additions to the current OWLOntologyFormat API, so they can be backwards compatible with current code except for new methods which will need to be implemented on third-party instances of (at minimum) OWLOntologyFormat, OWLOntologyDocumentSource, OWLOntologyDocumentTarget and OWLOntologyManager

With these changes, it will be much easier to specify what MIME types users desire the ontology in without hardcoding translations, which will in turn make it easier to extend the base OWLAPI libraries as the implementations do not need to expose their OWLOntologyFormat instances at compile time to have their formats recognised by both users and OWLOntologyManager instances.

Discussion

  • Nobody/Anonymous

    In the early Nineteen hundred, the standard Ancient greek observations for the curing strength with the sunshine have been technically established by simply There Arthur Eddington a leading British astrophysicist philosopher associated with technology. He or she established how the animal body are not able to employ calcium in the absence of sunlight; all tissue require calcium as a way to operate, to be sure it may help develop powerful bones, teeth and also muscle tissues. Additionally, it essential for center operate, nerve signalling and also body clots.
    <a href="<a href="http://www.cheapAdidasau.com">" title="adidas hoodie</a>">adidas hoodie</a></a>

     
  • Nobody/Anonymous

    GGx6WR <a href="http://pkcspluhnkbf.com/">pkcspluhnkbf</a>, [url=http://hdpcvikbkntd.com/]hdpcvikbkntd[/url], [link=http://hjzlunpxhmql.com/]hjzlunpxhmql[/link], http://kcwmsgjrwryc.com/

     
  • Nobody/Anonymous

    GGx6WR <a href="http://pkcspluhnkbf.com/">pkcspluhnkbf</a>, [url=http://hdpcvikbkntd.com/]hdpcvikbkntd[/url], [link=http://hjzlunpxhmql.com/]hjzlunpxhmql[/link], http://kcwmsgjrwryc.com/

     
  • Nobody/Anonymous

    1kkxXu <a href="http://wmzmqsviajbr.com/">wmzmqsviajbr</a>, [url=http://pnipncrvknic.com/]pnipncrvknic[/url], [link=http://rlvhaqyhyscm.com/]rlvhaqyhyscm[/link], http://rnizswpjojge.com/

     
  • Nobody/Anonymous

    tLzgvo <a href="http://wowllbwbaghq.com/">wowllbwbaghq</a>, [url=http://wocofpcuvlcd.com/]wocofpcuvlcd[/url], [link=http://ytzrkwkxxupc.com/]ytzrkwkxxupc[/link], http://dkfflchlyfih.com/

     
  • Nobody/Anonymous

    <url>http://paydaycollectives.com/|homepage</url>

     
  • Nobody/Anonymous

    <url>http://paydaycollectives.com/|online payday loan</url>

     
  • Nobody/Anonymous

    <url>http://paydaycollectives.com/|online payday loan</url>

     
  • Nobody/Anonymous

    <url>http://paydaycollectives.com/|online payday loan</url>

     
  • Nobody/Anonymous

    <url>http://paydaycollectives.com/|online payday loan</url>

     
  • Nobody/Anonymous

    <url>http://paydaycollectives.com/|online payday loan</url>

     
  • Nobody/Anonymous

    <url>http://paydaycollectives.com/|online payday loan</url>

     
  • Nobody/Anonymous

    <url>http://paydaycollectives.com/|online payday loan</url>

     
  • Nobody/Anonymous

    <url>http://paydaycollectives.com/|online payday loan</url>

     
  • Nobody/Anonymous

    <url>http://paydaycollectives.com/|online payday loan</url>

     
  • Nobody/Anonymous

    <url>http://paydaycollectives.com/|online payday loan</url>

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.