Skip to content

N3 mode does not accept lists in the predicate position #619

Description

@jeswr

In Notation3, a predicate can be any expression, including a list — but the parser only accepts lists in the subject and object positions:

(<b> <c>) <a> <d>.    # parses
<a> <b> (<c> <d>).    # parses
<a> (<b> <c>) <d>.    # Expected entity but got ( on line 1

(verified on n3@2.1.0 with format: 'text/n3')

This was implemented on the superseded versions/2.0.0 branch in #345 (a ( case in _readPredicate, gated on N3 mode) but never made it to main — see the #341 close-out. It should be re-implemented against current main as a small focused PR, and validated against the W3C N3 test suite once #331 lands.

Related N3-mode list fixes in flight: #342/#357 (graph terms in lists, #617) and #328 (literal subjects/predicates, #613).

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions