Schema Language
A method of expressing the contents of a schema that is a combination of syntax (usually a unique syntax for a given schema language) with some semantics particular to writing schema.
Deliverable
Task 43 has been evaluating different Schema Languages based on their features and the needs of the community. The comparisons table is here - a fuller report with better descriptions of the features and why they're relevant is pending.
Examples of Schema Languages include:
JSONSchema
XMLSchema (XSD)
RDFSchema (RDFS)
AvroSchema,
English*,
German*,
and many others…
*Note
A Schema Language could simply be a plain language like English or German - although a linguistic solution struggles to meet FAIR Principles, being difficult to search and hard for machines to parse unambiguously.
Some examples of schema in different languages
Let's take data in JSON format:
While generally straightforward, the example leaves some open questions. Here are just a few of them: What is productId? Is productName required? Can the price be zero (0)? Are all of the tags string values?
JSON Schema is a Schema language that is a proposed IETF standard for how to answer such questions for data. A schema for the example above can be:
Last updated