Skip to content

N3 parser rejects predicate-less statements allowed by the grammar #690

Description

@jeswr

The current N3 grammar makes predicateObjectList optional in triples, so the following are valid and emit no outer triple:

:s .
{:nested} .
[:p :o] .

N3.js currently errors when the terminating punctuation arrives without a predicate. This is exposed by cwm_syntax/zero-predicates.n3 in #640.

A small historical prototype exists as 82d6bbf, but it needs to be ported with current context handling and negative tests ensuring Turtle/TriG remain strict.

Part of #640.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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