polifonia-project / sonar2021_demo

This repository is created for the documentation of the Polifonia demo that is going to be presented to SONAR2021
https://polifonia-project.github.io/sonar2021_demo/
2 stars 0 forks source link

UI: query RDF remote source to get data #27

Closed ccolonna closed 2 years ago

ccolonna commented 2 years ago

Async call return data. But we need to find current way to propagate them to component.

In SongService SparqlClient returns a Promise<Song[]> running SPARQL queries, we need to expose this data to components as BehaviorSubject<Song[]> and this components subscribe to them. The call to API should be ideally run once.

As this is not a simple task and we haven't live SPARQL endpoint to query yet, it's probably better to import data synchronously from static jsonld file at the moment.

ccolonna commented 2 years ago

As discussed with @JaseMK and @phivk we won't get data dynamically from remote source.