validatingrdf / validatingrdf.github.io

Public repo for Validating RDF data book
15 stars 2 forks source link

ShexC Section 4.6.4, Example 55 says "zero or more schema:givenName" when it should be "one" #19

Open dougli1sqrd opened 5 years ago

dougli1sqrd commented 5 years ago

In ShexC Section 4.6.4, Example 55 the text reads:

The following shape declares that nodes must have either one schema:name or a combination of zero or more schema:givenName and one schema:lastName.

But the example Shex given is:

:User {
  schema:name  xsd:string |
  ( schema:givenName  xsd:string + ;
    schema:familyName  xsd:string
  )
}

Using the + indicating one or more, not zero.

It looks like either the text should change to say "one", not zero, or the shape example should change to use the *.

labra commented 5 years ago

Thanks for the comment. Indeed, we should change the shape. I leave the issue open until we repair it.