Skip to content

Commit 544faaf

Browse files
ernestoernesto
authored andcommitted
minor fixes
1 parent f44fb6b commit 544faaf

File tree

5 files changed

+39
-8
lines changed

5 files changed

+39
-8
lines changed

.classpath

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<attribute name="maven.pomderived" value="true"/>
1414
</attributes>
1515
</classpathentry>
16+
<classpathentry kind="src" path="src/main/resources"/>
1617
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
1718
<attributes>
1819
<attribute name="maven.pomderived" value="true"/>

pom.xml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,16 @@
117117
<artifactId>log4j-core</artifactId>
118118
<version>2.13.3</version>
119119
</dependency>
120-
121-
120+
<dependency>
121+
<groupId>org.slf4j</groupId>
122+
<artifactId>slf4j-log4j12</artifactId>
123+
<version>1.7.31</version>
124+
</dependency>
125+
<dependency>
126+
<groupId>org.slf4j</groupId>
127+
<artifactId>slf4j-api</artifactId>
128+
<version>1.7.31</version>
129+
</dependency>
122130
<dependency>
123131
<groupId>com.fasterxml.jackson.core</groupId>
124132
<artifactId>jackson-annotations</artifactId>
@@ -207,6 +215,12 @@
207215
<include>**/*.txt</include>
208216
<include>**/*.gz</include>
209217
</includes>
218+
</resource>
219+
<resource>
220+
<directory>src/main/resources</directory>
221+
<includes>
222+
<include>log4j.properties</include>
223+
</includes>
210224
</resource>
211225
</resources>
212226

src/main/java/uk/ac/ox/krr/logmap2/LogMap2_CommandLine.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private static String getHelpMessage(){
1616
"\t1. MATCHER. To use the matching functionality.\n" +
1717
"\t2. IRI ontology 1. e.g.: http://myonto1.owl or file:/C://myonto1.owl or file:/usr/local/myonto1.owl\n" +
1818
"\t3. IRI ontology 2. e.g.: http://myonto2.owl or file:/C://myonto2.owl or file:/usr/local/myonto2.owl\n" +
19-
"\t4. Full output path for mapping files and overlapping modules/fragments. e.g. /usr/local/output_path/ or C://output_path/\n or /C://output_path/\\n" +
19+
"\t4. Full output path for mapping files and overlapping modules/fragments. e.g. /usr/local/output_path/ or (windows) C://output_path/ or /C://output_path/\n" +
2020
"\t5. Classify the input ontologies together with the mappings. e.g. true or false\n\n" +
2121
"\tFor example: java -jar logmap2_standalone.jar MATCHER file:/home/ontos/cmt.owl file:/home/ontos/ekaw.owl /home/mappings/output/ true\n\n\n" +
2222

@@ -25,7 +25,7 @@ private static String getHelpMessage(){
2525
"\t2. IRI ontology 1. e.g.: http://myonto1.owl or file:/C://myonto1.owl or file:/usr/local/myonto1.owl\n" +
2626
"\t3. IRI ontology 2. e.g.: http://myonto2.owl or file:/C://myonto2.owl or file:/usr/local/myonto2.owl\n" +
2727
"\t4. Reference mappings (RDF alignment format). e.g.: /usr/local/reference_mappings.rdf\n" +
28-
"\t5. Full output path for mapping files and overlapping modules/fragments. e.g. /usr/local/output_path/ or C://output_path/\n or /C://output_path/\\n" +
28+
"\t5. Full output path for mapping files and overlapping modules/fragments. e.g. /usr/local/output_path/ or (windows) C://output_path/ or /C://output_path/\n" +
2929
"\t6. Classify the input ontologies together with the mappings. e.g. true or false\n\n" +
3030
"\tFor example: java -jar logmap2_standalone.jar EVALUATION file:/home/ontos/cmt.owl file:/home/ontos/ekaw.owl /home/refs/ref-cmt-ekaw.rdf /home/mappings/output/ true\n\n\n" +
3131

@@ -36,8 +36,8 @@ private static String getHelpMessage(){
3636
"\t4. Format mappings e.g.: OWL or RDF or TXT\n" +
3737
"\t5. Full IRI or full Path:\n" +
3838
"\t\ta. Full IRI of input mappings if OWL format. e.g.: file:/C://mymappings.owl or file:/usr/local/mymappings.owl or http://mymappings.owl\n" +
39-
"\t\tb. or Full path of input mappings if formats RDF or TXT. e.g.: C://mymappings.rdf or /usr/local/mymappings.txt\n" +
40-
"\t6. Full output path for the repaired mappings: e.g. /usr/local/output_path or C://output_path\n or /C://output_path/\\n" +
39+
"\t\tb. or Full path of input mappings if formats RDF or TXT. e.g.: C://mymappings.rdf or /usr/local/mymappings.txt\n" +
40+
"\t6. Full output path for the repaired mappings: e.g. /usr/local/output_path or (windows) C://output_path or /C://output_path/\n" +
4141
"\t7. Extract modules for repair?: true or false\n" +
4242
"\t8. Check satisfiability after repair using HermiT? true or false\n\n" +
4343
"\tFor example: java -jar logmap2_standalone.jar DEBUGGER file:/home/ontos/cmt.owl file:/home/ontos/ekaw.owl " +
@@ -48,7 +48,7 @@ private static String getHelpMessage(){
4848
"\t1. MATCHER. To use the matching functionality.\n" +
4949
"\t2. IRI ontology 1. e.g.: http://myonto1.owl or file:/C://myonto1.owl or file:/usr/local/myonto1.owl\n" +
5050
"\t3. IRI ontology 2. e.g.: http://myonto2.owl or file:/C://myonto2.owl or file:/usr/local/myonto2.owl\n" +
51-
"\t4. Full output path for mapping files and overlapping modules/fragments. e.g. /usr/local/output_path/ or C://output_path/\n or /C://output_path/\\n" +
51+
"\t4. Full output path for mapping files and overlapping modules/fragments. e.g. /usr/local/output_path/ or (windows) C://output_path/ or /C://output_path/\n" +
5252
"\tFor example: java -jar logmap2_standalone.jar LITE file:/home/ontos/cmt.owl file:/home/ontos/ekaw.owl /home/mappings/output/ \n\n\n" +
5353

5454

src/main/java/uk/ac/ox/krr/logmap2/LogMap2_Matcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public LogMap2_Matcher(String iri_onto1, String iri_onto2, String reference, Str
7676
);
7777

7878
System.out.println("Precision\tRecall\tF-score");
79-
System.out.format("%.3f\t%.3f\t%.3f", StandardMeasures.getPrecision(), StandardMeasures.getRecall(), StandardMeasures.getFscore());
79+
System.out.format("%.3f\t%.3f\t%.3f\n", StandardMeasures.getPrecision(), StandardMeasures.getRecall(), StandardMeasures.getFscore());
8080

8181

8282

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#Root logger option
2+
log4j.rootLogger=ERROR, stdout
3+
log4j.rootLogger=INFO, file
4+
5+
# Direct log messages to stdout
6+
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
7+
log4j.appender.stdout.Target=System.out
8+
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
9+
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p [%-30.30t] %-4L in %-20.20c{1} - %m%n
10+
11+
12+
# Define the file appender
13+
log4j.appender.file=org.apache.log4j.FileAppender
14+
log4j.appender.file.File=logmap-log.out
15+
log4j.appender.file.layout=org.apache.log4j.PatternLayout
16+
log4j.appender.file.layout.conversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p [%-30.30t] %-4L in %-20.20c{1} - %m%n

0 commit comments

Comments
 (0)