Skip to content

Namespace prefix is serialized to "ns1" despite binding it. #1609

Answered by nicholascar
BalduinLandolt asked this question in Q&A
Discussion options

You must be logged in to vote

As per the answer to the same question in Stack Overflow: you need to complete the URI in the base declaration by adding the final #, or just don't use a base at all. As it is, the base is indeed clashing with the declared prefix.

There probably could be better handing of this in RDFlib but it's an extreme edge case predicated on incorrect declarations of a base that match a prefix, so I'm tempted to close the issue as I don't think anyone's likely to address it.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1232 on December 27, 2021 15:20.