Skip to content

Line Numbers #527

Open
Open
@zaun

Description

@zaun

I and using rdf-validate-shacl to validate data files, but n3.sj throws away where in the file a Quad is. This means when letting the user know there is validation errors, I can tell them what is wrong, but can't tell them where in the file the error happens.

It would be nice is N3 kept the line number so something like

    const offending = dataStore.getQuads(focus, path, null, null);
    for (const q of offending) {
        console.error(`Value       : ${q.object.value}@ ${q.object.lineNumber}`);
    }

would be possible. Otherwise validation just send the user off on a frustration filled scavenger hunt.

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