Skip to content

Create transformers to support subextractors #35

@andimou

Description

@andimou

Problem

Sometimes we get already linked data in tdt/input. A URI towards another resource or a URL to a file giving more explanation can be handy to include in our harvester as well. Some resources in these files are structured according to another extractor: for instance: a CSV file referencing an ICAL format.

Solution

We should add our first transformer to our ETML workflow. Now the configuration might look like this:

{ "job" : {
   "extract" : {...},
   "transform" : [
       {
          "type" : "subextractor",
          "field" : "icalurl", //this is the field name in which a URL towards an ical file can be found
          "extract" : {
              "type" : "ICAL"
          } 
       }

   ],
   "map" : {...},
   "load" : {...}
}
}

The ICAL will then be put inside the hierarchy and can be mapped as well.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions