changeset 1:0fa29ab5e5e0

minor
author dwinter
date Thu, 03 Feb 2011 14:05:52 +0100
parents fb3f3df002df
children 273164f81926
files src/de/mpiwg/dwinter/duomo/lexdump/LexOWLTransformer.java
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/de/mpiwg/dwinter/duomo/lexdump/LexOWLTransformer.java	Thu Feb 03 10:15:16 2011 +0100
+++ b/src/de/mpiwg/dwinter/duomo/lexdump/LexOWLTransformer.java	Thu Feb 03 14:05:52 2011 +0100
@@ -1,5 +1,7 @@
 package de.mpiwg.dwinter.duomo.lexdump;
 
+import java.io.File;
+import java.io.FileWriter;
 import java.io.IOException;
 import java.net.URI;
 import java.net.URISyntaxException;
@@ -40,6 +42,7 @@
 
 public class LexOWLTransformer {
 	private Logger logger = Logger.getRootLogger();
+	private FileWriter missing;
 	private OWLImporter owlDoc;
 	private LexDumpImporter lexDoc;
 	private Map<String, OWLIndividual> individualIds = new HashMap<String, OWLIndividual>(); // speichere
@@ -48,9 +51,10 @@
 																								// weitere
 																								// Verwendung
 
-	public LexOWLTransformer(OWLImporter owlDoc, LexDumpImporter lexDoc) {
+	public LexOWLTransformer(OWLImporter owlDoc, LexDumpImporter lexDoc) throws IOException {
 		this.owlDoc = owlDoc;
 		this.lexDoc = lexDoc;
+		missing = new FileWriter(new File("/tmp/missing.out","w"));
 	}
 
 	/**
@@ -311,6 +315,12 @@
 			OWLIndividual ind = individualIds.get(subjPointer);
 			if (ind == null) {
 				logger.debug("target ID does not exist:" + subjPointer);
+				try {
+					missing.write("target ID does not exist:" + subjPointer+"\n");
+				} catch (IOException e) {
+					// TODO Auto-generated catch block
+					e.printStackTrace();
+				}
 			} else {
 				owlDoc.setProperty(subjInd, "has_NameOrRoleFromIndex", ind);
 			}