-
Notifications
You must be signed in to change notification settings - Fork 24
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
Machine readable schema - request #418
Comments
7.0 has a machine-readable schema. The line syntax is defined in the spec using ABNF, which is automatically extracted as grammar.abnf. At least one of the public gedcom parsers uses this grammar to parse lines. The structure hierarchy is defined in the spec using a machine-readable variant of the metasyntax created for 5.0, which is automatically extracted as grammar.gedstruct. The structure hierarchy is also converted to a different machine-readable form as a set of YAML files hosted in several places including the URI of each structure type (e.g. https://gedcom.io/terms/v7/ABBR) and in a separate repository of both standard and extension structures (GEDCOM-registries). Multiple public gedcom parsers and development aids use one or both of these to parse and validate structure hierarchies. These machine-parseable formats are not perfect (for example, we lack a machine-parseable way of marking something as deprecated) and we'd welcome suggestions in how to improve them. I did not look at your attached files closely enough to know if you have features the standard currently lacks. |
Discussion in GEDCOM Steering Committee 1/18/2024: |
Closing since original question has been answered, and follow-up discussion can be done in #422 |
1)All the comments are stripped out of the machine-readable schema 2)There is no machine-readable file with regular expressions, and comments defining the primitive types 3)The spec is fragmented across too many different files, making it very complex to parse citing the above 3 reasons, I think the schema is not fully machine-readable Please review the attached ged.5.1.1.txt and PrimSection.txt |
also, please advise, is it possible to reopen the issue? |
We closed the issue because everything you asked for (machine-readability) is already provided. I still believe that's the case, but you've asked for more things (regular expressions and comments) so I'll re-open it for now to see if further conversation prompts identifying an issue that we should resolve. |
thanks for the feedback, I will take a further look for example: in the Augean tool, I use comments extensively when editing GEDCOM |
The YAML files work fine, thanks, I was able to parse all YAML files so, two issues would be
|
Discussion 1/25/2024:
We don't think we need "regular expressions" per se because they can be derived from ABNF and because there are multiple different regex syntaxes used by various tools and libraries, so even if we picked one style, others would have to convert them anyway. Please let us know if we are missing anything or if you have other feedback. |
User descriptions in YAML files will help a lot - thanks !!! |
Addresses part of FamilySearch/GEDCOM#418 Signed-off-by: Dave Thaler <[email protected]>
* Link to extracted files from tools page Addresses part of FamilySearch/GEDCOM#418 Signed-off-by: Dave Thaler <[email protected]> * Update _pages/tools.md * Update _pages/tools.md --------- Signed-off-by: Dave Thaler <[email protected]> Co-authored-by: Dave Thaler <[email protected]>
Current status as of 29 OCT 2024 GEDCOM Steering Committee meeting:
Done in FamilySearch/GEDCOM.io#142
Done in #437
This is somewhat different from the original discussion in this issue so created issue #564 to track this. |
XML and JSON schemas are usually machine-readable
Requesting the same for GEDCOM 7
Please see the attached files, for an example of a machine-readable schema that I created for GEDCOM 5.1.1
This allows me to create new GEDCOM files easily, and is very easy for tools to interact with
Please could we have a machine-readable GEDCOM 7 schema (please use the attached files as an example)
I single file (or even multiple files), which allows us to easily parse the GEDCOM
ged.5.1.1.txt
PrimSection.txt
structure
thanks
The text was updated successfully, but these errors were encountered: