@@ -84,6 +84,23 @@ class HXLQuickMeta:
8484 "interfaces that could work to export HXL files to "
8585 "other formats." ))
8686
87+ # TODO: implement draft of --hxlmeta-rebuild/--hxlmeta-path
88+ # parser.add_argument(
89+ # '--hxlmeta-rebuild',
90+ # help='Re-build local database of Vocabularies/Taxonomies/(...)',
91+ # # metavar='quickhashtag',
92+ # default=None,
93+ # nargs='?'
94+ # )
95+
96+ # parser.add_argument(
97+ # '--hxlmeta-path',
98+ # help='Explicitly define the path for HXLMeta local database',
99+ # # metavar='quickhashtag',
100+ # default=None,
101+ # nargs='?'
102+ # )
103+
87104 parser .add_argument (
88105 '--hxlquickmeta-hashtag' ,
89106 help = 'Output debug information for just one hashtag (inline)' ,
@@ -788,7 +805,8 @@ class HXLMeta:
788805 self .local_hxl_file = local_hxl_file
789806 self .text_headers = None
790807 self .hxl_headers = None
791- self .data_columns = None
808+ self .HXLMetaType = HXLMetaType ()
809+ # self.hxlmeta
792810
793811 def _parse_heading (self , heading ):
794812 # @see https://stackoverflow.com/questions/8270092/
@@ -828,12 +846,20 @@ class HXLMeta:
828846
829847 # hxlquickmeta --hxlquickmeta-hashtag="#adm2+code"
830848 # --hxlquickmeta-value="BR3106200"
831- def get_hashtag_info (self , hashtag , value ):
832- print ('hashtag' , hashtag )
833- print ('hashtag._parse_heading' , self ._parse_heading (hashtag ))
834- print ('hashtag.is_hashtag_base_valid' ,
849+ def get_hashtag_info (self , hashtag , value = None ):
850+ print ('> get_hashtag_info' )
851+ print ('>> hashtag:' , hashtag )
852+ print ('>>> HXLMeta._parse_heading:' , self ._parse_heading (hashtag ))
853+ print ('>>> HXLMeta.is_hashtag_base_valid:' ,
835854 self .is_hashtag_base_valid (hashtag ))
836- print ('value' , value )
855+
856+ print ('>> value:' , value )
857+ print ('>>> libhxl_is_empty' , self .HXLMetaType .libhxl_is_empty (value ))
858+ print ('>>> libhxl_is_date' , self .HXLMetaType .libhxl_is_date (value ))
859+ print ('>>> libhxl_is_number' , self .HXLMetaType .libhxl_is_number (value ))
860+ print ('>>> libhxl_is_string' , self .HXLMetaType .libhxl_is_string (value ))
861+ print ('>>> libhxl_is_truthy' , self .HXLMetaType .libhxl_is_truthy (value ))
862+ print ('>>> libhxl_typeof' , self .HXLMetaType .libhxl_typeof (value ))
837863
838864 def is_hashtag_base_valid (self , term , strict = True ):
839865 if strict :
0 commit comments