Skip to content

Move base_uri from Parser/Serializer config to document prop #155

Answered by pchampin
damooo asked this question in Q&A
Discussion options

You must be logged in to vote

BufRead is very pervasive in Rust, so I would rather keep them as a possible input for parsers. And therefore (since BufReads don't carry their origin URL), having a default base IRI in the parser configuration makes sense.

But that being said, having an abstraction similar to JSON-LD's RemoteDocument, that attaches metadata (such as origin URL) to the data to be parsed, sounds indeed like a good idea. Parsers implementations could accept either BufRead of this abstraction.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by damooo
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