pesc-org / json-ld-transcript

Creating a machine readable, semantic PESC transcript
https://www.pesc.org/college-transcript.html
1 stars 0 forks source link

make sure types are the expected class #12

Open philbarker opened 11 months ago

philbarker commented 11 months ago

Currently it doesn't matter what type you say an object is. Add the expected RDF class to rdf:type property.

4pins commented 11 months ago

@philbarker I am sorry this isn't a better question, but what are you getting at?

philbarker commented 11 months ago

Pretty decent question really: short and to the point.

I noticed that while we want something like

   ...
   "student": {
      "@type": "Person",
     ...
   }
   ...

the shacl was allowing

   ...
   "student": {
      "@type": "NotAPerson",
     ...
   }
   ...

I fixed it for that example, but it's a general problem that'll take some tweaks to the spreadsheets and shacl generation to fix rather than changes to the model per se.