kg-construct / rml-questions

The place for your RML questions and examples
2 stars 0 forks source link

Runtime generated UUID in subjectMap #49

Closed MaFi2000 closed 1 year ago

MaFi2000 commented 1 year ago

Discussed in https://github.com/kg-construct/rml-questions/discussions/48

Originally posted by **MaFi2000** August 23, 2023 hello, I want to generate a uuid based IRI as subject and to add my predicateObjects to it. Problem is that every triples has different subjects even if those are the same instances. Here is my mapping: ` <#testuuid> rml:logicalSource <#LogicalSource2> ; rr:subjectMap [ fnml:execution <#GetUUID> ; rr:termType rr:BlankNode; ]; rr:predicateObjectMap [ rr:predicate ex:rmsidentifier; rr:objectMap [ rml:reference "first_name"; ]; ]; rr:predicateObjectMap [ rr:predicate ex:last_name; rr:objectMap [ rml:reference "last_name"; ]; ]. <#GetUUID> fnml:function ; . ` That is my output `_:b4d4e7a0-5746-4be4-ba86-67b6b4c15a21 "Turcotte" . _:7346acfd-908e-42f6-aa42-7b63605cfe80 "Parisian" . _:32dadd9e-24a1-4a76-8213-8a180add4171 "Daugherty" . _:fb6cd890-8ae4-4412-beb9-1efb1eed4233 "Edwin" . _:f1139dc5-ce6b-4645-a0cf-264f3820ef8f "Kelley" . _:bcea650f-3547-448d-a31e-eb9847c1bc3e "Jewel" .` That is the output I want to get/expect to get: `_:bcea650f-3547-448d-a31e-eb9847c1bc3e "Turcotte" . _:f1139dc5-ce6b-4645-a0cf-264f3820ef8f "Parisian" . _:fb6cd890-8ae4-4412-beb9-1efb1eed4233 "Daugherty" . _:fb6cd890-8ae4-4412-beb9-1efb1eed4233 "Edwin" . _:f1139dc5-ce6b-4645-a0cf-264f3820ef8f "Kelley" . _:bcea650f-3547-448d-a31e-eb9847c1bc3e "Jewel" .`
dachafra commented 1 year ago

Hi, I think you are using Morph-KGC right? As I told you in the discussion, this seems a problem of the engine, so I would suggest to open an issue in its repository, not here that are questions more related with the mapping language