changeset 7:19e40abb3e8a

bug in istit
author dwinter
date Wed, 09 Feb 2011 16:36:36 +0100
parents 30fc93374f10
children 919e9f3b5efd
files protege.properties src/de/mpiwg/dwinter/duomo/lexdump/LexOWLTransformer.java src/de/mpiwg/dwinter/duomo/lexdump/OWLImporter.java
diffstat 3 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/protege.properties	Wed Feb 09 15:36:51 2011 +0100
+++ b/protege.properties	Wed Feb 09 16:36:36 2011 +0100
@@ -1,5 +1,5 @@
 #Protege Properties
-#Mon Feb 07 18:28:06 CET 2011
+#Wed Feb 09 16:23:54 CET 2011
+SwitchableClassDefinitionType=edu.stanford.smi.protegex.owl.ui.cls.LogicClassDefinitionWidgetType
 history.projects.reopen=file\:/Users/dwinter/Documents/Projekte/Diss%20-%20data-mining/eclipseWorkspace/de.mpiwg.dwinter.duomo/examples/newspaper/newspaper.pprj,file\:/Users/dwinter/Documents/Projekte/Diss%20-%20data-mining/eclipseWorkspace/de.mpiwg.dwinter.duomo/examples/sqwrl/SQWRLExamples.pprj,file\:/Users/dwinter/Documents/Projekte/Diss%20-%20data-mining/eclipseWorkspace/de.mpiwg.dwinter.duomo/examples/pizza/pizza.owl.pprj
-SwitchableClassDefinitionType=edu.stanford.smi.protegex.owl.ui.cls.LogicClassDefinitionWidgetType
 OntURIBase=http\://www.owl-ontologies.com
--- a/src/de/mpiwg/dwinter/duomo/lexdump/LexOWLTransformer.java	Wed Feb 09 15:36:51 2011 +0100
+++ b/src/de/mpiwg/dwinter/duomo/lexdump/LexOWLTransformer.java	Wed Feb 09 16:36:36 2011 +0100
@@ -240,15 +240,18 @@
 
 		// istit
 		try {
-			String istit = lexDoc.getValue(record, "./istit");
+			String istit = lexDoc.getValue(record, ".//istit");
+			if (!istit.equals("")){
 			OWLIndividual istitInd = owlDoc.getIndividualByReadableId(
 					"IndicesInstitutions", istit);
 			if (istitInd == null) {
 				istitInd = createOrGetInstitution(istit);
 			}
+			
 
 			owlDoc.setProperty(eventInstance, "recordsDuomoObjectInstitution",
 					istitInd);
+			}
 
 		} catch (JDOMException e) {
 			// TODO Auto-generated catch block
--- a/src/de/mpiwg/dwinter/duomo/lexdump/OWLImporter.java	Wed Feb 09 15:36:51 2011 +0100
+++ b/src/de/mpiwg/dwinter/duomo/lexdump/OWLImporter.java	Wed Feb 09 16:36:36 2011 +0100
@@ -17,14 +17,10 @@
 import edu.stanford.smi.protegex.owl.ProtegeOWL;
 import edu.stanford.smi.protegex.owl.jena.JenaOWLModel;
 import edu.stanford.smi.protegex.owl.model.OWLClass;
-import edu.stanford.smi.protegex.owl.model.OWLDatatypeProperty;
 import edu.stanford.smi.protegex.owl.model.OWLIndividual;
 import edu.stanford.smi.protegex.owl.model.OWLNamedClass;
 import edu.stanford.smi.protegex.owl.model.RDFProperty;
-import edu.stanford.smi.protegex.owl.model.RDFSDatatype;
 import edu.stanford.smi.protegex.owl.model.RDFSLiteral;
-import edu.stanford.smi.protegex.owl.model.impl.DefaultRDFProperty;
-import edu.stanford.smi.protegex.owl.model.impl.DefaultRDFSLiteral;
 import edu.stanford.smi.protegex.owl.repository.RepositoryManager;
 import edu.stanford.smi.protegex.owl.repository.impl.LocalFolderRepository;
 
@@ -354,4 +350,6 @@
 		}
 		return ind;
 	}
+	
+
 }