Skip to content

Commit ad85024

Browse files
committed
Update README and POM
1 parent 709f79d commit ad85024

File tree

3 files changed

+28
-76
lines changed

3 files changed

+28
-76
lines changed

PSOATransRun/pom.xml

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
<groupId>com.declarativa.interprolog</groupId>
3636
<artifactId>interprolog</artifactId>
3737
<version>2.5</version>
38-
<!-- <scope>system</scope>
39-
<systemPath>${project.basedir}/src/main/resources/prolog/interprolog.jar</systemPath> -->
4038
</dependency>
4139
</dependencies>
4240
<build>
@@ -50,7 +48,7 @@
5048
<executions>
5149
<execution>
5250
<id>install-external-jar</id>
53-
<phase>clean</phase>
51+
<phase>clean</phase>
5452
<configuration>
5553
<file>${basedir}/lib/interprolog.jar</file>
5654
<repositoryLayout>default</repositoryLayout>
@@ -107,31 +105,6 @@
107105
</execution>
108106
</executions>
109107
</plugin>
110-
<!-- <plugin>
111-
<groupId>org.eclipse.m2e</groupId>
112-
<artifactId>lifecycle-mapping</artifactId>
113-
<version>1.0.0</version>
114-
<configuration>
115-
<lifecycleMappingMetadata>
116-
<pluginExecutions>
117-
copy-dependency plugin
118-
<pluginExecution>
119-
<pluginExecutionFilter>
120-
<groupId>org.apache.maven.plugins</groupId>
121-
<artifactId>maven-dependency-plugin</artifactId>
122-
<versionRange>[2.0.0,)</versionRange>
123-
<goals>
124-
<goal>copy-dependencies</goal>
125-
</goals>
126-
</pluginExecutionFilter>
127-
<action>
128-
<ignore />
129-
</action>
130-
</pluginExecution>
131-
</pluginExecutions>
132-
</lifecycleMappingMetadata>
133-
</configuration>
134-
</plugin> -->
135108
<!-- <plugin>
136109
<groupId>org.apache.maven.plugins</groupId>
137110
<artifactId>maven-dependency-plugin</artifactId>
@@ -151,20 +124,6 @@
151124
</execution>
152125
</executions>
153126
</plugin> -->
154-
<!-- <plugin>
155-
<groupId>org.apache.maven.plugins</groupId>
156-
<artifactId>maven-jar-plugin</artifactId>
157-
<version>2.3.1</version>
158-
<configuration>
159-
<archive>
160-
<manifest>
161-
<addClasspath>true</addClasspath>
162-
<classpathPrefix>lib/</classpathPrefix>
163-
<mainClass>org.ruleml.psoa.psoatransrun.prolog.PSOATransRunProlog</mainClass>
164-
</manifest>
165-
</archive>
166-
</configuration>
167-
</plugin> -->
168127
</plugins>
169128
</build>
170129
</project>

README

Lines changed: 26 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,41 @@
11
OVERVIEW
2-
PSOATransRun is an implementation of the PSOA RuleML language. PSOATransRun
3-
composes a translator from PSOA to some target langauge t, and some runtime
4-
environment executing the language t. This release contains an instantiation
5-
using t=Prolog, composing a translator PSOA2Prolog and a runtime environment
6-
XSB Prolog. See http://wiki.ruleml.org/index.php?title=PSOA_RuleML for more
7-
details of PSOA RuleML and PSOATransRun.
8-
2+
PSOATransRun is an implementation of the Positional-Slotted, Object-Applicative
3+
RuleML (PSOA RuleML) language. The PSOATransRun 1.0 release includes a composition
4+
of a translator PSOA2Prolog, from PSOA RuleML to a subset of the logic
5+
programming language ISO Prolog, with the well-known efficient XSB Prolog engine.
6+
See http://psoa.ruleml.org for details of PSOA RuleML and PSOATransRun
7+
and http://github.com/ZOUG/psoa2tptp for the repository.
98

109
REQUIREMENTS
11-
Operating System: Windows
12-
Prerequisites: Java version 6.0 or higher, XSB Prolog 3.5
13-
10+
Operating System: Windows or Linux
11+
Prerequisites: Java version 6.0 or higher, XSB Prolog 3.5 or higher (http://xsb.sourceforge.net/)
1412

1513
USAGE
16-
Download PSOATransRun.jar to a directory, which we will call $PSOATransRun_DIR.
17-
Then follow the next steps to run the program:
14+
Download http://psoa.ruleml.org/transrun/1.0/local/PSOATransRunLocal.jar to
15+
a directory, which we will call $PSOATransRun_DIR. Then follow these next steps
16+
to run the program:
1817

19-
1. Open the Command Line Prompt
20-
1) Click the key combination Windows+R, a "Run" box will be shown;
21-
2) Type cmd and click "Enter"
18+
1. Open Command Line Prompt
19+
Windows: see http://windows.microsoft.com/en-ca/windows-vista/open-a-command-prompt-window
20+
Linux: start the Linux Terminal
2221

2322
2. Change the working directory to $PSOATransRun_DIR by executing
2423
cd $PSOATransRun_DIR
25-
If $PSOATransRun_DIR is not on the same drive as the current
24+
In Windows, if $PSOATransRun_DIR is on a different drive from the current
2625
working directory, the command line option /d should be used:
2726
cd /d $PSOATransRun_DIR
28-
29-
3. Execute the following command
30-
java -jar PSOATransRun.jar -i <kb>
3127

32-
<kb> is the path of the input knowledge base (KB) written in the PSOA RuleML
33-
presentation syntax.
28+
3. Execute the following command:
29+
java -jar PSOATransRunLocal.jar -x <xsb_dir> -i <kb>
3430

35-
4. After the message "KB loaded" is shown, you can ask queries. Each time
36-
when you see the "Input Query" message is prompted, you can input a one-line
37-
query and click "Enter", and the answers will be shown. To finish, type
38-
Ctrl+Z and click "Enter".
39-
40-
To see all available command line options, execute
41-
java -jar PSOATransRun.jar -?
31+
<kb> is the path of the input knowledge base (KB) written in the PSOA RuleML
32+
presentation syntax. <xsb_dir> is the path of the installation folder of XSB Prolog.
4233

34+
* The -x <xsb_dir> part of the command can be omitted if the XSB_DIR environment
35+
variable is set to be the installation folder of XSB Prolog.
4336

44-
COMMON ERROR MESSAGES AND RESOLUTIONS
45-
* 'java' is not recognized as an internal or external command ...
46-
The java binary is not found by the Windows. Follow the steps explained in
47-
http://docs.oracle.com/javase/tutorial/essential/environment/paths.html
48-
to configure the PATH environment variable.
37+
4. After the message "KB loaded" is shown, queries can be posed. One query at a time
38+
is entered and every query must be in a single line. One answer at a time will be shown.
39+
To get the next answer, press the semicolon key. To stop processing the current query
40+
and proceed to the next query, press the Enter key. To finish querying and exit, press
41+
Ctrl+Z and Enter (Windows) or Ctrl+D (Linux).

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>org.ruleml.psoa</groupId>
66
<artifactId>PSOATools</artifactId>
7-
<version>1</version>
7+
<version>1.0</version>
88
<packaging>pom</packaging>
99

1010
<modules>

0 commit comments

Comments
 (0)