Skip to content

pass name for default graph to the parser #13

@elf-pavlik

Description

@elf-pavlik

This could work similar as still pending PR #10

Inspired by comment in rdfjs/data-model-spec#144 (comment)

@namedgraph: I think a more relevant experiment is reading such data, then taking it from the default graph and storing it into named graph, which name is most likely the URI the data was read from.
Am I supposed to iterate the quads to change the graph component to do that?

@elf-pavlik: or it would make sense in a similar way as one can give baseIRI to the parser to also provide some kind of nameForDefaultGraph. This way quads could have that IRI instead the default graph from the begging.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions