diff --git a/src/edrn.rdf/edrn/rdf/multipipepredicatehandler.py b/src/edrn.rdf/edrn/rdf/multipipepredicatehandler.py index 39dcbd6..4d5158f 100644 --- a/src/edrn.rdf/edrn/rdf/multipipepredicatehandler.py +++ b/src/edrn.rdf/edrn/rdf/multipipepredicatehandler.py @@ -19,5 +19,9 @@ def __init__(self, context): self.context = context def characterize(self, obj): context = aq_inner(self.context) - rc = [(rdflib.URIRef(context.predicateURI), rdflib.Literal(i.strip())) for i in obj.split('|')] + rc, count = [], 0 + for i in obj.split('|'): + literal = rdflib.Literal(f'{count:04} {i.strip()}') + rc.append((rdflib.URIRef(context.predicateURI), literal)) + count += 1 return rc