Skip to content

Commit

Permalink
Add original data to RDF representation
Browse files Browse the repository at this point in the history
  • Loading branch information
tijmenbaarda committed Aug 12, 2024
1 parent 07ebebf commit 8009dde
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions edpop_explorer/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ def to_graph(self) -> Graph:
EDPOPREC.publicURL,
Literal(self.link)
))
original_data = self.get_data_dict()
if original_data is not None:
g.add((
self.subject_node,
EDPOPREC.originalData,
Literal(original_data, datatype=RDF.JSON)
))

# Put all fields from self.FIELDS in the graph by accessing
# the associated attributes or properties. If they contain a
Expand Down

0 comments on commit 8009dde

Please sign in to comment.