Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.9.0-incubating
-
None
-
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.