Closed djboardman closed 5 years ago
I'm not able to repeat the second case, where prefixes
is defined, as errors are only raised when validating. If not validating, the prefixes
option is automatically set to {nil => ""}
, as this is a common idiom, although it does not create valid RDF unless base_uri
is also defined.
The code should merge {nil => ""}
into prefixes if it is defined to support this use case.
However, ReaderError
is only raised when validating, so neither case would have resulted in an error.
Hi
This maybe just a misunderstanding of mine about prefixes and base URI but...
I can specify
base_uri
and get what I expected if there are no prefixes at all in the statement:produces the following when I get the statement:
But if I include a prefix in the statement and add a
prefixes
hash I get an error:produces the following error when I get the statement:
I can fix this by including a
nil
prefixwhich produces:
Is this expected behaviour?
Thanks