Skip to content

Commit

Permalink
Fix problem with RDF sythetic top type
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiefer committed Jul 19, 2024
1 parent 68fed5d commit 15bae02
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compiler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>de.dfki.mlt</groupId>
<artifactId>vonda-top</artifactId>
<version>3.3</version>
<version>3.3.1</version>
<relativePath>..</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
<parent>
<groupId>de.dfki.mlt</groupId>
<artifactId>vonda-top</artifactId>
<version>3.3</version>
<version>3.3.1</version>
<relativePath>..</relativePath>
</parent>

<dependencies>
<dependency>
<groupId>de.dfki.lt.hfc</groupId>
<artifactId>hfc</artifactId>
<version>[1.5.2,)</version>
<version>[1.5.7,)</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

package de.dfki.mlt.rudimant.agent.nlp;

import de.dfki.lt.hfc.db.rdfProxy.RdfClass;
import de.dfki.lt.hfc.db.rdfProxy.RdfHierarchy;
import de.dfki.lt.hfc.db.rdfProxy.RdfProxy;
import de.dfki.lt.tr.dialogue.cplan.DagNode;
Expand All @@ -39,7 +40,9 @@ public class DiaHierarchy implements Hierarchy {
/** Initialize the hierarchy based on the RDF class hierarchy */
public DiaHierarchy(RdfProxy proxy) {
_hier = proxy.getHierarchy();
assert(_hier.getVertex(DagNode.TOP_TYPE) == DagNode.TOP_ID);
RdfClass top = proxy.fetchClass(DagNode.TOP_TYPE);
assert top != null;
assert(_hier.getVertex(top.toString()) == DagNode.TOP_ID);
}

/** Return a code for the given feature name */
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>de.dfki.mlt</groupId>
<artifactId>vonda-top</artifactId>
<version>3.3</version>
<version>3.3.1</version>
<packaging>pom</packaging>

<properties>
Expand Down

0 comments on commit 15bae02

Please sign in to comment.