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

ShortFormIDs can't begin with number in 1.5.1 - but worked fine in 1.4.3 #17

Open
dosumis opened this issue Aug 14, 2014 · 1 comment
Open

Comments

@dosumis
Copy link

dosumis commented Aug 14, 2014

In 1.4.3:

test = Brain()
test.addClass("5ca4b0f0-23b3-11e4-b0bd-a8206614dd49")
<brain#5ca4b0f0-23b3-11e4-b0bd-a8206614dd49>
test.knowsClass("5ca4b0f0-23b3-11e4-b0bd-a8206614dd49")
True
test.getSubClasses("Thing", 0)
[5ca4b0f0-23b3-11e4-b0bd-a8206614dd49]

But in 1.5.1:

test = Brain()
test.addClass("5ca4b0f0-23b3-11e4-b0bd-a8206614dd49")
<brain#5ca4b0f0-23b3-11e4-b0bd-a8206614dd49>
test.knowsClass("5ca4b0f0-23b3-11e4-b0bd-a8206614dd49")
False
test.getSubClasses("Thing", 0)
[ca4b0f0-23b3-11e4-b0bd-a8206614dd49]

Note the missing first digit. Only digits seems to be affected. All leading digits are removed during class generation. No errors are thrown. The same issue is seen when loading from a file.

@loopasam
Copy link
Owner

ok weird... might be an OWL-API problem, thanks for providing the test-case, I investigate.

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

2 participants