hestiaAI / hestialabs-experiences

HestiaLabs Data Experiences & Digipower Academy
https://digipower.academy
Other
7 stars 1 forks source link

RocketRML: Mapping a key whose value is a nested structure #46

Closed valentinoli closed 2 years ago

valentinoli commented 3 years ago
authors: Valentin Oliver Loftsson <valentin@hestia.ai>

prefixes:
  ex: http://www.example.com/
  schema: http://schema.org/

sources:
  impressions:
    access: ad-impressions.js
    referenceFormulation: jsonpath
    iterator: $.*.ad.adsUserData.adImpressions.impressions[*]

mappings:
  impression:
    sources:
      - impressions
    po:
      - [ex:targetingCriteria, $(matchedTargetingCriteria)]

For this mapping RocketRML returns:

<subject> <http://www.example.com/targetingCriteria> "\"[object Object],[object Object]\"" .

However, RMLMapper (Java implementation) returns:

<subject> <http://www.example.com/targetingCriteria> "{targetingType=Languages, targetingValue=French}".
<subject> <http://www.example.com/targetingCriteria> "{targetingType=Age, targetingValue=35 and up}".
streitl commented 2 years ago

Closed for inactivity

valentinoli commented 2 years ago

This has been documented on the Wiki

alexbfree commented 2 years ago

(ignore that mention, was on wrong ticket)