Informatievlaanderen / VSDS-Linked-Data-Interactions

https://informatievlaanderen.github.io/VSDS-Linked-Data-Interactions/
European Union Public License 1.2
4 stars 6 forks source link

Deletion of old member statements is not profound enough #538

Closed jobulcke closed 5 months ago

jobulcke commented 6 months ago

Describe the bug Due to the introduction of a sparql query in an attempt to optimize the graph db materialiser, not all statements that contains bnodes as subject are deleted, as the sparql query goes not deep enough

To Reproduce Steps to reproduce the behavior:

  1. Set up a pipeline with a materialiser
  2. Ingest the following member
    @prefix schema: <http://schema.org/> .
    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix skos: <http://www.w3.org/2004/02/skos/core#> .
    # Movie 1
    <http://example.com/movies/1> a schema:Movie ;
    schema:name "Inception" ;
    schema:description "A mind-bending sci-fi thriller about dreams and reality." ;
    schema:datePublished "2010-07-16" ;
    schema:director [
        a schema:Person ;
        schema:name "Christopher Nolan" ;
        schema:role [
            a skos:Concept ;
            skos:prefLabel "Director" ;
            skos:broader [
                a skos:Concept ;
                skos:prefLabel "Person"
            ]
        ]
    ] ;
    schema:actor [
        a schema:Person ;
        schema:name "Leonardo DiCaprio" ;
        schema:role [
            a skos:Concept ;
            skos:prefLabel "Actor"
        ]
    ], [
        a schema:Person ;
        schema:name "Joseph Gordon-Levitt" ;
        schema:role [
            a skos:Concept ;
            skos:prefLabel "Actor"
        ]
    ] ;
    schema:genre "Science Fiction", "Action" ;
    schema:duration "PT148M" ;
    schema:language "English" .
  3. Ingest an updated version of this model

Expected behavior The deepest levels of the bnodes are not duplicated

jobulcke commented 5 months ago

Resolved in https://github.com/Informatievlaanderen/VSDS-Linked-Data-Interactions/pull/557