Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add official name and meta-schema of schema format #100

Open
nichtich opened this issue May 2, 2022 · 1 comment
Open

Add official name and meta-schema of schema format #100

nichtich opened this issue May 2, 2022 · 1 comment

Comments

@nichtich
Copy link
Contributor

nichtich commented May 2, 2022

The schema format described at https://github.com/pkiraly/metadata-qa-api#defining-schema-with-a-configuration-file should get

  • a name (how about "MQA Schema"?)
  • one or more meta-schemas (I could create a JSON Schema).

Each meta-schema should also get a resolveable URI.

@pkiraly
Copy link
Owner

pkiraly commented May 4, 2022

@nichtich Thanks for the suggestion! The name is fine.
I do not really get the idea of "one or more meta-schemas". Are you talking validating this meta-schema? So JSON Schema could validate the serialization of a concrete instance of a meta-schema.
Right now this meta schema is defined as a Java class, and there are so called marshalling tools which could transform JSON and YAML strings to Java object of this type. When the program is initialized, this transformation happens and these marshalling tools throw exceptions if the YAML/JSON serialization is invalid. A JSON Schema could be used as an allternative for this validation. I do not know if there is such a thing, but I could imagine that there exists an editor which helps you to create a meta-schema instance if we provide a JSON schema. If such a thing exists JSON Schema is more than welcome. Do you happen to know if there is YAML Schema as well?
Or you might mean instances of meta-schema, here are some examples for Deutsche Digitale Bibliothek: https://github.com/pkiraly/metadata-qa-ddb/tree/main/src/main/resources. This repository also contains some examples. But I guess you are talking about the first option.

nichtich added a commit to gbv/metadata-qa-api that referenced this issue Dec 11, 2024
nichtich added a commit to gbv/metadata-qa-api that referenced this issue Dec 12, 2024
pkiraly added a commit that referenced this issue Dec 12, 2024
Introduce name "MQA Schema" (#100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants