Skip to content

Profiles

A Pipelines instance can be configured to harvest pipelines with various profiles. A profile has to contain primaryTypes and supportiveTypes, which cover the types of resources to harvest from the source.

Configuration

An object profiles containing key-value pairs of profiles, each with a primaryTypes and supportiveTypes array containing resource types

profiles: {
  tourism:  {
    primaryTypes: [ 
      'https://odta.io/voc/Trail',
      'http://schema.org/Organization',
      'http://schema.org/Event',
      'http://schema.org/LodgingBusiness',
      'http://schema.org/FoodEstablishment',
      'http://schema.org/Place',
      'http://schema.org/Store',
      'http://schema.org/Trip',
      'http://schema.org/Landform',
      'http://www.wikidata.org/entity/Q283202',
    ],
    supportiveTypes: [
      'http://schema.org/ImageObject',
      'http://schema.org/GeoShape',
    ]
  },
  certificates: {
    primaryTypes: [ 
        'http://schema.org/EducationalOccupationalCredential',
    ],
    supportiveTypes: [
    ]
  },
}

A pipeline that utilizes the tourism profile, then simply states it in its merge transform, like so

{
  "type": "merge",
  "args": {
    "name": "Example",
    "profile": "tourism"
  }
}