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

Comments

Projects
None yet
1 participant
@gnu9

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>

@ykazakov ykazakov closed this in 8a83db8 Jul 4, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment