w3c / N3

W3C's Notation 3 (N3) Community Group
47 stars 18 forks source link

No semicolon in IRI property lists; link to bnodeprplist #134

Closed VladimirAlexiev closed 1 year ago

VladimirAlexiev commented 1 year ago

https://w3c.github.io/N3/spec/#iriprplist shows a feature I've long wanted to see:

:spiderman 
  :enemyOf 
    [ id :green-goblin 
      :portrayedBy [ id :willem-dafoe
        a :Actor 
      ]
    ] ;
    :portrayedBy [ id :tobey-maguire
        a :Actor
    ] .

And explains:

IRI property lists build on the predicate object list syntax to group statements about IRIs.

Right, they are very similar. But one must not use ; ~ I think the spec should emphasize this, and maybe explain why ; is not allowed here.

One can use objects lists in this syntax as well.

Yes, I tried and using , to add objects works fine.

Also: this section should have a Note linking to https://w3c.github.io/N3/spec/#bnodeprplist. just like that section links to this one.

TallTed commented 1 year ago

The indents of the example aren't quite balanced. For human consumption,

:spiderman 
  :enemyOf 
    [ id :green-goblin 
      :portrayedBy [ id :willem-dafoe
        a :Actor 
      ]
    ] ;
    :portrayedBy [ id :tobey-maguire
        a :Actor
    ] .

should be (note the last three lines)

:spiderman 
  :enemyOf 
    [ id :green-goblin 
      :portrayedBy [ id :willem-dafoe
        a :Actor 
      ]
    ] ;
  :portrayedBy [ id :tobey-maguire
    a :Actor
  ] .
william-vw commented 1 year ago

https://w3c.github.io/N3/spec/#iriprplist shows a feature I've long wanted to see:

:spiderman 
  :enemyOf 
    [ id :green-goblin 
      :portrayedBy [ id :willem-dafoe
        a :Actor 
      ]
    ] ;
    :portrayedBy [ id :tobey-maguire
        a :Actor
    ] .

And explains:

IRI property lists build on the predicate object list syntax to group statements about IRIs.

Right, they are very similar. But one must not use ; ~ I think the spec should emphasize this, and maybe explain why ; is not allowed here.

Please add a PR for this (e.g., would you put it in a separate note?)