shex icon indicating copy to clipboard operation
shex copied to clipboard

Allow blank node labels as annotation values

Open joeltg opened this issue 5 years ago • 1 comments

PREFIX schema: <http://schema.org/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX ex: <http://example.com/>

_:foo {
  schema:name xsd:string // ex:reference _:bar ;
}

_:bar {
  a [ prov:Entity ] ;
  prov:generatedAtTime xsd:dateTime ;
}

Some kinds of annotations might want to reference blank node labels from the schema! Is there any reason not to allow this?

joeltg avatar Jun 29 '20 14:06 joeltg

i actually mocked up a full ShEx-with-Turtle at some point but figured it would be complex enough that it would hamper implementation and adoption 'cause

  1. the grammar was about 20% larger
  2. parsers would become triple stores.

That said, I'm not convinced that I figured that right, or that the audience hasn't become more ambitious.

ericprud avatar Jul 07 '20 22:07 ericprud