Skip to content

Commit 847cee9

Browse files
committed
adding default prefixes in bald lib
1 parent fcce72f commit 847cee9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/bald/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,13 @@ def load_netcdf(afilepath, uri=None):
558558
if k.endswith('__'):
559559
prefixes[k] = getattr(fhandle, k)
560560

561+
# check that default set is handled, i.e. bald__ and rdf__
562+
if 'bald__' not in prefixes:
563+
prefixes['bald__'] = "http://binary-array-ld.net/latest/"
564+
565+
if 'rdf__' not in prefixes:
566+
prefixes['rdf__'] = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
567+
561568
#print(prefixes)
562569

563570
alias_var_name = None

0 commit comments

Comments
 (0)