From 7239250f604796bc45561c452c47a235a2008bb7 Mon Sep 17 00:00:00 2001
From: Mathieu Massaviol <mathieu.massaviol@univ-amu.fr>
Date: Tue, 12 Nov 2024 17:28:51 +0100
Subject: [PATCH] Debug identifier normalization by removing virtuoso context
 #68

---
 src/sparql/tree.ts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/sparql/tree.ts b/src/sparql/tree.ts
index 0fe89a2..6800646 100644
--- a/src/sparql/tree.ts
+++ b/src/sparql/tree.ts
@@ -81,7 +81,8 @@ export const getTreeNodesFromParentNodeURI = async (parentNodeUri: string, auth?
     {
       context,
       auth,
-      frame
+      frame,
+      withoutContext: true
     }
   )
 }
@@ -140,7 +141,6 @@ export const getUrisBetweenHomeAndResource = async (
         VALUES ?p3 { dct:identifier rdf:type }
         VALUES ?p4 { dct:identifier rdf:type }
         ?child ?p ?o.
-        ?subchild dcat:dataset ?dataset.
         ?subchild ?p2 ?o2.
         ?dataset ?p3 ?o3.
         ?distribution ?p4 ?o4.
@@ -164,7 +164,6 @@ export const getUrisBetweenHomeAndResource = async (
         VALUES ?p2 { dct:identifier rdf:type }
         VALUES ?p3 { dct:identifier rdf:type }
         ?child ?p ?o.
-        ?subchild dcat:dataset ?dataset.
         ?subchild ?p2 ?o2.
         ?dataset ?p3 ?o3.
       `
@@ -197,7 +196,8 @@ export const getUrisBetweenHomeAndResource = async (
     `,
     {
       context,
-      auth
+      auth,
+      withoutContext: true
     }
   )
 }
-- 
GitLab