Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

[KB] Update to API (UNP Usecase) #400

Open
MarcioMateus opened this issue Oct 7, 2019 · 3 comments
Open

[KB] Update to API (UNP Usecase) #400

MarcioMateus opened this issue Oct 7, 2019 · 3 comments
Assignees

Comments

@MarcioMateus
Copy link
Contributor

The API call /api/artifacts/storeIoTCataloque/ was good for the initial testing of the KB capabilities, however the integration with the Use Case would work better if it was replaced by the followed methods:

  • Insert/update new project/product description, that would add new products or modify the dependencies list of a product. The parameters that this method should require are: ID of the product and a list with the IDs of the dependencies

  • Delete a project/product description given a specific product ID

Also it would be a great enhancement if the calculation of the CROSSREC distance map could be partial, focusing only on the modifications since the last calculation (new, updated or deleted products).

@jdirocco
Copy link
Member

jdirocco commented Oct 7, 2019

Hi @MarcioMateus ,
I'm working on it. My 2 cents:
1 CrossRec doesn't allow to compute a partial distance map because it relies on graph similarities.
2 I can provide 2 new resources to add and delete artifacts.
3 I can implement a scheduled job to compute CrossRec distance matrix as I did in the dev branch.
What do you think about? Is it ok?

@MarcioMateus
Copy link
Contributor Author

Hi @md2manoppello .

Thanks.

Reading again my description I thing that it may lead to some confusion. What I meant as "calculation of partial map" not for the calculation of the "base" distance matrix, but when we update or add new products just calculate the parts of the matrix affected by the updates and not calculate everything from scratch. This is to try to reduce the time needed to update the entire distance graph.

About the

scheduled job to compute CrossRec distance matrix

I would say that it depends. If during the update of the distance matrix we cannot query for "related products" (i.e. use /api/recommendation/similar/p/{id}/m/{sim_method}/n/{num}), then we would like to be able to choose when the matrix will be computed.

@jdirocco
Copy link
Member

jdirocco commented Oct 7, 2019

I well understood your needs.
No, I'm sorry. CROSSRec doesn't allow to partially compute the distance matrix because it doesn't calculate the difference one by one. It is an agglomerative similarity function. For this reason, I suggested a scheduled job.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants