An OBOGraph JSON document passes an open externally executed gate into Agda reflection. The upper rail exposes a native JSON stage and sectioned decoder leading to a portable OWL ontology document; the lower pulley cable is the convenience import route, and decoder failure branches into captured path, standard-output, and standard-error traces.
Unsafe OBOGraph macro import and diagnostic conversion bench

ff-owl-unsafe

repository URL pending

Scope

ff-owl-unsafe is a compact integration layer for bringing external OBOGraph JSON into Agda while a module is being typechecked. Its macro machinery combines Agda reflection with an executable bridge that derives checked terms from file paths. Imported data can remain a native JSON value or be decoded as an OBOGraph document and translated into the library’s portable OWL 2 representation. The example module exercises both the staged decoding path and a convenience import path using a logical-definition document. This deliberately unsafe boundary is isolated in a companion library whose flags explicitly permit external execution.

Most important results

The library provides a macro that imports an OBOGraph file directly as a native JSON value. A second macro performs decoding and conversion so that the generated term has the portable OWL 2 ontology-document type. Failed external commands are converted into typechecking errors that preserve the source path together with captured standard output and standard error. The checked example establishes successful decoding and constructs ontology-document values through both explicit and convenience workflows.

Library modules

3 checked modules

Select a module to inspect its generated Agda source view.

Skip to content

Agda libraries

ff-owl-unsafe

ff-owl-unsafe is a compact integration layer for bringing external OBOGraph JSON into Agda while a module is being typechecked.

Unsafe OBOGraph macro import and diagnostic conversion benchAn OBOGraph JSON document passes an open externally executed gate into Agda reflection. The upper rail exposes a native JSON stage and sectioned decoder leading to a portable OWL ontology document; the lower pulley cable is the convenience import route, and decoder failure branches into captured path, standard-output, and standard-error traces.
An OBOGraph JSON document passes an open externally executed gate into Agda reflection. The upper rail exposes a native JSON stage and sectioned decoder leading to a portable OWL ontology document; the lower pulley cable is the convenience import route, and decoder failure branches into captured path, standard-output, and standard-error traces.

Scope

ff-owl-unsafe is a compact integration layer for bringing external OBOGraph JSON into Agda while a module is being typechecked. Its macro machinery combines Agda reflection with an executable bridge that derives checked terms from file paths. Imported data can remain a native JSON value or be decoded as an OBOGraph document and translated into the library’s portable OWL 2 representation. The example module exercises both the staged decoding path and a convenience import path using a logical-definition document. This deliberately unsafe boundary is isolated in a companion library whose flags explicitly permit external execution.

Most important results

The library provides a macro that imports an OBOGraph file directly as a native JSON value. A second macro performs decoding and conversion so that the generated term has the portable OWL 2 ontology-document type. Failed external commands are converted into typechecking errors that preserve the source path together with captured standard output and standard error. The checked example establishes successful decoding and constructs ontology-document values through both explicit and convenience workflows.

Source browser

Modules

Browse modulesOpen generated Agda sources

Cabinet index

Explore Formal Foundry

Search the archive

Find a page

Type to search the published content.