W3C home > Mailing lists > Public > public-schemaorg@w3.org > March 2020

Re: Validating Schemas

From: Richard Wallis <richard.wallis@dataliberate.com>
Date: Fri, 20 Mar 2020 13:19:32 +0000
Message-ID: <CAD47Kz6TCbyN4Kq4hcU0AsJMfn12ogaGAsF7N2Xc0JHs7QOjXg@mail.gmail.com>
To: James Hudson <jameshudson3010@gmail.com>
Cc: "schema. org Mailing List" <public-schemaorg@w3.org>
Hi James,

In the Schema.org repository <https://github.com/schemaorg/schemaorg> we
run a set of python based tests to check for simple errors.  For
example the rdfs:label value matches the last part of the term URI, or that
a rangeIncludes value is that of a valid Type(Class).

These tests <https://github.com/schemaorg/schemaorg/tree/master/tests> are
automatically run against the configuration when new commits are made to
the repository and when a version is prepared for ship to the Schema.org

These tests and processes have evolved over the 8 year development of the
vocabulary.  They catch most errors.

Hope this helps.

Richard Wallis
Founder, Data Liberate
Linkedin: http://www.linkedin.com/in/richardwallis
Twitter: @rjw

On Fri, 20 Mar 2020 at 12:37, James Hudson <jameshudson3010@gmail.com>

> Hello,
> I am creating some Schema's (using json-ld, if it matters), following the
> schema.org model.
> An example of a Schema.org class is (in json-ld format):
>     {
>       "@id": "http://schema.org/MediaObject",
>       "@type": "rdfs:Class",
>       "rdfs:comment": "A media object [...]",
>       "rdfs:label": "MediaObject",
>       "rdfs:subClassOf": {
>         "@id": "http://schema.org/CreativeWork"
>       }
>     }
> My question is when creating these schema's, what validation procedures or
> tools are being used to validate them before publication? (i.e. making sure
> there are no typos, like http://schema.org/CreativeWork vs
> http://schema.org/CreativeWrk, etc.)
> Regards,
> James
Received on Friday, 20 March 2020 13:19:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 March 2020 13:19:58 UTC