-
Notifications
You must be signed in to change notification settings - Fork 652
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
Error with getLocalName() for https://schema.org/3DModel #2376
Comments
Historically There are other ways to present URIs e.g. Or you could look at the |
See The javadoc for Changing New Contributions welcome! |
Thanks for the quick replies. That'll teach me for looking at decompiled code in the debugger rather than the actual sources! As Andy says the actual source does mention this:
I'lll investigate using either PrefixMapping or SplitIRI. When I have a free moment I'll consider creating a PR for those new methods, depending on my success! |
Version
5.0.0-rc1
What happened?
When extracting the local name for nTriples with an object of https://schema.org/3DModel I get
DModel
rather than3DModel
.Test code to reproduce:
From stepping through the code the problem looks to be with the use of Util.splitNamespaceXML(); in particular the
XMLChar.isNCNameStart(ch)
which is specifying that '3' not valid for the start of an xml tag. From a quick search online this statement appears to be correct for XML tags, but is3DModel
really an XML tag? (i.e. should XML rules really be applied here?)Either way, the getLocalName() method returns the wrong value.
Relevant output and stacktrace
No response
Are you interested in making a pull request?
None
The text was updated successfully, but these errors were encountered: