Re: [shex] Validation of RDF* (#107)

Whenever I think about this, my brain turns inside out. Are we validating the stuff inside or outside the `<<>>`?

**Data:**
``` turtle
<< <alice> a :User >> dc:creator #me .
<< <alice> foaf:givenName "Alice" >> dc:creator #you .
<< <alice> foaf:familyName "Walker" >> dc:creator #you .
```
Would the schema be

**Schema 1**
```turtle
<#UserShape> {
  << a [foaf:User] >> dc:creator . ;
  << foaf:givenName xsd:string >> dc:creator . ;
  << foaf:familyName xsd:string >> dc:creator . ;
}
```

or 

**Schema 2**
```turtle
<#UserAssertionShape> {
  dc:creator >> a [foaf:User] << ;
  dc:creator >> foaf:givenName xsd:string << ;
  dc:creator >> foaf:familyName xsd:string <<  ;
}
```

As far as I can tell, we'd want the former because in the latter, we'd have to invent something like variables ot make sure the subjects of the triples were the same. That said, the latter is closer to how ShEx operates today. Thoughts?

-- 
GitHub Notification of comment by ericprud
Please view or discuss this issue at https://github.com/shexSpec/shex/issues/107#issuecomment-750929353 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 24 December 2020 17:11:27 UTC