Skip to content

Commit

Permalink
1.0.1 -- add notation to Language by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Sanderson committed Feb 19, 2025
1 parent 4176a2d commit 2cb9de8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions cromulent/vocab.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ def register_instance(name, data):
t = parent("http://vocab.getty.edu/%s/%s" % (vocab, id))
t._label = label
instances[name] = t

# Languages have a code (e.g. 'en') that goes in `notation`
if 'code' in data:
t.notation = data['code']

return t


Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
package_data = {
'cromulent': ['data/crm_vocab.tsv', 'data/overrides.json',
'data/key_order.json', 'data/linked-art.json',
'data/cidoc-extension.json', 'data/crm-profile.json']
'data/cidoc-extension.json', 'data/crm-profile.json',
'data/vocab_classes.json', 'data/vocab_instances.json']
},
test_suite="tests",
version = '0.17.2',
version = '1.0.1',
description = 'A library for mapping CIDOC-CRM (v7.1) classes to Python objects',
author = 'Rob Sanderson',
author_email = '[email protected]',
Expand Down

0 comments on commit 2cb9de8

Please sign in to comment.