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

Lmb 1053: create an ldes stream instead of consuming all data and producing interesting types #11

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

JonasVanHoof
Copy link
Collaborator

@JonasVanHoof JonasVanHoof commented Nov 18, 2024

Description

Remove the producer and all services that where needed to produce the interesting types data. Replace this with an LDES that can be consumed by other apps.

How to test

  1. Run the app
  2. All 4 consumers must be pulling data when a delta is created for a DB change
  3. This data should be added to the public ldes-stream that can be found in /data/ldes-feed/public

Links to other PR's

Other

Added these triples to the consumed graph (through mu-auth so it generated delta's for it)

PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
mandataris-1  |     PREFIX dct: <http://purl.org/dc/terms/>
mandataris-1  |     PREFIX lmb: <http://lblod.data.gift/vocabularies/lmb/>
mandataris-1  |     PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
mandataris-1  |     PREFIX org: <http://www.w3.org/ns/org#>
mandataris-1  |     PREFIX foaf: <http://xmlns.com/foaf/0.1/>
mandataris-1  |     PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
mandataris-1  |     PREFIX persoon: <http://data.vlaanderen.be/ns/persoon#>
mandataris-1  |   
mandataris-1  |     SELECT DISTINCT ?mandataris ?fName ?lName ?bestuursfunctieName ?graph
mandataris-1  |       WHERE {
mandataris-1  |         GRAPH ?graph {
mandataris-1  |           ?mandataris a mandaat:Mandataris ;
mandataris-1  |             lmb:hasPublicationStatus <http://data.lblod.info/id/concept/MandatarisPublicationStatusCode/d3b12468-3720-4cb0-95b4-6aa2996ab188> ;
mandataris-1  |             mandaat:isBestuurlijkeAliasVan ?person ;
mandataris-1  |             org:holds / org:role ?bestuursfunctie .
mandataris-1  |           ?person persoon:gebruikteVoornaam ?fName ;
mandataris-1  |             foaf:familyName ?lName .
mandataris-1  |           OPTIONAL {
mandataris-1  |             ?mandataris lmb:effectiefAt ?effectiefAt .
mandataris-1  |           }
mandataris-1  |         }
mandataris-1  |         ?bestuursfunctie skos:prefLabel ?bestuursfunctieName .
mandataris-1  |         FILTER NOT EXISTS {
mandataris-1  |           ?graph a <http://mu.semte.ch/vocabularies/ext/FormHistory>
mandataris-1  |         }
mandataris-1  |         FILTER NOT EXISTS {
mandataris-1  |           ?graph a <http://mu.semte.ch/graphs/public>
mandataris-1  |         }
mandataris-1  | 
mandataris-1  |         FILTER("2024-11-08T12:08:00.025Z"^^xsd:dateTime >= ?saveEffectiefAt)
mandataris-1  |         BIND(IF(BOUND(?effectiefAt), ?effectiefAt, "2024-11-08T12:08:00.025Z"^^xsd:dateTime) AS ?saveEffectiefAt).
mandataris-1  |       }

And got these triples on the LDES feed

<http://ldes-backend/public> <https://w3id.org/tree#member> <http://mu.semte.ch/services/ldes-time-fragmenter/versioned/c69fbbce-a135-437f-993f-a805f2aa0367> .

<http://mu.semte.ch/services/ldes-time-fragmenter/versioned/c69fbbce-a135-437f-993f-a805f2aa0367> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://data.vlaanderen.be/ns/besluit#Besluit> .

<http://mu.semte.ch/services/ldes-time-fragmenter/versioned/c69fbbce-a135-437f-993f-a805f2aa0367> <http://mu.semte.ch/vocabularies/core/uuid> "8ed5123b-01aa-4645-ae5e-8716a7d62ae2" .

<http://mu.semte.ch/services/ldes-time-fragmenter/versioned/c69fbbce-a135-437f-993f-a805f2aa0367> <http://data.vlaanderen.be/ns/mandaat#bekrachtigtOntslagVan> <http://data.lblod.info/id/mandatarissen/0671521d-a308-4ba8-a782-d4898e759dc1> .

<http://mu.semte.ch/services/ldes-time-fragmenter/versioned/c69fbbce-a135-437f-993f-a805f2aa0367> <http://purl.org/dc/terms/isVersionOf> <http://data.lblod.info/id/besluiten/8ed5123b-01aa-4645-ae5e-8716a7d62ae2> .

<http://mu.semte.ch/services/ldes-time-fragmenter/versioned/c69fbbce-a135-437f-993f-a805f2aa0367> <http://www.w3.org/ns/prov#generatedAtTime> "2024-11-18T12:07:51.059Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> .

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

Successfully merging this pull request may close these issues.

1 participant