Commit 4fcdaba73c6095f4cf68166ba7ec3b5e2a3f6408

Authored by Barry Norton
1 parent 691364eaaa
Exists in master

Fixed country->area change in artist

Showing 1 changed file with 4 additions and 4 deletions

mappings/artist.ttl View file @ 4fcdaba
... ... @@ -87,15 +87,15 @@
87 87 [rr:predicate foaf:gender ;
88 88 rr:objectMap [rr:column "gender"]] .
89 89  
90   -lb:artist_country a rr:TriplesMap ;
  90 +lb:artist_area a rr:TriplesMap ;
91 91 rr:logicalTable[rr:sqlQuery
92   - """SELECT artist.gid, country.iso_code
  92 + """SELECT artist.gid, area.gid AS area
93 93 FROM artist
94   - INNER JOIN country ON artist.country = country.id"""] ;
  94 + INNER JOIN area ON artist.area = area.id"""] ;
95 95 rr:subjectMap lb:sm_artist ;
96 96 rr:predicateObjectMap
97 97 [rr:predicate foaf:based_near ;
98   - rr:objectMap [rr:template "http://ontologi.es/place/{iso_code}" ;
  98 + rr:objectMap [rr:template "http://musicbrainz.org/area/{area}#_" ;
99 99 rr:termType rr:IRI]] .
100 100  
101 101 lb:artist_credit_release_group a rr:TriplesMap ;