@@ -818,17 +818,19 @@ def _prefixes_and_aliases(fhandle, identity, alias_dict, prefix_contexts, cache)
818
818
for pid in prefix_ids .split (' ' ):
819
819
if pid in fhandle .groups :
820
820
prefix_groups .append (fhandle .groups [pid ])
821
+ elif pid in fhandle .variables :
822
+ prefix_groups .append (fhandle .variables [pid ])
821
823
elif pid .startswith ('http://' ) or pid .startswith ('https://' ):
822
824
prefix_urls .append (pid )
823
825
prefixes = {}
824
826
825
827
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 )
832
834
# else:
833
835
# for k in fhandle.ncattrs():
834
836
# if k.endswith('__'):
@@ -1085,6 +1087,8 @@ def _load_netcdf_group_vars(fhandle, agroup, root_container, baseuri, identity_p
1085
1087
1086
1088
response = cache ['https://www.opengis.net/def/binary-array-ld' ]
1087
1089
reference_graph .parse (data = response .text , format = 'n3' )
1090
+ #reference_graph.parse(data=response.text, format='turtle')
1091
+
1088
1092
1089
1093
# # reference_graph.parse('https://www.opengis.net/def/binary-array-ld')
1090
1094
# qstr = ('prefix bald: <https://www.opengis.net/def/binary-array-ld/> '
0 commit comments