owlcs/owlapi

Shortened IRIs in FunctionalSyntax

Opened this issue · 1 comments

I've a default prefix in my header
Prefix(:=<http://.../>)

Instead of full blown IRIs serialized as "<http://..../xyz>" would like to see ":xyz" in the saved FunctionalSyntax.

Is there a method for this?
Am using version 5.1.10.

Thanks!

This should work with code like this:

    FunctionalSyntaxDocumentFormat format = new FunctionalSyntaxDocumentFormat();
    format.setPrefix(":", "http://...");
    ontologyManager.setOntologyFormat(ontology, format);

And then proceed to save the ontology.