# HG changeset patch
# User dwinter
# Date 1297023588 -3600
# Node ID 72004a788198ff20028a83a3da0bd2ebe6672c7b
# Parent d9fd32ecae2450e07db86b23d35fd9d025e1a51d
save single file
diff -r d9fd32ecae24 -r 72004a788198 owlInput/ecrm_101001.owl
--- a/owlInput/ecrm_101001.owl Sun Feb 06 20:22:20 2011 +0100
+++ b/owlInput/ecrm_101001.owl Sun Feb 06 21:19:48 2011 +0100
@@ -52,11 +52,11 @@
+ 1
- 1
@@ -92,11 +92,11 @@
- 1
+ 1
Scope note:
@@ -156,28 +156,28 @@
+ 1
- 1
+
-
+ 1
- 1
@@ -352,12 +352,12 @@
+
+
+
-
-
-
Scope note:
@@ -387,12 +387,12 @@
+
+
+
-
-
-
@@ -426,12 +426,12 @@
- the knowledge about the victory at Marathon carried by the famous runner
+
+
+
-
-
-
@@ -465,21 +465,21 @@
- 1
+ 1
+
+
+
-
-
-
@@ -541,29 +541,29 @@
+ 1
- 1
+ 0
- 0
+ 2
- 2
Scope note:
@@ -605,12 +605,12 @@
+
+
+
-
-
-
@@ -637,31 +637,31 @@
- the Mona Lisa (E22)
+
+
+
1
+
+
+
+
+
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
@@ -679,11 +679,11 @@
- the text of "Doktoro Jekyll kaj Sinjoro Hyde" (an Esperanto translation of Dr Jekyll and Mr Hyde)
+ 1
- 1
@@ -757,11 +757,11 @@
- 1
+ 1
@@ -788,10 +788,10 @@
-
+
Scope note:
@@ -873,11 +873,11 @@
+ 1
- 1
@@ -894,10 +894,10 @@
-
+
@@ -939,12 +939,12 @@
+
+
+
-
-
-
@@ -970,20 +970,20 @@
+
+
+
-
-
-
-
+
Scope note:
@@ -1051,11 +1051,11 @@
+ 1
- 1
Scope note:
@@ -1152,10 +1152,10 @@
-
+
@@ -1245,10 +1245,10 @@
-
+
@@ -1304,10 +1304,10 @@
-
+
@@ -1320,10 +1320,10 @@
-
+
@@ -1353,10 +1353,10 @@
- the last renewal of the gold coating of the Toshogu shrine in Nikko, Japan
+
-
@@ -1380,20 +1380,20 @@
+ 1
- 1
- 1
+ 1
Scope note:
@@ -1420,10 +1420,10 @@
+
-
@@ -1541,11 +1541,11 @@
- 1
+ 1
Scope note:
@@ -1571,11 +1571,11 @@
- 1
+ 1
@@ -1623,12 +1623,12 @@
+
+
+
-
-
-
@@ -1749,11 +1749,11 @@
+ 1
- 1
@@ -1788,10 +1788,10 @@
+
-
@@ -1850,10 +1850,10 @@
- the Doomsday Book
-
+
@@ -1898,16 +1898,6 @@
-
- Scope note:
-This property describes the active or passive presence of an E77 Persistent Item in an E5 Event without implying any specific role.
-It connects the history of a thing with the E53 Place and E50 Date of an event. For example, an object may be the desk, now in a museum on which a treaty was signed. The presence of an immaterial thing implies the presence of at least one of its carriers.
-
-Examples:
-- Deckchair 42 (E19) was present at The sinking of the Titanic (E5)
-
-
-
@@ -1921,6 +1911,16 @@
Examples:
- this plate (E22) was intended for being destroyed at wedding reception (E55)
+
+ Scope note:
+This property describes the active or passive presence of an E77 Persistent Item in an E5 Event without implying any specific role.
+It connects the history of a thing with the E53 Place and E50 Date of an event. For example, an object may be the desk, now in a museum on which a treaty was signed. The presence of an immaterial thing implies the presence of at least one of its carriers.
+
+Examples:
+- Deckchair 42 (E19) was present at The sinking of the Titanic (E5)
+
+
+
@@ -3325,13 +3325,6 @@
-
-
-
-
-
-
-
@@ -3341,6 +3334,13 @@
+
+
+
+
+
+
+
@@ -3868,11 +3868,6 @@
-
-
-
-
-
Scope note:
This property documents a source E32 Authority Document for an instance of an E55 Type.
@@ -3883,6 +3878,11 @@
+
+
+
+
+
@@ -3907,10 +3907,6 @@
-
-
-
-
@@ -3918,6 +3914,10 @@
+
+
+
+
Scope note:
diff -r d9fd32ecae24 -r 72004a788198 owlInput/knowledgeRepresenatation.owl
--- a/owlInput/knowledgeRepresenatation.owl Sun Feb 06 20:22:20 2011 +0100
+++ b/owlInput/knowledgeRepresenatation.owl Sun Feb 06 21:19:48 2011 +0100
@@ -35,9 +35,9 @@
-
1
+
@@ -55,51 +55,9 @@
- 1
-
-
-
-
-
-
-
- 1
-
-
-
-
-
-
-
-
-
-
- 1
-
-
-
-
-
-
-
- 1
-
-
-
-
-
-
-
-
-
-
1
@@ -109,8 +67,50 @@
1
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+
+
+
+
+ 1
@@ -133,11 +133,11 @@
- 1
+ 1
@@ -326,12 +326,12 @@
+
+
+
-
-
-
@@ -339,14 +339,14 @@
+
-
+
-
+
-
diff -r d9fd32ecae24 -r 72004a788198 protege.properties
--- a/protege.properties Sun Feb 06 20:22:20 2011 +0100
+++ b/protege.properties Sun Feb 06 21:19:48 2011 +0100
@@ -1,5 +1,5 @@
#Protege Properties
-#Sun Feb 06 20:19:25 CET 2011
+#Sun Feb 06 20:57:42 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
OntURIBase=http\://www.owl-ontologies.com
diff -r d9fd32ecae24 -r 72004a788198 src/de/mpiwg/dwinter/duomo/lexdump/LexOWLTransformer.java
--- a/src/de/mpiwg/dwinter/duomo/lexdump/LexOWLTransformer.java Sun Feb 06 20:22:20 2011 +0100
+++ b/src/de/mpiwg/dwinter/duomo/lexdump/LexOWLTransformer.java Sun Feb 06 21:19:48 2011 +0100
@@ -27,6 +27,7 @@
import edu.stanford.smi.protege.exception.OntologyLoadException;
import edu.stanford.smi.protege.model.Instance;
+import edu.stanford.smi.protegex.owl.jena.JenaOWLModel;
import edu.stanford.smi.protegex.owl.model.OWLAllValuesFrom;
import edu.stanford.smi.protegex.owl.model.OWLClass;
import edu.stanford.smi.protegex.owl.model.OWLDataRange;
@@ -98,18 +99,22 @@
LexOWLTransformer tf = new LexOWLTransformer(owlDoc, lexDoc);
tf.transform();
- owlDoc.save("file:///tmp/out.owl");
+ //owlDoc.save("file:///tmp/out.owl");
}
- private void transform() throws JDOMException {
+ private void transform() throws URISyntaxException, Exception {
List signatures = lexDoc.getSignatures();
// Element signature = signatures.get(0);
- int signatureCount = 1;
+ int signatureCount = 0;
int maxsign = signatures.size();
for (Element signature : signatures) {
logger.debug(String.format("Signature: %s (%s)", signatureCount,
maxsign));
+
+ signatureCount++;
+ //if (signatureCount<5 || signatureCount>10)
+ // continue;
OWLIndividual signatureInd = createSignature(signature);
@SuppressWarnings("unchecked")
@@ -140,7 +145,9 @@
// record-tag
}
}
- signatureCount++;
+ owlDoc.save("/tmp/out"+String.valueOf(signatureCount)+".owl");
+ logger.debug("Saved:"+"/tmp/out"+String.valueOf(signatureCount)+".owl");
+ owlDoc.reloadOWL();
}
//owlDoc.printModel();
}
diff -r d9fd32ecae24 -r 72004a788198 src/de/mpiwg/dwinter/duomo/lexdump/OWLImporter.java
--- a/src/de/mpiwg/dwinter/duomo/lexdump/OWLImporter.java Sun Feb 06 20:22:20 2011 +0100
+++ b/src/de/mpiwg/dwinter/duomo/lexdump/OWLImporter.java Sun Feb 06 21:19:48 2011 +0100
@@ -32,10 +32,23 @@
Logger logger = Logger.getRootLogger();
private HashMap typeId2className=null;
private HashMap typeId2class=null;
+ private String ontFolder;
+ private URI uri;
public OWLImporter(String folder, URI uri) throws OntologyLoadException {
// owlModel = ProtegeOWL.createJenaOWLModelFromURI(uri);
+ this.ontFolder=folder;
+ this.uri=uri;
+
+ loadOWL(folder, uri);
+ }
+
+ public void reloadOWL() throws OntologyLoadException{
+ loadOWL(ontFolder, uri);
+ }
+
+ public void loadOWL(String folder, URI uri) throws OntologyLoadException {
owlModel = ProtegeOWL.createJenaOWLModel();
// Load repository
RepositoryManager rman = owlModel.getRepositoryManager();