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:
Set up a pipeline with a materialiser
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" .
Ingest an updated version of this model
Expected behavior
The deepest levels of the bnodes are not duplicated
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:
Expected behavior The deepest levels of the bnodes are not duplicated