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

Grammar incorrectly defined for DataOneOf #43

Closed
gnu9 opened this issue Jul 4, 2017 · 0 comments
Closed

Grammar incorrectly defined for DataOneOf #43

gnu9 opened this issue Jul 4, 2017 · 0 comments

Comments

@gnu9
Copy link

gnu9 commented Jul 4, 2017

Similar to issue #3
The FSS-Parser requires DataOneOf(...) to enumerate at least two individuals which does not comply with OWL2-FSS, e.g. OWL-EL does allow only singletons.

To fix it, change in
org.semanticweb.elk.owl.parsing.javacc.Owl2FunctionalStyleParser.jj /* 7.4 Enumeration of Literals */
the lines

<DATA_ONE_OF> <OPEN_BRACKET>
		x = literal() { v.add(x); }
		( x = literal() { v.add(x); } )+
<CLOSE_BRACKET>

into

<DATA_ONE_OF> <OPEN_BRACKET>
		( x = literal() { v.add(x); } )+
<CLOSE_BRACKET>
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