jar398 / plotter

Utilities for updating an EOL graphdb
Other
1 stars 1 forks source link

Terms can have multiple parent Terms. #2

Closed jar398 closed 3 years ago

jar398 commented 3 years ago

traits dumping assumes Terms form a tree. This seems to not be the case.

uri,name,type,parent_uri
http://alaska.fws.gov/,Us Fws Alaska Region,value,https://eol.org/schema/terms/western_north_america
http://alaska.fws.gov/,Us Fws Alaska Region,value,http://www.wikidata.org/entity/Q578170
http://alaska.fws.gov/,Us Fws Alaska Region,value,http://www.geonames.org/5879092
jhammock commented 3 years ago

Indeed it is not! Predicates and object terms can both have multiple parents.

jar398 commented 3 years ago

Fixed by adding another csv file with rows of the form [term uri, term parent uri] to the traits dump.