From aba5c802d238e7f88f85f44f76d6ec6c0f09da34 Mon Sep 17 00:00:00 2001 From: stefano-marchesin <34963894+stefano-marchesin@users.noreply.github.com> Date: Sun, 29 Jan 2023 11:55:30 +0100 Subject: [PATCH] Update rdf_processing.py Fixed non-string report IDs in create_graph --- sket/rdf_proc/rdf_processing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sket/rdf_proc/rdf_processing.py b/sket/rdf_proc/rdf_processing.py index e6ba651..195ae60 100644 --- a/sket/rdf_proc/rdf_processing.py +++ b/sket/rdf_proc/rdf_processing.py @@ -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 @@ -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