From 02490f521e06597800c396c985bed4cd01189fcf Mon Sep 17 00:00:00 2001 From: Barry Nouwt Date: Thu, 6 Jul 2023 16:00:11 +0200 Subject: [PATCH 01/32] Add test for ploutos large graph pattern. --- .../engine/reasoner/api/MatchTest.java | 42 +++++++++++++++++++ .../knowledge/engine/reasoner/api/Util.java | 35 +++++++++++++--- .../knowledge/engine/rest/api/RestServer.java | 3 ++ 3 files changed, 75 insertions(+), 5 deletions(-) diff --git a/reasoner/src/test/java/eu/knowledge/engine/reasoner/api/MatchTest.java b/reasoner/src/test/java/eu/knowledge/engine/reasoner/api/MatchTest.java index 790f69f1..7f6a8bf1 100644 --- a/reasoner/src/test/java/eu/knowledge/engine/reasoner/api/MatchTest.java +++ b/reasoner/src/test/java/eu/knowledge/engine/reasoner/api/MatchTest.java @@ -13,6 +13,7 @@ import java.util.Map; import java.util.Set; +import org.apache.jena.atlas.logging.Log; import org.apache.jena.sparql.sse.SSE; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInstance; @@ -540,4 +541,45 @@ public void testTranslateEmptyBindingSet() { assertTrue(tvbs2.isEmpty()); } + + @Test + public void testPloutosGPMatcher() { + + String gp = """ + ?operation . + ?operation ?output . + ?operation ?parcel . + ?parcel ?crop . + ?crop ?cropType . + ?cropType