Open elf-pavlik opened 5 years ago
This is definitely a useful feature.
I also do this in my JSON-LD and RDF/XML parsers using the defaultGraph
constructor option, see https://github.com/rubensworks/jsonld-streaming-parser.js#configuration
What would this mean for quad formats?
I think it would just affect the default graph of the dataset and have not impact on any of named graphs already existing in it. Only edge case I can think of would come if dataset has a default graph and existing named graph named with IRI one would want to use for default graph.
This could work similar as still pending PR #10
Inspired by comment in https://github.com/rdfjs/data-model-spec/issues/144#issuecomment-473697146
I mentioned quad immutability in linked issue, here I would just like to gather feedback on providing an option similar to
baseIRI
to set name for default graph in parsers.