diff --git a/cromulent/vocab.py b/cromulent/vocab.py index 2a710dd..be12a27 100644 --- a/cromulent/vocab.py +++ b/cromulent/vocab.py @@ -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 diff --git a/setup.py b/setup.py index 25312a8..d6312c6 100644 --- a/setup.py +++ b/setup.py @@ -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 = 'robert.sanderson@yale.edu',