TMCharacters
logical source:
  source: https://raw.githubusercontent.com/fpriyatna/mapping-translator/master/examples/starwars/characters.csv
subject map:
  template: http://starwars.mappingpedia.linkeddata.es/character/{id}
  class: Character
predicate object map:
  predicate: name
  object map:
    template: {fname} {lname}
predicate object map:
  predicate: appearsIn
  object map:
    parent triples map: TMAppears
    join condition:
      child:
        reference: id
      parent:
        reference: charid
predicate object map:
  predicate: type
  object map:
    parent triples map: TMTypes
    join condition:
      child:
        reference: typeid
      parent:
        reference: id
predicate object map:
  predicate: friends
  object map:
    parent triples map: TMFriendship
    join condition:
      child:
        reference: id
      parent:
        reference: id

TMTypes
logical source:
  source: https://raw.githubusercontent.com/fpriyatna/mapping-translator/master/examples/starwars/types.csv
subject map:
  template: http://starwars.mappingpedia.linkeddata.es/type/{id}
  class: CharacterType
predicate object map:
  predicate: name
  object map:
    reference: name

TMEpisodes
logical source:
  source: https://raw.githubusercontent.com/fpriyatna/mapping-translator/master/examples/starwars/episodes.csv
subject map:
  template: http://starwars.mappingpedia.linkeddata.es/episode/{id}
  class: Episode
predicate object map:
  predicate: code
  object map:
    reference: code

TMAppears
logical source:
  source: https://raw.githubusercontent.com/fpriyatna/mapping-translator/master/examples/starwars/appears.csv
subject map:
  template: http://starwars.mappingpedia.linkeddata.es/movie/{charid}/{episodeid}
  class: Appears
predicate object map:
  predicate: episode
  object map:
    parent triples map: TMEpisodes
    join condition:
      child:
        reference: episodeid
      parent:
        reference: id

TMFriendship
logical source:
  source: https://raw.githubusercontent.com/fpriyatna/mapping-translator/master/examples/starwars/friends.csv
subject map:
  template: http://starwars.mappingpedia.linkeddata.es/friends/{id}/{fid}
  class: Friendship
predicate object map:
  predicate: charid
  object map:
    reference: id
predicate object map:
  predicate: friendId
  object map:
    reference: fid

TMHeroes
logical source:
  source: https://raw.githubusercontent.com/fpriyatna/mapping-translator/master/examples/starwars/heroes.csv
subject map:
  template: http://starwars.mappingpedia.linkeddata.es/heroes/{episodeid}/{charid}
  class: Heroes
predicate object map:
  predicate: episode
  object map:
    parent triples map: TMEpisodes
    join condition:
      child:
        reference: episodeid
      parent:
        reference: id
predicate object map:
  predicate: hero
  object map:
    parent triples map: TMCharacters
    join condition:
      child:
        reference: charid
      parent:
        reference: id