Uploaded image for project: 'Stanbol (Retired)'
  1. Stanbol (Retired)
  2. STANBOL-680

Ontology input sources are not resetting the data streams to parse multiple formats

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.0-incubating
    • None
    • Ontology Manager
    • None

    Description

      Most Ontology Manager methods loop on supported formats when trying to parse a data stream, in order to increase the chances of parsing an ontology successfully even when its format is not known by the client.

      However, none of these loops resets the data stream after a parser failure, therefore any attempts after the first one (which is usually RDF/XML) will fail. And not all data streams can be reset (e.g. unbuffered file input streams).

      This makes it impossible to parse an entire ontology network if the imported ontologies are in a format other than RDF/XML (e.g. Turtle or RDF/JSON). Also, this causes the "Auto" option of the Stanbol HTML client not to work if the submitted file is not RDF/XML.

      Attachments

        Activity

          People

            alessandro.adamou Alessandro Adamou
            alessandro.adamou Alessandro Adamou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: