fastobo-syntax 0.1.0

PEG Syntax and pest parser for the OBO flat file format 1.4
Documentation

fastobo-syntax

PEG Syntax and pest parser for the OBO flat file format 1.4

License Source Crate Documentation Changelog

About

This library is a strict implementation of the OBO flat file format 1.4 syntax using the pest parser generator. It was outsourced from fastobo to reduce compilation time, since deriving the OboParser from grammar.pest takes some time.

The parser itself is reexported in fastobo::parser, so there is probably no need to depend on this library directly.

Strictness

The syntax is a strict implementation of the 1.4 format, with the following exceptions:

  • property_value clauses can have a value with is not quote-enclosed. This is a workaround to support some ontology files using obo2owl or the owlapi to generate their OBO counterpart, which does not quote-enclose property values (owlcs/owlapi#833).
  • ISO-8601 datetimes can only be parsed from the canonical format (ỲYYY-MM-DDTHH:MM:SS) with an optional timezone. Week dates and calendar dates are not supported.