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

specification of dictionaries #2

Open
petermr opened this issue Nov 23, 2020 · 3 comments
Open

specification of dictionaries #2

petermr opened this issue Nov 23, 2020 · 3 comments

Comments

@petermr
Copy link
Owner

petermr commented Nov 23, 2020

No description provided.

@petermr
Copy link
Owner Author

petermr commented Nov 23, 2020

dictionary specification

dictionary name

  • all names of dictionaries should be lowercase ([a-z][a-z_]+)
  • the filename should be <dictionary_name>.xml
  • the root of the dictionary (dictionary) must have a title attribute of dictionary_name,

Examples

  • disease
    *test_trace

Not allowed

  • disease2019
  • testTrace

@petermr
Copy link
Owner Author

petermr commented Nov 23, 2020

dictionary elements

dictionary

  • this must be the single root element of the dictionary

dictionary attributes

  • title. equal to dictionary_name
  • date - latest date of editing. Should be created by machine

child elements

metadata

Descriptions of how the dictionary was created or edited, notes on usage, etc.
Mandatory, repeatable.

desc

Deprecated. replace by metadata

entry

Mandatory, repeatable.

entry

  • describes a single term in the dictionary

attributes

term

Formal term (in EN) for the entry . [0-9a-zA-Z_-]. mandatory.

description

wikidataID

[(P|Q)\d+]

Example

Q1128437

wikidataURL

Normally the (single) resolvable URL

example

https://www.wikidata.org/wiki/Q1128437

wikipediaPage

The page of the EN-language wikipedia article (i.e. without http address). Note this will NOT have spaces (usually escaped with '_') and may have URL-encoded characters.

example

Contact_tracing

wikipediaURL

The address/URL of the EN-language wikipedia article

example

https://en.wikipedia.org/wiki/Contact_tracing

name

id

child elements

synonym

description

see_also

description

description of the term/entry (normally from Wikidata)

attributes

xml:lang

description in alternative languages

synonym

synonym of the term/entry (often from Wikidata)

xml:lang

description in alternative languages

related

Allowance for linking to related information, e.g. countrys for organizations. Not yet fully specified.

notes

  • the language variants must be represented as child elements, not attributes.

@petermr
Copy link
Owner Author

petermr commented Nov 23, 2020

WE WILL CONTINUE DETAILED PLANNING ON https://github.com/petermr/dictionary/wiki/ . Please use this Issue for general concerns and comments.

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

1 participant