Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortened IRIs in FunctionalSyntax #1089

Open
rwynne opened this issue Feb 7, 2023 · 1 comment
Open

Shortened IRIs in FunctionalSyntax #1089

rwynne opened this issue Feb 7, 2023 · 1 comment
Labels

Comments

@rwynne
Copy link

rwynne commented Feb 7, 2023

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!

@ignazio1977
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants