The AI Domain Definition Language (AIDDL) Framework Help

Writing a Simple Program

The following program is a simple hello world. It imports two of the representation classes, creates a string term and prints it to the console.

import org.aiddl.core.scala.representation.Str object Main extends App { val message = Str("Hello AIDDL World!") println(message) }
from aiddl_core.representation import Str message = Str("Hello AIDDL World!") print(message)
package org.aiddl.example.hello_world; import org.aiddl.core.representation.Term; public class HelloAIDDL { public static void main( String[] args ) { StringTerm helloAiddl = Term.string("Hello AIDDL World!"); System.out.println(helloAiddl); } }

How to run

All three examples can be found in the AIDDL Git repository.

In the hello-world/scala folder:

sbt run

Make sure aiddl_core is available in the current environment. In the hello-world/python folder run the following command:

python main.py

In the hello-world/java folder run the following command:

gradlew run
./gradlew run
Last modified: 17 March 2025