-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Custom dummy namespace doesn't work? #5
Comments
This issue is caused by the RDF4J library when it is used to generate the preview and export in Turtle. Both the base namespace and the prefixed namespace are registered with RDF4J in the code. However, the library is optimizing the output to use the base namespace over the prefixed namespace. Issue: The Base IRI is used in various places as a "last ditch effort" to set or validated an IRI before throwing an error. The Base IRI should not be an "must have" requirement anyway. In this case, we can exclude it from the export process. I'll code a condition for excluding the Base IRI when it is empty or a checkbox or something. |
Expected behaviour comes from "the venerable RDF extension", where you define base URI + add it to vocabs with abbrev, and any object or subject of type URI gets that abbrev. This is not to say that RDF Transform should work the same way, of course. Only to clarify. I'm ok with ditching Base IRI altogether, I think the way it works in RDF Transform now is more intuitive/self-explanatory. |
The old RDF extension is probably preemptively overriding the Base IRI with the prefix if there is a same namespace and not giving the Base IRI to RDF4J. I probably missed that when I was "cleaning" the code. I'll review as a possible correction. |
Fixed with commit 562a8d5
|
using RDF transform v2.0.3-alpha with OR 3.5.2 and Java 17 in WSL Ubuntu 20.04
I've added abbrev
ex
forhttp://example.com/
as namespace and this is also my base IRI. It does not retrieve any real namespace, it doesn't need to.The problem is that the abbrev does not show up in the preview nor the turtle. It looks like this:
It should look like this:
Should you have any hints as to how I can fix this myself by tweaking something (I don't know Java), please feel free to share.
In addition, I have to say I'm really happy that RDF Transform came along. Repeated occurrences (e.g. the two narrowers here) are a real pain in the neck to deal with in the "old" RDF-extension, see here.
The text was updated successfully, but these errors were encountered: