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

sources:
  source-people: ['people.csv~csv']
  source-friends: ['friends.csv~csv']

targets:
  target-people: ['/data/out/people.ttl', 'turtle']
  target-people-gz: ['/data/out/people-gz.ttl.gz', 'turtle', 'gzip']
  target-web:
    type: directhttprequest
    access: http://localhost:3000/people
    serialization: turtle

mappings:
  people:
    sources:
      - source-people
    s:
      value: ex:$(person_id)
      targets:
        - target-people
        - target-people-gz
        - target-web
    po:
      - [a, schema:Person]
      - [schema:givenName, $(firstname)]
      - [schema:familyName, $(lastname)]

  friends:
    sources:
      - source-friends
    s:
      value: ex:$(id-person)
      targets:
        - target-people
        - target-people-gz
        - target-web
    po:
      - [e:hasFriend, ex:$(id-friend)]
