robot icon indicating copy to clipboard operation
robot copied to clipboard

Add check to detect http://org.semanticweb.owlapi/error#

Open cmungall opened this issue 4 years ago • 3 comments

The OWLAPI will sometimes silently turn RDF into http://org.semanticweb.owlapi/error#Error1, Error2, etc nodes if it can't handle it.

There may be some strict mode in the owlapi that we can expose via robot commands? That would be another ticket. For now I would like to just flag all cases in all ontologies (whether made by robot or not) that have these.

I think we should also consider this an OBO principle failure for http://obofoundry.org/principles/fp-002-format.html

Some examples:

https://bioportal.bioontology.org/search?utf8=%E2%9C%93&query=Error1&button=

cmungall avatar May 27 '21 19:05 cmungall

@ignazio1977 Is there a way to achieve this with the OWL API? I mean without searching the ontology for the ERROR IRI pattern and throwing an exception?

matentzn avatar May 30 '21 11:05 matentzn

@matentzn Yeah those IRIs are generated when the input is missing triples (typically a restriction without a type). If the parsing is set to strict (PARSE_WITH_STRICT_CONFIGURATION option in ConfigurationOptions) an exception is thrown, but strict parsing is not specific to this error - other errors which the API usually tries to repair will also cause exceptions to bubble up. Otherwise, the logging will contain a message about the error, so that could be used to detect problems in batches of input files, I guess.

ignazio1977 avatar May 30 '21 21:05 ignazio1977

The general case @ignazio1977 describes, ROBOT already supports: http://robot.obolibrary.org/global#strict-parsing

@cmungall does this cover your situation, or do we need more fine-grained control for this ticket here?

matentzn avatar May 31 '21 08:05 matentzn

Lets assume the strict mode covers the situation described.

matentzn avatar Apr 08 '24 12:04 matentzn