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

Default Prefix for Turtle Documents #1155

Open
tobiaswjohn opened this issue Sep 17, 2024 · 0 comments
Open

Default Prefix for Turtle Documents #1155

tobiaswjohn opened this issue Sep 17, 2024 · 0 comments

Comments

@tobiaswjohn
Copy link

The TurtleParser sets a default IRI (namely http://www.semanticweb.org/owl/owlapi/turtle#) for the empty prefix before parsing a turtle document. Doing so allows the OWL API to parse (incorrect) turtle files where the empty prefix is not defined, while other tools, i.e. the JENA API, troughs an exception because an undefined prefix is used. An example is the following:

:j  a  <i> .

I consulted the turtle standard and think that setting a default IRI for the empty prefix is not according to the standard (please correct me if I am wrong).

There are probably some users that depend on this handling of an undefined empty prefix, so changing it might be hard. But I think that the current implementation can have unexpected side effects, e.g. if a user, for whatever reason, uses the same prefix somewhere in their ontology. Maybe one can output a warning when the default IRI is used?

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

No branches or pull requests

1 participant