Skip to content

Commit

Permalink
rename descriptions "specification"; fix errors in YAML extraction sc…
Browse files Browse the repository at this point in the history
…ript
  • Loading branch information
tychonievich committed Sep 7, 2022
1 parent 3e57c50 commit 2499fd9
Show file tree
Hide file tree
Showing 300 changed files with 324 additions and 311 deletions.
3 changes: 2 additions & 1 deletion build/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
SPECDIR = ../specification/
EXTDIR = ../extracted-files/
MD_FILES = $(sort $(wildcard $(SPECDIR)gedcom*.md))
TERMS_FILES = $(sort $(wildcard $(SPECDIR)/terms/*))
HTML_FILE = $(SPECDIR)gedcom.html
PDF_FILE = $(SPECDIR)gedcom.pdf
GRAMMARS = $(EXTDIR)grammar.abnf $(EXTDIR)grammar.gedstruct
Expand All @@ -19,7 +20,7 @@ $(PDF_FILE): $(HTML_FILE)
$(HTML_FILE): hyperlink-code.py GEDCOM-tmp.html
python3 hyperlink-code.py GEDCOM-tmp.html $(HTML_FILE)

$(TAGDEFS): $(MD_FILES) uri-def.py
$(TAGDEFS): $(MD_FILES) $(TERMS_FILES) uri-def.py
python3 uri-def.py $(MD_FILES) $(TAGDEFS)
touch $(TAGDEFS)

Expand Down
6 changes: 3 additions & 3 deletions build/uri-def.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,11 @@ def expand_prefix(txt, prefixes):
print('\nuri:', uri, file=fh)

if g7[tag][0] in ('structure', 'enumeration', 'calendar', 'month'):
ptag = re.sub(r'.*-', '', tag)
print('\nstandard tag: '+ptag, file=fh)
ptag = re.sub(r'.*-', '', re.sub(r'-[A-Z]?[a-z].*', '', tag))
print('\nstandard tag: '+(repr(ptag) if ptag in ('YES','NO','TRUE','FALSE', '0', '1', '2', '3') else ptag), file=fh)

if len(g7[tag][1]) > 0:
print('\ndescriptions:', file=fh)
print('\nspecification:', file=fh)
for desc in g7[tag][1]:
print(yaml_str_helper(' - ', desc), file=fh)
if g7[tag][0] == 'structure':
Expand Down
8 changes: 4 additions & 4 deletions extracted-files/substructures.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,10 @@ https://gedcom.io/terms/v7/SLGS DATE https://gedcom.io/terms/v7/DATE
https://gedcom.io/terms/v7/SOUR-DATA DATE https://gedcom.io/terms/v7/DATE
https://gedcom.io/terms/v7/SSN DATE https://gedcom.io/terms/v7/DATE
https://gedcom.io/terms/v7/WILL DATE https://gedcom.io/terms/v7/DATE
https://gedcom.io/terms/v7/CHAN exact https://gedcom.io/terms/v7/DATE-exact
https://gedcom.io/terms/v7/CREA exact https://gedcom.io/terms/v7/DATE-exact
https://gedcom.io/terms/v7/HEAD-SOUR-DATA exact https://gedcom.io/terms/v7/DATE-exact
https://gedcom.io/terms/v7/ord-STAT exact https://gedcom.io/terms/v7/DATE-exact
https://gedcom.io/terms/v7/CHAN DATE https://gedcom.io/terms/v7/DATE-exact
https://gedcom.io/terms/v7/CREA DATE https://gedcom.io/terms/v7/DATE-exact
https://gedcom.io/terms/v7/HEAD-SOUR-DATA DATE https://gedcom.io/terms/v7/DATE-exact
https://gedcom.io/terms/v7/ord-STAT DATE https://gedcom.io/terms/v7/DATE-exact
HEAD pseudostructure DATE https://gedcom.io/terms/v7/HEAD-DATE
https://gedcom.io/terms/v7/NO DATE https://gedcom.io/terms/v7/NO-DATE
https://gedcom.io/terms/v7/DATA-EVEN DATE https://gedcom.io/terms/v7/DATA-EVEN-DATE
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/ABBR
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/ABBR

standard tag: ABBR

descriptions:
specification:
- Abbreviation
- A short name of a title, description, or name used for sorting, filing, and
retrieving records.
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/ADDR
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/ADDR

standard tag: ADDR

descriptions:
specification:
- Address
- The location of, or most relevant to, the subject of the superstructure.
See ADDRESS_STRUCTURE for more.
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/ADOP
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/ADOP

standard tag: ADOP

descriptions:
specification:
- Adoption
- An Individual Event. See also INDIVIDUAL_EVENT_STRUCTURE.
- adoption
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/ADOP-FAMC
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/ADOP-FAMC

standard tag: FAMC

descriptions:
specification:
- Family child
- |
The individual or couple that adopted this this individual.
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/ADR1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/ADR1

standard tag: ADR1

descriptions:
specification:
- Address Line 1
- The first line of the address, used for indexing. This structure’s payload
should be a single line of text equal to the first line of the
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/ADR2
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/ADR2

standard tag: ADR2

descriptions:
specification:
- Address Line 2
- The second line of the address, used for indexing. This structure’s payload
should be a single line of text equal to the second line of the
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/ADR3
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/ADR3

standard tag: ADR3

descriptions:
specification:
- Address Line 3
- The third line of the address, used for indexing. This structure’s payload
should be a single line of text equal to the third line of the
Expand Down
4 changes: 3 additions & 1 deletion extracted-files/tags/AFN
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
%YAML 1.2
---
lang: en

type: uri

uri: https://gedcom.io/terms/v7/AFN

descriptions:
specification:
- Ancestral File Number
- |
This URI is defined to support conversion from GEDCOM 5.5.1 to FamilySearch
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/AGE
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/AGE

standard tag: AGE

descriptions:
specification:
- Age at event
- The age of the individual at the time an event occurred, or the age listed
in the document.
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/AGNC
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/AGNC

standard tag: AGNC

descriptions:
specification:
- Responsible agency
- The organization, institution, corporation, person, or other entity that
has responsibility for the associated context. Examples are an employer of
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/ALIA
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/ALIA

standard tag: ALIA

descriptions:
specification:
- Alias
- |
A single individual may have facts distributed across multiple individual
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/ANCI
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/ANCI

standard tag: ANCI

descriptions:
specification:
- Ancestor interest
- Indicates an interest in additional research for ancestors of this
individual. (See also DESI).
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/ANUL
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/ANUL

standard tag: ANUL

descriptions:
specification:
- Annulment
- A Family Event. See also FAMILY_EVENT_STRUCTURE.
- annulment
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/ASSO
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/ASSO

standard tag: ASSO

descriptions:
specification:
- Associates
- A pointer to an associated individual. See ASSOCIATION_STRUCTURE for more.
- |
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/AUTH
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/AUTH

standard tag: AUTH

descriptions:
specification:
- Author
- The person, agency, or entity who created the record. For a published work,
this could be the author, compiler, transcriber, abstractor, or editor. For
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/BAPL
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/BAPL

standard tag: BAPL

descriptions:
specification:
- Baptism, Latter-Day Saint
- A Latter-Day Saint Ordinance. See also LDS_INDIVIDUAL_ORDINANCE.
- baptism
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/BAPM
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/BAPM

standard tag: BAPM

descriptions:
specification:
- Baptism
- An Individual Event. See also INDIVIDUAL_EVENT_STRUCTURE.
- baptism
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/BARM
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/BARM

standard tag: BARM

descriptions:
specification:
- Bar Mitzvah
- An Individual Event. See also INDIVIDUAL_EVENT_STRUCTURE.
- Bar Mitzvah
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/BASM
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/BASM

standard tag: BASM

descriptions:
specification:
- Bas Mitzvah
- An Individual Event. See also INDIVIDUAL_EVENT_STRUCTURE.
- Bas Mitzvah
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/BIRT
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/BIRT

standard tag: BIRT

descriptions:
specification:
- Birth
- An Individual Event. See also INDIVIDUAL_EVENT_STRUCTURE.
- birth
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/BLES
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/BLES

standard tag: BLES

descriptions:
specification:
- Blessing
- An Individual Event. See also INDIVIDUAL_EVENT_STRUCTURE.
- blessing
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/BURI
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/BURI

standard tag: BURI

descriptions:
specification:
- Burial
- An Individual Event. See also INDIVIDUAL_EVENT_STRUCTURE.
- burial
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/CALN
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/CALN

standard tag: CALN

descriptions:
specification:
- Call number
- An identification or reference description used to file and retrieve items
from the holdings of a repository. Despite the word “number” in the name,
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/CAST
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/CAST

standard tag: CAST

descriptions:
specification:
- Caste
- An Individual Attribute. See also INDIVIDUAL_ATTRIBUTE_STRUCTURE.
- caste
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/CAUS
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/CAUS

standard tag: CAUS

descriptions:
specification:
- Cause
- The reasons which precipitated an event. It is often used subordinate to a
death event to show cause of death, such as might be listed on a death
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/CHAN
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/CHAN

standard tag: CHAN

descriptions:
specification:
- Change
- The most recent change to the superstructure. This is metadata about the
structure itself, not data about its subject. See CHANGE_DATE for more.
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/CHIL
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/CHIL

standard tag: CHIL

descriptions:
specification:
- Child
- The child in a family, whether biological, adopted, foster, sealed, or
other relationship.
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/CHR
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/CHR

standard tag: CHR

descriptions:
specification:
- Christening
- An Individual Event. See also INDIVIDUAL_EVENT_STRUCTURE.
- christening
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/CHRA
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/CHRA

standard tag: CHRA

descriptions:
specification:
- Christening, adult
- An Individual Event. See also INDIVIDUAL_EVENT_STRUCTURE.
- adult christening
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/CITY
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/CITY

standard tag: CITY

descriptions:
specification:
- City
- The name of the city used in the address. See ADDRESS_STRUCTURE for more.

Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/CONF
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/CONF

standard tag: CONF

descriptions:
specification:
- Confirmation
- An Individual Event. See also INDIVIDUAL_EVENT_STRUCTURE.
- confirmation
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/CONL
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/CONL

standard tag: CONL

descriptions:
specification:
- Confirmation, Latter-Day Saint
- A Latter-Day Saint Ordinance. See also LDS_INDIVIDUAL_ORDINANCE.
- confirmation
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/COPR
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/COPR

standard tag: COPR

descriptions:
specification:
- Copyright
- A copyright statement, as appropriate for the copyright laws applicable to
this data.
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/CORP
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/CORP

standard tag: CORP

descriptions:
specification:
- Corporate name
- The name of the business, corporation, or person that produced or
commissioned the product.
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/CREA
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/CREA

standard tag: CREA

descriptions:
specification:
- Creation
- The initial creation of the superstructure. This is metadata about the
structure itself, not data about its subject. See CREATION_DATE for more.
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/CREM
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/CREM

standard tag: CREM

descriptions:
specification:
- Cremation
- An Individual Event. See also INDIVIDUAL_EVENT_STRUCTURE.
- cremation
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/CROP
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/CROP

standard tag: CROP

descriptions:
specification:
- Crop
- |
A subregion of an image to display. It is only valid when the
Expand Down
2 changes: 1 addition & 1 deletion extracted-files/tags/CTRY
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ uri: https://gedcom.io/terms/v7/CTRY

standard tag: CTRY

descriptions:
specification:
- Country
- The name of the country that pertains to the associated address. See
ADDRESS_STRUCTURE for more.
Expand Down
Loading

0 comments on commit 2499fd9

Please sign in to comment.