@@ -189,6 +189,7 @@ def build_graph_and_post(reginfo_obj, regitems_obj,
189
189
"notation" : 'reg' ,
190
190
"note" : 'skos' ,
191
191
"altLabel" : 'skos' ,
192
+ "hiddenLabel" : 'skos' ,
192
193
"label" : 'rdfs' ,
193
194
}
194
195
@@ -378,8 +379,10 @@ def get_register_graph(register_id, register_info, register_items, nsMgr, prefix
378
379
379
380
#iterate over the fields in the register
380
381
for key in item :
382
+ if key == None :
383
+ continue
381
384
#and create kvp's for any header
382
- if key != 'id' and key != 'broader' and key != 'altLabel' :
385
+ if key != 'id' and key != 'broader' and key != 'altLabel' and key != 'hiddenLabel' :
383
386
# get prefix
384
387
currPrefix = ns_prefix_lookup [key ]
385
388
currNs = prefix_idx [currPrefix ]
@@ -399,6 +402,13 @@ def get_register_graph(register_id, register_info, register_items, nsMgr, prefix
399
402
print ("AltLabel: " + v )
400
403
g .add ((concept , SKOS .altLabel , Literal (v )))
401
404
405
+ if key == 'hiddenLabel' :
406
+ arrValues = processMultilineCell (item [key ])
407
+ if arrValues is not None :
408
+ for v in arrValues :
409
+ print ("HiddenLabel: " + v )
410
+ g .add ((concept , SKOS .hiddenLabel , Literal (v )))
411
+
402
412
403
413
if key == 'description' :
404
414
g .add ((concept , SKOS .definition , Literal (item [key ])))
@@ -440,8 +450,9 @@ def get_register_graph(register_id, register_info, register_items, nsMgr, prefix
440
450
return g
441
451
442
452
def validate_url (urlstring ):
443
- if urlstring .startswith ("http" ):
444
- return validators .url (urlstring )
453
+ curr = str (urlstring )
454
+ if curr .startswith ("http" ):
455
+ return validators .url (curr )
445
456
return False
446
457
447
458
def create_concept_with_id (id , graph , prefix_idx ):
0 commit comments