-
Notifications
You must be signed in to change notification settings - Fork 42
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
XAPI-00057, invalid IRI in extensions #228
Comments
More detailed log from test-suite is, |
'id' and 'description' are not valid IRIs, so the test is fine. The wikipedia page for IRIs is here: https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier But it's not very detailed and doesn't make a great introduction if you're not already familiar with URIs. You can read about URIs here: https://en.wikipedia.org/wiki/Uniform_Resource_Identifier Or to go even simpler, "the most common form of URI is the Uniform Resource Locator (URL)", which you can read about here: https://en.wikipedia.org/wiki/URL |
thank you for sharing the details.
|
Not all IRIs are URLs. We should make sure the test suite sends some non-URL and even non-URI IRIs. |
Apache Jena IRI seems to be the right one for IRI validations. Yes, Test suite does not seem to have an case with IRI having non-ASCII chars. |
@vbhayden does the test suite currently have tests that include IRIs that are not URIs? |
I'll look through it, but I don't see anything right now that checks for the nested case of IRI and not URI. My hunch is that it won't, as this is one of the tests for 1.0.3 verb conformance:
Since this is a template for confirming a valid IRI (and passes an invalid URI to do this), the proper subset case probably wasn't considered. |
Second and Fourth test expects 400 error. But the test suite passes '{definition: {extensions: VALID_EXTENSION_COMPONENT}}'.
It is defined as,
var VALID_EXTENSION_COMPONENT = {
'id': 'valid',
'description': {
'en-US': 'valid'
}
}
'id' and 'description' both seems to be a valid IRI to me.
Please let me know if the test case is correct?
If so, what is the best solution to validate an given IRI?
I tried IRIResolver from https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/riot/system/IRIResolver.html, but it reports above IRI are fine. Is there any other java library that I can use?
The text was updated successfully, but these errors were encountered: