From 68fed5de19c742600631bf49d14412589ae94ab5 Mon Sep 17 00:00:00 2001 From: Bernd Kiefer Date: Fri, 19 Jul 2024 14:15:52 +0200 Subject: [PATCH] Improve DA / RDF exchange, closes issue #28 --- .../compiler/tree/DialogueActTest.java | 26 +- .../ontologies/common/dialogue/dialogue.nt | 48 +- .../ontologies/common/dialogue/dialogue.owl | 1579 +++++++++++------ .../de/dfki/mlt/rudimant/agent/Agent.java | 4 +- .../mlt/rudimant/agent/nlp/DialogueAct.java | 150 +- 5 files changed, 1185 insertions(+), 622 deletions(-) diff --git a/compiler/src/test/java/de/dfki/mlt/rudimant/compiler/tree/DialogueActTest.java b/compiler/src/test/java/de/dfki/mlt/rudimant/compiler/tree/DialogueActTest.java index 2e5725b0..ff2feafe 100644 --- a/compiler/src/test/java/de/dfki/mlt/rudimant/compiler/tree/DialogueActTest.java +++ b/compiler/src/test/java/de/dfki/mlt/rudimant/compiler/tree/DialogueActTest.java @@ -100,7 +100,7 @@ public void testFromRdf() { Rdf da = _proxy.getClass("").getNewInstance("dial:"); da.setValue("", "someone"); Rdf frame = _proxy.getClass("").getNewInstance("dial:"); - frame.setValue("", "someone else"); + da.setValue("", "someone else"); da.setValue("", frame); DialogueAct transformed = DialogueAct.fromRdfProper(da.getURI(), _proxy); @@ -118,7 +118,7 @@ public void testFromRdf2() { Rdf da = _proxy.getClass("").getNewInstance("dial:"); da.setValue("", "someone"); Rdf frame = _proxy.getClass("").getNewInstance("dial:"); - frame.setValue("", "someone else"); + da.setValue("", "someone else"); frame.setValue("", "Foo"); da.setValue("", frame); @@ -138,10 +138,10 @@ public void testToRdf2() { DialogueAct da = new DialogueAct("@raw:ReturnGreeting(Meeting" + " ^