2
|
1 <project name="Script" default="print" basedir="../">
|
|
2
|
|
3 <path id="om.classpath">
|
|
4 <fileset dir="${basedir}/lib">
|
|
5 <include name="*.jar" />
|
|
6 </fileset>
|
|
7 </path>
|
|
8
|
|
9
|
|
10 <target name="ShowRepositoryName">
|
|
11 <java classname="org.mpi.openmind.scripts.ShowRepositoryName" maxmemory="512m" fork="true" failonerror="true">
|
|
12 <arg value="" />
|
|
13 <classpath>
|
|
14 <pathelement path="${basedir}/classes" />
|
|
15 <path refid="om.classpath" />
|
|
16 </classpath>
|
|
17 </java>
|
|
18 </target>
|
|
19
|
|
20 <target name="RepositoryName">
|
|
21 <java classname="org.mpi.openmind.scripts.RepositoryName" maxmemory="512m" fork="true" failonerror="true">
|
|
22 <arg value="" />
|
|
23 <classpath>
|
|
24 <pathelement path="${basedir}/classes" />
|
|
25 <path refid="om.classpath" />
|
|
26 </classpath>
|
|
27 </java>
|
|
28 </target>
|
|
29
|
|
30 <target name="NormalizeOWEntities">
|
|
31 <java classname="org.mpi.openmind.scripts.NormalizeOW" maxmemory="1024m" fork="true" failonerror="true">
|
|
32 <arg value="ENTITY" />
|
|
33 <classpath>
|
|
34 <pathelement path="${basedir}/classes" />
|
|
35 <path refid="om.classpath" />
|
|
36 </classpath>
|
|
37 </java>
|
|
38 </target>
|
|
39
|
|
40 <target name="NormalizeOWAttributes">
|
|
41 <java classname="org.mpi.openmind.scripts.NormalizeOW" maxmemory="1024m" fork="true" failonerror="true">
|
|
42 <arg value="ATTRIBUTE" />
|
|
43 <classpath>
|
|
44 <pathelement path="${basedir}/classes" />
|
|
45 <path refid="om.classpath" />
|
|
46 </classpath>
|
|
47 </java>
|
|
48 </target>
|
|
49
|
|
50 <target name="DoubleRelationsShow">
|
|
51 <java classname="org.mpi.openmind.scripts.DoubleRelations" maxmemory="1024m" fork="true" failonerror="true">
|
|
52 <arg value="SHOW" />
|
|
53 <classpath>
|
|
54 <pathelement path="${basedir}/classes" />
|
|
55 <path refid="om.classpath" />
|
|
56 </classpath>
|
|
57 </java>
|
|
58 </target>
|
|
59
|
|
60 <target name="DoubleRelationsReduce">
|
|
61 <java classname="org.mpi.openmind.scripts.DoubleRelations" maxmemory="1024m" fork="true" failonerror="true">
|
|
62 <arg value="REDUCE" />
|
|
63 <classpath>
|
|
64 <pathelement path="${basedir}/classes" />
|
|
65 <path refid="om.classpath" />
|
|
66 </classpath>
|
|
67 </java>
|
|
68 </target>
|
|
69
|
|
70 <target name="RelationsWithoutSrcOrTar">
|
|
71 <java classname="org.mpi.openmind.scripts.RelationsWithoutSrcOrTar" maxmemory="1024m" fork="true" failonerror="true">
|
|
72 <classpath>
|
|
73 <pathelement path="${basedir}/classes" />
|
|
74 <path refid="om.classpath" />
|
|
75 </classpath>
|
|
76 </java>
|
|
77 </target>
|
|
78
|
|
79 <target name="RelationsWithoutSrcOrTarReduce">
|
|
80 <java classname="org.mpi.openmind.scripts.RelationsWithoutSrcOrTar" maxmemory="1024m" fork="true" failonerror="true">
|
|
81 <arg value="REDUCE" />
|
|
82 <classpath>
|
|
83 <pathelement path="${basedir}/classes" />
|
|
84 <path refid="om.classpath" />
|
|
85 </classpath>
|
|
86 </java>
|
|
87 </target>
|
|
88
|
|
89 <target name="GenerateWitnessOwnValue">
|
|
90 <java classname="org.mpi.openmind.scripts.WitnessOwnValueGenerator" maxmemory="1024m" fork="true" failonerror="true">
|
|
91 <arg value="" />
|
|
92 <classpath>
|
|
93 <pathelement path="${basedir}/classes" />
|
|
94 <path refid="om.classpath" />
|
|
95 </classpath>
|
|
96 </java>
|
|
97 </target>
|
|
98
|
|
99 <target name="RoleToRelation">
|
|
100 <java classname="org.mpi.openmind.scripts.RoleToRelation" maxmemory="1024m" fork="true" failonerror="true">
|
|
101 <arg value="${filePath}" />
|
|
102 <classpath>
|
|
103 <pathelement path="${basedir}/classes" />
|
|
104 <path refid="om.classpath" />
|
|
105 </classpath>
|
|
106 </java>
|
|
107 </target>
|
|
108
|
|
109 <target name="CurrentVersionForRelations">
|
|
110 <java classname="org.mpi.openmind.scripts.CurrentVersionForRelations" maxmemory="1024m" fork="true" failonerror="true">
|
|
111 <arg value="${filePath}" />
|
|
112 <classpath>
|
|
113 <pathelement path="${basedir}/classes" />
|
|
114 <path refid="om.classpath" />
|
|
115 </classpath>
|
|
116 </java>
|
|
117 </target>
|
|
118
|
|
119 <target name="CurrentVersionSrcRelation">
|
|
120 <java classname="org.mpi.openmind.scripts.CurrentVersionSrcRelation" maxmemory="1024m" fork="true" failonerror="true">
|
|
121 <arg value="${filePath}" />
|
|
122 <classpath>
|
|
123 <pathelement path="${basedir}/classes" />
|
|
124 <path refid="om.classpath" />
|
|
125 </classpath>
|
|
126 </java>
|
|
127 </target>
|
|
128
|
|
129 <target name="MakeEntitiesPrivate">
|
|
130 <java classname="org.mpi.openmind.scripts.ChangeEntityPrivacity" maxmemory="1024m" fork="true" failonerror="true">
|
|
131 <arg value="false" />
|
|
132 <classpath>
|
|
133 <pathelement path="${basedir}/classes" />
|
|
134 <path refid="om.classpath" />
|
|
135 </classpath>
|
|
136 </java>
|
|
137 </target>
|
|
138
|
|
139 <target name="MakeEntitiesPublic">
|
|
140 <java classname="org.mpi.openmind.scripts.ChangeEntityPrivacity" maxmemory="1024m" fork="true" failonerror="true">
|
|
141 <arg value="true" />
|
|
142 <classpath>
|
|
143 <pathelement path="${basedir}/classes" />
|
|
144 <path refid="om.classpath" />
|
|
145 </classpath>
|
|
146 </java>
|
|
147 </target>
|
|
148 <target name="WitnessCreatedByText">
|
|
149 <java classname="org.mpi.openmind.scripts.WitnessCreatedByText" maxmemory="1024m" fork="true" failonerror="true">
|
|
150 <arg value="true" />
|
|
151 <classpath>
|
|
152 <pathelement path="${basedir}/classes" />
|
|
153 <path refid="om.classpath" />
|
|
154 </classpath>
|
|
155 </java>
|
|
156 </target>
|
|
157
|
|
158 <target name="print">
|
|
159 <echo>
|
|
160 ### SCRIPTS COMMANDS ###
|
|
161
|
|
162 *** commands list ***
|
|
163 ShowRepositoryName: show the amount of Repositories without name attribute.
|
|
164 RepositoryName: create an attribute name for all repositories without one.
|
|
165 NormalizeOWEntities: generate the normalizedOW for the entities marked as CURRENT_VERSION.
|
|
166 NormalizeOWAttributes: generate the normalizedOW for the attributes marked as CURRENT_VERSION.
|
|
167 DoubleRelationsShow
|
|
168 DoubleRelationsReduce
|
|
169 GenerateWitnessOwnValue
|
|
170 CurrentVersionForRelations
|
|
171 RoleToRelation use -DfilePath to set location of the definition's file.
|
|
172 CurrentVersionSrcRelation
|
|
173 MakeEntitiesPrivate
|
|
174 MakeEntitiesPublic
|
|
175 WitnessCreatedByText removes the relations WITNES created by PERSON
|
|
176 RelationsWithoutSrcOrTar
|
|
177 RelationsWithoutSrcOrTarReduce
|
|
178
|
|
179 </echo>
|
|
180 </target>
|
|
181
|
|
182 </project>
|