DigitalCommons / open-data-and-maps

Deprecated: Implementation of Linked Open Data by the Solidarity Economy Association
6 stars 1 forks source link

Display UK DotCoop data and Co-opsUK data merging results when co-ops occur in both datasets #178

Closed ColmMassey closed 4 years ago

ColmMassey commented 4 years ago

Something like this https://sketch.cloud/s/75lep/a/94nKMM/play

ColmMassey commented 4 years ago

As of the morning of 12/12 we can load dotcoop (12/04/2019), or co-opsuk(q3/2019) or both. Looking closely at the Edinburgh Bicycle co-op (in Edinburgh) I'm seeing the following..

This looks exactly as I would expect. :-)

ColmMassey commented 4 years ago

If I switch to just using the DotCo-op data it still presents to icons for Edinburgh Bicycle co-op in Edinburgh. The data is identical. Any ideas why this might be the case?

ColmMassey commented 4 years ago

Toggling back to the co-ops-uk data set, I can't find the Edinburgh Bicycle co-op at all?

sunnydean commented 4 years ago

To merge the data we first take the duplicated ones between each table and merge them. Then we take the entries that do not contain a sameas predicate from one table. Then we take the entries that do not contain a sameas predicate from the other table.

We are hard-coding the merge currently and have not made it generic (i.e. you can merge only coops uk and dotcoop datasets). We also have hard-coded the way the merging works, we are currently taking the following fields from the tables:

coopsuk

dotcoop

merged results