Page tree
Skip to end of metadata
Go to start of metadata

Reimplementation of the Community Mashup - started beginning of May 2021

Sourcecode can be found at:

https://athene2.informatik.unibw-muenchen.de/MASH/communitymashup2

Data model

v1:

Edit at: https://app.diagrams.net/#DCommunityMashup2%20Model

Basic Implementation

Server

TBD

Client

TBD

DataSetImpl

Stores Item objects in "protected Map<Long,Item> items" - i.e. indexed by the id of the item - ids are Long values!

  • getItems()
  • getItemsByType(String type)
  • getItemById(Long id)
  • add(Item item) - add the item to the DataSet - after checking for duplicates (equal) items - return new item or merged item
  • addForce(Item item) - add the item to the DataSet without looking for duplicates or merging

For creating new Item objects, the class DataFactory should be used:

  • createItem(String type)
  • createItem(String type, DataSet dataSet) - just set DataSet in Item - do NOT add to DataSet yet

DateSetImplDB (extends DataSetImpl)

Stores Item objects additionally in relational database - TBD tables

Item

Relevant functions for merging in DataSet

  • getTypeString()
  • getAttributeTNames()
  • getRelationshipTypes()
  • isEqualItem(Item item) - check if items are equal (should be merged)
  • update(Item item) - merge item to the current one

Todos

TBD

  • No labels