Skip to content

Commit

Permalink
Update rdf_processing.py
Browse files Browse the repository at this point in the history
Fixed non-string report IDs in create_graph
  • Loading branch information
stefano-marchesin authored Jan 29, 2023
1 parent bde7648 commit aba5c80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sket/rdf_proc/rdf_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ def create_graph(self, rid, report_data, report_concepts, onto_proc, use_case, d
struct_graph = {}

# generate report id
hrid = 'r_' + rid
hrid = 'r_' + str(rid)
struct_graph['ReportID'] = hrid

# create report data-related triples
Expand Down Expand Up @@ -651,7 +651,7 @@ def create_graph(self, rid, report_data, report_concepts, onto_proc, use_case, d
struct_graph['patient'] = {}

# generate patient id
pid = 'p_' + rid
pid = 'p_' + str(rid)
# build the IRI for the patient
patient = self.base_iri + 'resource/patient/' + pid
struct_graph['patient']['PatientURL'] = patient
Expand Down

0 comments on commit aba5c80

Please sign in to comment.