@@ -818,17 +818,19 @@ def _prefixes_and_aliases(fhandle, identity, alias_dict, prefix_contexts, cache)
818818 for pid in prefix_ids .split (' ' ):
819819 if pid in fhandle .groups :
820820 prefix_groups .append (fhandle .groups [pid ])
821+ elif pid in fhandle .variables :
822+ prefix_groups .append (fhandle .variables [pid ])
821823 elif pid .startswith ('http://' ) or pid .startswith ('https://' ):
822824 prefix_urls .append (pid )
823825 prefixes = {}
824826
825827 skipped_variables = []
826- for prefix_group in prefix_groups :
827- if prefix_group != {}:
828- prefixes = (dict ([(prefix , getattr (prefix_group , prefix )) for
829- prefix in prefix_group .ncattrs () if prefix .endswith ('__' )]))
830- if isinstance (prefix_group , netCDF4 ._netCDF4 .Variable ):
831- skipped_variables .append (prefix_var .name )
828+ for prefix_obj in prefix_groups :
829+ if prefix_obj != {}:
830+ prefixes = (dict ([(prefix , getattr (prefix_obj , prefix )) for
831+ prefix in prefix_obj .ncattrs () if prefix .endswith ('__' )]))
832+ if isinstance (prefix_obj , netCDF4 ._netCDF4 .Variable ):
833+ skipped_variables .append (prefix_obj .name )
832834 # else:
833835 # for k in fhandle.ncattrs():
834836 # if k.endswith('__'):
@@ -1085,6 +1087,8 @@ def _load_netcdf_group_vars(fhandle, agroup, root_container, baseuri, identity_p
10851087
10861088 response = cache ['https://www.opengis.net/def/binary-array-ld' ]
10871089 reference_graph .parse (data = response .text , format = 'n3' )
1090+ #reference_graph.parse(data=response.text, format='turtle')
1091+
10881092
10891093 # # reference_graph.parse('https://www.opengis.net/def/binary-array-ld')
10901094 # qstr = ('prefix bald: <https://www.opengis.net/def/binary-array-ld/> '
0 commit comments