Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

artsdata-planet-ville-de-laval: Add event location placeholder #3

Open
1 of 2 tasks
saumier opened this issue May 8, 2024 · 2 comments
Open
1 of 2 tasks

artsdata-planet-ville-de-laval: Add event location placeholder #3

saumier opened this issue May 8, 2024 · 2 comments

Comments

@saumier
Copy link
Member

saumier commented May 8, 2024

User Story

As an admin of the Signé Laval website, I review and publish events from the city of Laval coming from Données Quebec data dump. The events in the Données Quebec data dump are often missing a place. This prevents the event from getting loaded into Footlight CMS. I would like the events to load into Footlight CMS so I can fix the location and other info during my review so I can then publish the event.

Proposed solution

In the data pipeline that loads the event data dump from Données Quebec, the events missing a location should have the following location Placeholder added.
https://cms.footlight.io/dashboard/63457978637093005071a053/places/663b8d6f0796c300645e2ab9

https://api.footlight.io/places/663b8d6f0796c300645e2ab9

The challenge is to allow the event to pass through Artsdata and into CMS, but WITOUT minting the place with a K-number.

  • Gregory to modify sparql to allow places to not have Artsdata K-number like this event
  • Check if the aggregator can load the event with a location sameAs URI like https://api.footlight.io/places/663b8d6f0796c300645e2ab9. The place already exists in CMS with a CMS URI instead of an Artsdata URI, so the aggregator should not call back Artsdata to try and create the place.

OTHERWISE a new sparql to load place data using an external URI can be created (and used for all loads from a source without needing to create place K-numbers)

Test Case

Pick an event in the Données Quebec event data dump that is missing a place. Load the data from Données Quebec, and check in Artsdata if the Placeholder was added. Then load into Footlight CMS in staging and check that the event loaded.

@saumier saumier added this to Artsdata May 8, 2024
@saumier saumier converted this from a draft issue May 8, 2024
@saumier saumier changed the title artsdata-planet-villedelaval: Add event location placeholder artsdata-planet-ville-de-laval: Add event location placeholder May 8, 2024
@sahalali
Copy link

@saumier let's update the SPARQL query for this source and add the footlight place URI to the location (https://api.footlight.io/places/663b8d6f0796c300645e2ab9).
Example:
{
name": {
"fr": "Example Event"
},
location": {
"Place": "https://api.footlight.io/places/663b8d6f0796c300645e2ab9"
},
}

So that, the aggregator can identify the location in the response as location in the footlights CMS.

@sahalali sahalali assigned saumier and unassigned sahalali May 29, 2024
@saumier saumier removed the status in Artsdata Jul 30, 2024
@saumier saumier removed their assignment Sep 17, 2024
@saumier
Copy link
Member Author

saumier commented Sep 17, 2024

Waiting for Ville de Laval to update their data feed to include places for all events. A couple of meetings with Ville de Laval happened and they are redoing their entire system and website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants