@@ -70,12 +70,16 @@ def parse_virtual_columns(self, row_node, atdm_row, table_metadata):
7070 continue
7171 subject = URIRef (UriTemplateUtils .insert_value (virtual_column ['aboutUrl' ], atdm_row , '' ,
7272 table_metadata ['url' ]))
73+
7374 predicate = Namespaces .get_term (virtual_column ['propertyUrl' ])
74- obj = UriTemplateUtils .insert_value (virtual_column ['valueUrl' ], atdm_row , '' , table_metadata ['url' ])
75- obj = CommonProperties .expand_property_if_possible (obj )
76- self .graph .add ((subject , predicate , URIRef (obj )))
77- if self .mode == CONST_STANDARD_MODE :
78- self .graph .add ((row_node , CSVW .describes , subject ))
75+ if predicate :
76+ obj = UriTemplateUtils .insert_value (virtual_column ['valueUrl' ], atdm_row , '' , table_metadata ['url' ])
77+ obj = CommonProperties .expand_property_if_possible (obj )
78+ self .graph .add ((subject , predicate , URIRef (obj )))
79+ if self .mode == CONST_STANDARD_MODE :
80+ self .graph .add ((row_node , CSVW .describes , subject ))
81+ else :
82+ print (f"term { virtual_column ['propertyUrl' ]} not in namespaces" )
7983
8084 def _add_file_metadata (self , metadata , node ):
8185 language = JSONLDUtils .language (self .metadata ['@context' ])
0 commit comments