Skip to content

Commit

Permalink
fixed default about url or columns
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hanke committed Jun 11, 2024
1 parent 03cb63d commit c909e23
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion csvw_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ def add_table_data(self, g: Graph) -> Graph:

if CSVW.aboutUrl in column_data.keys():
aboutUrl = column_data[CSVW.aboutUrl]
print("about url:{}".format(aboutUrl))
g.add(
(
values_node,
Expand All @@ -327,7 +328,11 @@ def add_table_data(self, g: Graph) -> Graph:
else:
name = column_data[CSVW.name]
g.add(
(values_node, URIRef(name, base=self.base_url), value_node)
(
values_node,
URIRef("{}-{}".format(table, name)),
value_node,
)
)
return g
# self.atdm, self.metadata =converter.convert_to_atdm('standard')
Expand Down

0 comments on commit c909e23

Please sign in to comment.