afs commented on issue #3335:
URL: https://github.com/apache/jena/issues/3335#issuecomment-3101881278
I need to check the JSON-LD 1.1 spec but that looks like a fix, together
with a defensive check in the pragmatic guessing of prefixes:
```java
// Pragmatic filter: URI ends in "#" or "/" or ":"
String uri = JsonString.class.cast(jvx).getString();
if (uri.endsWith("#") || uri.endsWith("/") || uri.endsWith(":"))
{
if ( IRIs.check(uri) )
action.accept(prefix, uri);
return;
}
```
Other languages will have checked URIs as a normal part of parsing before
adding prefixes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]