kg-construct / rml-fnml

RML-FNML: Transformation functions within RML
https://w3id.org/rml/fnml/spec
Creative Commons Attribution 4.0 International
6 stars 2 forks source link

Specify how to override the termtype of a fnml:FunctionMap result #5

Closed bjdmeest closed 2 years ago

bjdmeest commented 3 years ago

A fnml:FunctionMap always returns an RDF term [[rdf-concepts]] or list thereof, thus already has things such as termtype, datatype, etc. defined. We probably want to allow to override these datatypes within an RML mapping. If so, do we need to specify how to override these datatypes? Are there standardized RDF coercion rules? Is this related to https://www.w3.org/TR/r2rml/#natural-mapping?

dachafra commented 3 years ago

I was thinking exactly about the relation between SQL and the mapping in R2RML as you mentioned. Could be a way to solve it following a similar approach

bjdmeest commented 3 years ago

https://www.w3.org/TR/json-ld11-api/#data-round-tripping might also be relevant

samiscoding commented 3 years ago

Do we already have any specifications in the case of having a list of output values? I think it falls more into the behavior of the engine but still makes sense to have the definition of the correct behavior.

samiscoding commented 3 years ago

Already got my answer! :D It's still an open issue in mapping-challenges. I think makes sense to specifically have an issue on that for rml-fno

andimou commented 3 years ago

just to be on the same page, you mean this challeng @samiscoding right?

https://github.com/kg-construct/mapping-challenges/tree/main/challenges/multivalue-references

samiscoding commented 3 years ago

just to be on the same page, you mean this challeng @samiscoding right?

https://github.com/kg-construct/mapping-challenges/tree/main/challenges/multivalue-references

Yes, but more specifically this challenge: https://github.com/kg-construct/mapping-challenges/tree/main/challenges/process-multivalue-reference

bjdmeest commented 2 years ago

Given the text at https://kg-construct.github.io/fnml-spec/#fnml-outputtermmap , I close this comment with commit 6b412bc8cecc91e2c97728bda8af076a0d77d02e : everything not specific to the Output Term map is deferred to other parts of the spec.