Skip to content

Commit

Permalink
Merge pull request #76 from oeg-upm/datatye-constant
Browse files Browse the repository at this point in the history
solving constant problem
  • Loading branch information
dachafra authored Dec 20, 2023
2 parents e8f6ab4 + 304feaa commit a5c48be
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/yatter/predicateobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,6 @@ def add_predicate_object(data, mapping, predicate_object, mapping_format=RML_URI
object_map = generate_rml_termmap(R2RML_OBJECT, R2RML_OBJECT_CLASS,
object_value, "\t\t\t", mapping_format)

if object_value not in prefixes and ":" not in object_value and R2RML_CONSTANT in object_map:
object_map = object_map.replace(object_value, f"\"{object_value}\"")

template += object_map
if len(om) == 2:
types = check_type(om[1])
Expand Down

0 comments on commit a5c48be

Please sign in to comment.