Re: Schema.org related SHACL shapes

We have been doing something closely related in the Bioschemas community
https://bioschemas.org/


We have been defining usage profiles over Schema.org types, and also developing types relevant for the life sciences.

To test whether some markup conforms with the Bioschemas profile we are using a ShEx definition of our profiles. The work is still in an early stage and currently has a CORS bug, but you can find the frontend at the following link. We are using the RDFShape service to perform the validation which doesn’t yet give an error report that we can process into a nice UX.
http://www.macs.hw.ac.uk/SWeL/BioschemasValidator/


Alasdair

--
Alasdair J G Gray
Associate Professor in Computer Science,
School of Mathematical and Computer Sciences
Heriot-Watt University, Edinburgh, UK.

Email: A.J.G.Gray@hw.ac.uk<mailto:A.J.G.Gray@hw.ac.uk>
Web: http://www.macs.hw.ac.uk/~ajg33

ORCID: http://orcid.org/0000-0002-5711-4872

Office: Earl Mountbatten Building 1.39
Twitter: @gray_alasdair

To arrange a meeting: https://doodle.com/mm/alasdairgray/book-a-time



From: "danbri@google.com" <danbri@google.com>
Date: Wednesday, 20 May 2020 at 16:11
To: James Hudson <jameshudson3010@gmail.com>
Cc: "public-schemaorg@w3.org" <public-schemaorg@w3.org>
Subject: Re: Schema.org related SHACL shapes
Resent from: "public-schemaorg@w3.org" <public-schemaorg@w3.org>
Resent date: Wednesday, 20 May 2020 at 16:09

There are a few experiments scattered around but nothing very final

This is an interesting area to investigate.

You might be interested in https://docs.google.com/document/d/1oWzVo_fhsUGvDqPpFEWt1boV8Dn1Xz-zOlHe9sHFKOw/edit?usp=drivesdk which looks into using ShEx inside Chrome via a JavaScript implementation. There is now recently improved JS tooling for SHACL too so the same approach could work there...

Keep us posted on what you find

Dan

On Wed, 20 May 2020, 16:00 James Hudson, <jameshudson3010@gmail.com<mailto:jameshudson3010@gmail.com>> wrote:
Hello,

Let's say that I had some data like https://schema.org/Invoice#Invoice-gen-367


A property on Invoice is paymentDueDate which needs to be a Date or DateTime.

So, for example, assigning a string like "XXXXX" to the property is not valid.

I could create a SHACL Shape which would produce a validation error, but I was wondering if there were already SHACL Shapes available which validate data instances of Schema.org classes.

Regards,
James
________________________________

Founded in 1821, Heriot-Watt is a leader in ideas and solutions. With campuses and students across the entire globe we span the world, delivering innovation and educational excellence in business, engineering, design and the physical, social and life sciences. This email is generated from the Heriot-Watt University Group, which includes:

  1.  Heriot-Watt University, a Scottish charity registered under number SC000278
  2.  Heriot- Watt Services Limited (Oriam), Scotland's national performance centre for sport. Heriot-Watt Services Limited is a private limited company registered is Scotland with registered number SC271030 and registered office at Research & Enterprise Services Heriot-Watt University, Riccarton, Edinburgh, EH14 4AS.

The contents (including any attachments) are confidential. If you are not the intended recipient of this e-mail, any disclosure, copying, distribution or use of its contents is strictly prohibited, and you should please notify the sender immediately and then delete it (including any attachments) from your system.

Received on Wednesday, 20 May 2020 15:16:13 UTC