fix a bug when property is defined in prop_file
@@ -85,7 +85,7 @@ class TripleGenerator:
A node can be Qxxx or Pxxx, return the proper entity.
'''
if node in self.prop_types:
- entity = WDProperty(node, self.datatype_mapping[self.prop_types[node]])
+ entity = WDProperty(node, self.prop_types[node])
else:
entity = WDItem(TripleGenerator.replace_illegal_string(node))
return entity
