Skip to content
Snippets Groups Projects
Commit ddf7c2ac authored by Philipp Schneider's avatar Philipp Schneider
Browse files

Add if clause to integrate dhoh:Multiple

parent c8ec787b
No related branches found
No related tags found
No related merge requests found
......@@ -203,7 +203,10 @@ def add_layer(layer_number, layer_content, field_node, previous_layer_node=None,
g.add((charge_node, RDF.type, OWL.NamedIndividual))
if charge + '_Num' in df_tblBranch.columns and not pd.isnull(row[charge + '_Num']):
g.add((charge_node, dho_n.hasNumber, Literal(int(row[charge + '_Num']))))
if row[charge + '_Num'] == 'Multiple':
g.add((charge_node, dho_n.hasNumber, dho_n.Multiple))
else:
g.add((charge_node, dho_n.hasNumber, Literal(int(row[charge + '_Num']))))
# Add charge pattern; if no pattern is specified, add Pattern of type dhoh:Plain
pattern_node = URIRef(dho_blazon_n + str(uuid.uuid4()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment