You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(120) |
Sep
(36) |
Oct
(116) |
Nov
(17) |
Dec
(44) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(143) |
Feb
(192) |
Mar
(74) |
Apr
(84) |
May
(105) |
Jun
(64) |
Jul
(49) |
Aug
(120) |
Sep
(159) |
Oct
(156) |
Nov
(51) |
Dec
(28) |
2009 |
Jan
(17) |
Feb
(55) |
Mar
(33) |
Apr
(57) |
May
(54) |
Jun
(28) |
Jul
(6) |
Aug
(16) |
Sep
(38) |
Oct
(30) |
Nov
(26) |
Dec
(52) |
2010 |
Jan
(7) |
Feb
(91) |
Mar
(65) |
Apr
(2) |
May
(14) |
Jun
(25) |
Jul
(38) |
Aug
(48) |
Sep
(80) |
Oct
(70) |
Nov
(75) |
Dec
(77) |
2011 |
Jan
(68) |
Feb
(53) |
Mar
(51) |
Apr
(35) |
May
(65) |
Jun
(101) |
Jul
(29) |
Aug
(230) |
Sep
(95) |
Oct
(49) |
Nov
(110) |
Dec
(63) |
2012 |
Jan
(41) |
Feb
(42) |
Mar
(25) |
Apr
(46) |
May
(51) |
Jun
(44) |
Jul
(45) |
Aug
(29) |
Sep
(12) |
Oct
(9) |
Nov
(17) |
Dec
(2) |
2013 |
Jan
(12) |
Feb
(14) |
Mar
(7) |
Apr
(16) |
May
(54) |
Jun
(27) |
Jul
(11) |
Aug
(5) |
Sep
(85) |
Oct
(27) |
Nov
(37) |
Dec
(32) |
2014 |
Jan
(8) |
Feb
(29) |
Mar
(5) |
Apr
(3) |
May
(22) |
Jun
(3) |
Jul
(4) |
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
From: <sk...@us...> - 2008-10-17 13:38:53
|
Revision: 1383 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1383&view=rev Author: sknappe Date: 2008-10-17 13:38:47 +0000 (Fri, 17 Oct 2008) Log Message: ----------- bugfix mit endpoint Modified Paths: -------------- trunk/src/dbpedia-navigator/DLLearnerConnection.php trunk/src/dbpedia-navigator/main.wsdl Modified: trunk/src/dbpedia-navigator/DLLearnerConnection.php =================================================================== --- trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-10-17 12:46:32 UTC (rev 1382) +++ trunk/src/dbpedia-navigator/DLLearnerConnection.php 2008-10-17 13:38:47 UTC (rev 1383) @@ -131,7 +131,7 @@ function getNaturalDescription($concept) { - return $this->client->getNaturalDescription($concept); + return $this->client->getNaturalDescription($concept, $this->endpoint); } function getConceptDepth() Modified: trunk/src/dbpedia-navigator/main.wsdl =================================================================== --- trunk/src/dbpedia-navigator/main.wsdl 2008-10-17 12:46:32 UTC (rev 1382) +++ trunk/src/dbpedia-navigator/main.wsdl 2008-10-17 13:38:47 UTC (rev 1383) @@ -356,6 +356,7 @@ </message> <message name="getNaturalDescription"> <part name="arg0" type="xsd:string"></part> + <part name="arg1" type="xsd:string"></part> </message> <message name="getNaturalDescriptionResponse"> <part name="return" type="xsd:string"></part> @@ -660,7 +661,7 @@ <output message="tns:SparqlRetrievalResponse"></output> <fault message="tns:ParseException" name="ParseException"></fault> </operation> - <operation name="getNaturalDescription" parameterOrder="arg0"> + <operation name="getNaturalDescription" parameterOrder="arg0 arg1"> <input message="tns:getNaturalDescription"></input> <output message="tns:getNaturalDescriptionResponse"></output> <fault message="tns:ParseException" name="ParseException"></fault> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2008-10-17 12:46:44
|
Revision: 1382 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1382&view=rev Author: sknappe Date: 2008-10-17 12:46:32 +0000 (Fri, 17 Oct 2008) Log Message: ----------- bugfixes Modified Paths: -------------- trunk/src/dbpedia-navigator/ajax_generate_URL.php trunk/src/dbpedia-navigator/ajax_get_article.php trunk/src/dbpedia-navigator/ajax_get_subjects_from_concept.php trunk/src/dbpedia-navigator/ajax_learn_concepts.php Modified: trunk/src/dbpedia-navigator/ajax_generate_URL.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_generate_URL.php 2008-10-16 12:41:49 UTC (rev 1381) +++ trunk/src/dbpedia-navigator/ajax_generate_URL.php 2008-10-17 12:46:32 UTC (rev 1382) @@ -38,6 +38,6 @@ $url='http://'.$_SERVER['HTTP_HOST'].'/dbpedia-navigator/'.$last_action.$attributes; - print '<a href="'.$url.'">'.$url.'</a><br/><br/>'; + print '<font style="font-size:9px"><a href="'.$url.'">'.$url.'</a></font><br/><br/>'; } ?> \ No newline at end of file Modified: trunk/src/dbpedia-navigator/ajax_get_article.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-16 12:41:49 UTC (rev 1381) +++ trunk/src/dbpedia-navigator/ajax_get_article.php 2008-10-17 12:46:32 UTC (rev 1382) @@ -7,8 +7,14 @@ $fromCache=$_POST['cache']; if (isset($_SESSION['articles'])) $articles=$_SESSION['articles']; - $id=$_SESSION['id']; - $ksID=$_SESSION['ksID']; + if (isset($_SESSION['id'])){ + $id=$_SESSION['id']; + $ksID=$_SESSION['ksID']; + } + else{ + print "Your Session expired. Please reload."; + die(); + } //write last action into session if (strpos($subject,"http://dbpedia.org/resource/")===0) $actionuri=substr (strrchr ($subject, "/"), 1); @@ -62,7 +68,7 @@ // display a picture if there is one if (isset($triples['http://dbpedia.org/property/imageCaption'])&&$triples['http://dbpedia.org/property/imageCaption'][0]['type']!='uri') $alt=$triples['http://dbpedia.org/property/imageCaption'][0]['value']; - else if (isset($triples['http://dbpedia.org/property/caption'])&&$triples['http://dbpedia.org/property/imageCaption'][0]['type']!='uri') $alt=$triples['http://dbpedia.org/property/caption'][0]['value']; + else if (isset($triples['http://dbpedia.org/property/caption'])&&$triples['http://dbpedia.org/property/caption'][0]['type']!='uri') $alt=$triples['http://dbpedia.org/property/caption'][0]['value']; else $alt='Picture of '.$artTitle; if(isset($triples['http://xmlns.com/foaf/0.1/depiction'])&&@fopen($triples['http://xmlns.com/foaf/0.1/depiction'][0]['value'], 'r')){ Modified: trunk/src/dbpedia-navigator/ajax_get_subjects_from_concept.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_get_subjects_from_concept.php 2008-10-16 12:41:49 UTC (rev 1381) +++ trunk/src/dbpedia-navigator/ajax_get_subjects_from_concept.php 2008-10-17 12:46:32 UTC (rev 1382) @@ -8,8 +8,14 @@ $kb=str_replace('\"','"',$kb); session_start(); - $id=$_SESSION['id']; - $ksID=$_SESSION['ksID']; + if (isset($_SESSION['id'])){ + $id=$_SESSION['id']; + $ksID=$_SESSION['ksID']; + } + else{ + print "Your Session expired. Please reload."; + die(); + } //write last action into session $actionuri=urlencode($kb); $_SESSION['lastAction']='searchConceptInstances/'.$actionuri; Modified: trunk/src/dbpedia-navigator/ajax_learn_concepts.php =================================================================== --- trunk/src/dbpedia-navigator/ajax_learn_concepts.php 2008-10-16 12:41:49 UTC (rev 1381) +++ trunk/src/dbpedia-navigator/ajax_learn_concepts.php 2008-10-17 12:46:32 UTC (rev 1382) @@ -9,8 +9,14 @@ if (isset($_SESSION['positive'])) $positives=$_SESSION['positive']; if (isset($_SESSION['negative'])) $negatives=$_SESSION['negative']; - $id=$_SESSION['id']; - $ksID=$_SESSION['ksID']; + if (isset($_SESSION['id'])){ + $id=$_SESSION['id']; + $ksID=$_SESSION['ksID']; + } + else{ + print "Your Session expired. Please reload."; + die(); + } session_write_close(); setRunning($id,"true"); $concept=""; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ku...@us...> - 2008-10-16 12:41:54
|
Revision: 1381 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1381&view=rev Author: kurzum Date: 2008-10-16 12:41:49 +0000 (Thu, 16 Oct 2008) Log Message: ----------- added fact to build.xml scripts Modified Paths: -------------- trunk/build.xml Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2008-10-15 11:21:49 UTC (rev 1380) +++ trunk/build.xml 2008-10-16 12:41:49 UTC (rev 1381) @@ -265,14 +265,14 @@ <map from="${removeprefix}" to="."/> </pathconvert> - <echo file="bin/quickstart.bat" message="java -Xmx${max_memory}m -cp ${pathStringWin} org.dllearner.cli.QuickStart"/> - <echo file="bin/dllearner.bat" message="java -Xmx${max_memory}m -cp ${pathStringWin} org.dllearner.cli.Start %*"/> - <echo file="bin/ws.bat" message="java -Xmx${max_memory}m -cp ${pathStringWin} org.dllearner.server.DLLearnerWSStart %*"/> - <echo file="bin/gui.bat" message="java -Xmx${max_memory}m -cp ${pathStringWin} org.dllearner.gui.StartGUI %*"/> - <echo file="bin/quickstart" message="#!/bin/bash${line.separator}java -Xmx${max_memory}m -cp ${pathStringUnix} org.dllearner.cli.QuickStart"/> - <echo file="bin/dllearner" message="#!/bin/bash${line.separator}java -Xmx${max_memory}m -cp ${pathStringUnix} org.dllearner.cli.Start $@"/> - <echo file="bin/ws" message="#!/bin/bash${line.separator}java -Xmx${max_memory}m -cp ${pathStringUnix} org.dllearner.server.DLLearnerWSStart $@"/> - <echo file="bin/gui" message="#!/bin/bash${line.separator}java -Xmx${max_memory}m -cp ${pathStringUnix} org.dllearner.gui.StartGUI $@"/> + <echo file="bin/quickstart.bat" message="java -Xmx${max_memory}m -Djava.library.path=lib/fact/ -cp ${pathStringWin} org.dllearner.cli.QuickStart"/> + <echo file="bin/dllearner.bat" message="java -Xmx${max_memory}m -Djava.library.path=lib/fact/ -cp ${pathStringWin} org.dllearner.cli.Start %*"/> + <echo file="bin/ws.bat" message="java -Xmx${max_memory}m -Djava.library.path=lib/fact/ -cp ${pathStringWin} org.dllearner.server.DLLearnerWSStart %*"/> + <echo file="bin/gui.bat" message="java -Xmx${max_memory}m -Djava.library.path=lib/fact/ -cp ${pathStringWin} org.dllearner.gui.StartGUI %*"/> + <echo file="bin/quickstart" message="#!/bin/bash${line.separator}java -Xmx${max_memory}m -Djava.library.path=lib/fact/ -cp ${pathStringUnix} org.dllearner.cli.QuickStart"/> + <echo file="bin/dllearner" message="#!/bin/bash${line.separator}java -Xmx${max_memory}m -Djava.library.path=lib/fact/ -cp ${pathStringUnix} org.dllearner.cli.Start $@"/> + <echo file="bin/ws" message="#!/bin/bash${line.separator}java -Xmx${max_memory}m -Djava.library.path=lib/fact/ -cp ${pathStringUnix} org.dllearner.server.DLLearnerWSStart $@"/> + <echo file="bin/gui" message="#!/bin/bash${line.separator}java -Xmx${max_memory}m -Djava.library.path=lib/fact/ -cp ${pathStringUnix} org.dllearner.gui.StartGUI $@"/> </target> <!-- generate Javadoc --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hee...@us...> - 2008-10-15 11:21:53
|
Revision: 1380 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1380&view=rev Author: heeroyuy Date: 2008-10-15 11:21:49 +0000 (Wed, 15 Oct 2008) Log Message: ----------- -checkstyle warnings fixed Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/tools/protege/MoreDetailForSuggestedConceptsPanel.java trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java Modified: trunk/src/dl-learner/org/dllearner/tools/protege/MoreDetailForSuggestedConceptsPanel.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/MoreDetailForSuggestedConceptsPanel.java 2008-10-15 11:15:18 UTC (rev 1379) +++ trunk/src/dl-learner/org/dllearner/tools/protege/MoreDetailForSuggestedConceptsPanel.java 2008-10-15 11:21:49 UTC (rev 1380) @@ -195,7 +195,7 @@ private void setInformation() { if(eval!=null) { //sets the accuracy of the selected concept - conceptText.append(eval.getDescription().toManchesterSyntaxString(model.getURI().toString()+"#",null)); + conceptText.append(eval.getDescription().toManchesterSyntaxString(model.getURI().toString()+"#", null)); double acc = (eval.getAccuracy())*100; accuracyText.append(String.valueOf(acc)+"%"); //sets the positive examples that are covered Modified: trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java 2008-10-15 11:15:18 UTC (rev 1379) +++ trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java 2008-10-15 11:21:49 UTC (rev 1380) @@ -120,7 +120,7 @@ //checker = new OWLDescriptionChecker(editorKit); editor = new ExpressionEditor<OWLDescription>(editorKit, editorKit.getModelManager().getOWLExpressionCheckerFactory().getOWLDescriptionChecker()); editor.setExpressionObject(description); - dllearner = new DLLearnerView(frame, label, this); + dllearner = new DLLearnerView(frame, label); action = new ActionHandler(this.action, null, dllearner, null, editorKit); tabbedPane = new JTabbedPane(); @@ -363,9 +363,8 @@ * @param current OWLFrame * @param label String */ - public DLLearnerView(OWLFrame<OWLClass> current, String label, OWLClassDescriptionEditorWithDLLearnerTab tab) { + public DLLearnerView(OWLFrame<OWLClass> current, String label) { classSelectorPanel = new OWLClassSelectorPanel(editorKit); - mainWindow = tab; classSelectorPanel.firePropertyChange("test", false, true); URL iconUrl = this.getClass().getResource("arrow.gif"); icon = new ImageIcon(iconUrl); @@ -393,7 +392,7 @@ learner.setPreferredSize(new Dimension(600, 520)); accept.setPreferredSize(new Dimension(290, 50)); advanced.setName("Advanced"); - posPanel = new PosAndNegSelectPanel(model, action, this); + posPanel = new PosAndNegSelectPanel(model, action); addAcceptButtonListener(this.action); addRunButtonListener(this.action); addAdvancedButtonListener(this.action); @@ -418,8 +417,7 @@ * Returns the Mainwindow where the Plugin is integratet. * @return OWLClassDescriptionWithDLLearnerTab MainWindow */ - public OWLClassDescriptionEditorWithDLLearnerTab getMainWindow() - { + public OWLClassDescriptionEditorWithDLLearnerTab getMainWindow() { return mainWindow; } /** Modified: trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java 2008-10-15 11:15:18 UTC (rev 1379) +++ trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java 2008-10-15 11:21:49 UTC (rev 1380) @@ -106,7 +106,7 @@ * @param act * ActionHandler */ - public PosAndNegSelectPanel(DLLearnerModel model, ActionHandler act, OWLClassDescriptionEditorWithDLLearnerTab.DLLearnerView window) { + public PosAndNegSelectPanel(DLLearnerModel model, ActionHandler act) { super(); pos = new JLabel("Positive Examples"); neg = new JLabel("Negative Examples"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hee...@us...> - 2008-10-15 11:15:27
|
Revision: 1379 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1379&view=rev Author: heeroyuy Date: 2008-10-15 11:15:18 +0000 (Wed, 15 Oct 2008) Log Message: ----------- -add new necessary libraries to run the protege plugin Modified Paths: -------------- trunk/lib/protege/org.protege.editor.core.application.jar trunk/lib/protege/org.protege.editor.owl.jar Modified: trunk/lib/protege/org.protege.editor.core.application.jar =================================================================== (Binary files differ) Modified: trunk/lib/protege/org.protege.editor.owl.jar =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hee...@us...> - 2008-10-15 11:14:37
|
Revision: 1378 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1378&view=rev Author: heeroyuy Date: 2008-10-15 11:14:27 +0000 (Wed, 15 Oct 2008) Log Message: ----------- -removed deprecated warning Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java Modified: trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java 2008-10-15 10:12:15 UTC (rev 1377) +++ trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java 2008-10-15 11:14:27 UTC (rev 1378) @@ -19,33 +19,51 @@ */ package org.dllearner.tools.protege; +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Dimension; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.net.URL; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +import javax.swing.BorderFactory; +import javax.swing.ImageIcon; +import javax.swing.JButton; +import javax.swing.JComboBox; +import javax.swing.JComponent; +import javax.swing.JLabel; +import javax.swing.JPanel; +import javax.swing.JScrollPane; +import javax.swing.JSpinner; +import javax.swing.JSplitPane; +import javax.swing.JTabbedPane; +import javax.swing.JTextArea; +import javax.swing.JToggleButton; +import javax.swing.SpinnerNumberModel; +import javax.swing.event.ChangeEvent; +import javax.swing.event.ChangeListener; + import org.protege.editor.core.ui.util.ComponentFactory; import org.protege.editor.core.ui.util.InputVerificationStatusChangedListener; import org.protege.editor.core.ui.util.VerifiedInputEditor; import org.protege.editor.owl.OWLEditorKit; +import org.protege.editor.owl.model.cache.OWLExpressionUserCache; +import org.protege.editor.owl.ui.clsdescriptioneditor.ExpressionEditor; import org.protege.editor.owl.ui.frame.AbstractOWLFrameSectionRowObjectEditor; -import org.protege.editor.owl.ui.clsdescriptioneditor.ExpressionEditor; -//import org.protege.editor.owl.ui.clsdescriptioneditor.OWLDescriptionChecker; +import org.protege.editor.owl.ui.frame.OWLFrame; import org.protege.editor.owl.ui.selector.OWLClassSelectorPanel; import org.protege.editor.owl.ui.selector.OWLObjectPropertySelectorPanel; +import org.semanticweb.owl.model.OWLClass; import org.semanticweb.owl.model.OWLDataFactory; import org.semanticweb.owl.model.OWLDescription; import org.semanticweb.owl.model.OWLException; -import org.semanticweb.owl.model.OWLClass; import org.semanticweb.owl.model.OWLObjectProperty; -import org.protege.editor.owl.ui.frame.*; - -import javax.swing.*; -import javax.swing.event.ChangeEvent; -import javax.swing.event.ChangeListener; -import java.awt.*; -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; -import java.util.*; -import java.util.List; -import java.net.*; - /** * Added a new Tab for the DL-Learner GUI. * @@ -214,10 +232,11 @@ */ public OWLDescription getEditedObject() { try { + if (editor.isWellFormed()) { - String expression = editor.getText(); - return editorKit.getModelManager().getOWLDescriptionParser() - .createOWLDescription(expression); + OWLDescription owlDescription = editor.createObject(); + OWLExpressionUserCache.getInstance(editorKit.getModelManager()).add(owlDescription, editor.getText()); + return owlDescription; } if (!dllearner.getSollutions().isEmpty()) { return dllearner.getSollution(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hee...@us...> - 2008-10-15 10:12:21
|
Revision: 1377 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1377&view=rev Author: heeroyuy Date: 2008-10-15 10:12:15 +0000 (Wed, 15 Oct 2008) Log Message: ----------- -new images for the advanced button -put helpmessages on a JOptionPane instead of an new JPanel Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java Added Paths: ----------- trunk/src/dl-learner/org/dllearner/tools/protege/arrow.gif trunk/src/dl-learner/org/dllearner/tools/protege/arrow2.gif Removed Paths: ------------- trunk/src/dl-learner/org/dllearner/tools/protege/pfeil.gif trunk/src/dl-learner/org/dllearner/tools/protege/pfeil2.gif Modified: trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java 2008-10-15 09:10:58 UTC (rev 1376) +++ trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java 2008-10-15 10:12:15 UTC (rev 1377) @@ -59,8 +59,6 @@ private EvaluatedDescription evaluatedDescription; // This is the view of the DL-Learner tab. private OWLClassDescriptionEditorWithDLLearnerTab.DLLearnerView view; - private int counter; - private EvaluatedDescription oldEvaluatedDescription; /** * This is the constructor for the action handler. @@ -81,7 +79,6 @@ this.editorKit = editor; this.view = view; this.id = i; - counter = 0; this.model = m; toggled = false; @@ -92,8 +89,6 @@ * @param z ActionEvent */ public void actionPerformed(ActionEvent z) { - - System.out.println("Doppelklick?: "+ z); if(z.getActionCommand().equals("comboBoxChanged")) { view.getPosAndNegSelectPanel().setOptionSpinner(); } @@ -240,7 +235,6 @@ */ public void mouseClicked(MouseEvent m) { EvaluatedDescription eDescription = null; - oldEvaluatedDescription = evaluatedDescription; String desc = view.getSuggestClassPanel().getSuggestList() .getSelectedValue().toString(); if (model.getEvaluatedDescriptionList() != null) { Modified: trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java 2008-10-15 09:10:58 UTC (rev 1376) +++ trunk/src/dl-learner/org/dllearner/tools/protege/DLLearnerModel.java 2008-10-15 10:12:15 UTC (rev 1377) @@ -763,7 +763,6 @@ // TODO Auto-generated catch block e.printStackTrace(); } - } /** Modified: trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java 2008-10-15 09:10:58 UTC (rev 1376) +++ trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java 2008-10-15 10:12:15 UTC (rev 1377) @@ -102,7 +102,7 @@ //checker = new OWLDescriptionChecker(editorKit); editor = new ExpressionEditor<OWLDescription>(editorKit, editorKit.getModelManager().getOWLExpressionCheckerFactory().getOWLDescriptionChecker()); editor.setExpressionObject(description); - dllearner = new DLLearnerView(frame, label); + dllearner = new DLLearnerView(frame, label, this); action = new ActionHandler(this.action, null, dllearner, null, editorKit); tabbedPane = new JTabbedPane(); @@ -279,7 +279,7 @@ public class DLLearnerView extends JPanel { private static final long serialVersionUID = 624829578325729385L; - + private OWLClassDescriptionEditorWithDLLearnerTab mainWindow; // this is the Component which shows the view of the dllearner private JComponent learner; @@ -344,12 +344,13 @@ * @param current OWLFrame * @param label String */ - public DLLearnerView(OWLFrame<OWLClass> current, String label) { + public DLLearnerView(OWLFrame<OWLClass> current, String label, OWLClassDescriptionEditorWithDLLearnerTab tab) { classSelectorPanel = new OWLClassSelectorPanel(editorKit); + mainWindow = tab; classSelectorPanel.firePropertyChange("test", false, true); - URL iconUrl = this.getClass().getResource("pfeil.gif"); + URL iconUrl = this.getClass().getResource("arrow.gif"); icon = new ImageIcon(iconUrl); - URL toggledIconUrl = this.getClass().getResource("pfeil2.gif"); + URL toggledIconUrl = this.getClass().getResource("arrow2.gif"); toggledIcon = new ImageIcon(toggledIconUrl); model = new DLLearnerModel(editorKit, current, label, this); sugPanel = new SuggestClassPanel(); @@ -393,8 +394,16 @@ public PosAndNegSelectPanel getPosAndNegSelectPanel() { return posPanel; } - + /** + * Returns the Mainwindow where the Plugin is integratet. + * @return OWLClassDescriptionWithDLLearnerTab MainWindow + */ + public OWLClassDescriptionEditorWithDLLearnerTab getMainWindow() + { + return mainWindow; + } + /** * This Method renders the view of the plugin. */ public void makeView() { Modified: trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java 2008-10-15 09:10:58 UTC (rev 1376) +++ trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java 2008-10-15 10:12:15 UTC (rev 1377) @@ -19,21 +19,18 @@ */ package org.dllearner.tools.protege; -import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.GridLayout; import javax.swing.JButton; import javax.swing.JComboBox; -import javax.swing.JDialog; import javax.swing.JLabel; +import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JSpinner; -import javax.swing.JTextArea; import javax.swing.SpinnerNumberModel; -import javax.swing.WindowConstants; /** * This class is the Panel for the Check boxes where the positive and negative @@ -92,11 +89,6 @@ // This is the Text area where the help message is displayed. - private JTextArea help; - - // This is the frame that pops up when the help button is pressed. - - private JDialog assistPanel; private JComboBox optionBox; private JPanel optionBoxPanel; private JPanel spinnerPanel; @@ -105,8 +97,6 @@ private SpinnerNumberModel maxExecutionModel; private JSpinner optionSpinner; private ActionHandler action; - private OWLClassDescriptionEditorWithDLLearnerTab.DLLearnerView view; - private final Color colorBlack = Color.black; /** * This is the constructor for the Panel that shows the check boxes. @@ -119,7 +109,6 @@ public PosAndNegSelectPanel(DLLearnerModel model, ActionHandler act, OWLClassDescriptionEditorWithDLLearnerTab.DLLearnerView window) { super(); pos = new JLabel("Positive Examples"); - view = window; neg = new JLabel("Negative Examples"); optionBoxPanel = new JPanel(new GridLayout(0, 1)); spinnerPanel = new JPanel(new GridLayout(0, 1)); @@ -300,28 +289,12 @@ */ public void renderHelpMessage(String assistance) { // renders scroll bar if necessary - JScrollPane scrollHelp = new JScrollPane( - JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, - JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); - help = new JTextArea(); - assistPanel = new JDialog(); - // no writing in the help panel is allowed - help.setEditable(false); - assistPanel.setName("help"); - assistPanel.setSize(300, 100); - // window will be disposed if the x or the ok button is pressed - assistPanel.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); - assistPanel.setVisible(true); - assistPanel.setResizable(false); - // sets textcolor to black - help.setForeground(colorBlack); - help.setText("Help: " + assistance); - scrollHelp.setViewportView(help); - scrollHelp.setBounds(0, 0, 300, 100); - assistPanel.add(scrollHelp); - assistPanel.setLocationRelativeTo(view); + JOptionPane.showMessageDialog(null, + assistance, + "Help", + JOptionPane.WARNING_MESSAGE); } - + /** * This method adds the Action listener to the help buttons. * Added: trunk/src/dl-learner/org/dllearner/tools/protege/arrow.gif =================================================================== (Binary files differ) Property changes on: trunk/src/dl-learner/org/dllearner/tools/protege/arrow.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/src/dl-learner/org/dllearner/tools/protege/arrow2.gif =================================================================== (Binary files differ) Property changes on: trunk/src/dl-learner/org/dllearner/tools/protege/arrow2.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Deleted: trunk/src/dl-learner/org/dllearner/tools/protege/pfeil.gif =================================================================== (Binary files differ) Deleted: trunk/src/dl-learner/org/dllearner/tools/protege/pfeil2.gif =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hee...@us...> - 2008-10-15 09:11:31
|
Revision: 1376 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1376&view=rev Author: heeroyuy Date: 2008-10-15 09:10:58 +0000 (Wed, 15 Oct 2008) Log Message: ----------- -add double click listener -add name of the concept to the detail panel Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java trunk/src/dl-learner/org/dllearner/tools/protege/MoreDetailForSuggestedConceptsPanel.java trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java trunk/src/dl-learner/org/dllearner/tools/protege/SuggestClassPanel.java Modified: trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java 2008-10-13 15:56:08 UTC (rev 1375) +++ trunk/src/dl-learner/org/dllearner/tools/protege/ActionHandler.java 2008-10-15 09:10:58 UTC (rev 1376) @@ -93,7 +93,7 @@ */ public void actionPerformed(ActionEvent z) { - + System.out.println("Doppelklick?: "+ z); if(z.getActionCommand().equals("comboBoxChanged")) { view.getPosAndNegSelectPanel().setOptionSpinner(); } @@ -257,22 +257,10 @@ } } - System.out.println("old: " + oldEvaluatedDescription); - if (oldEvaluatedDescription != null) { - - if (oldEvaluatedDescription != evaluatedDescription) { - counter = 0; - } - counter++; - } else { - counter++; - } - if (counter == 2) { - counter = 0; + if(m.getClickCount()==2) { view.getMoreDetailForSuggestedConceptsPanel().renderDetailPanel( evaluatedDescription); } - System.out.println("Counter: " + counter); } /** Modified: trunk/src/dl-learner/org/dllearner/tools/protege/MoreDetailForSuggestedConceptsPanel.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/MoreDetailForSuggestedConceptsPanel.java 2008-10-13 15:56:08 UTC (rev 1375) +++ trunk/src/dl-learner/org/dllearner/tools/protege/MoreDetailForSuggestedConceptsPanel.java 2008-10-15 09:10:58 UTC (rev 1376) @@ -103,6 +103,8 @@ private EvaluatedDescription eval; private final Color colorRed = Color.red; + private JTextArea concept; + private JTextArea conceptText; private final Color colorGreen = Color.green; /** * This is the constructor for the Panel. @@ -126,8 +128,11 @@ */ public void renderDetailPanel(EvaluatedDescription desc) { eval = desc; + accuracy = new JTextArea("Accuracy:"); accuracy.setEditable(false); + conceptText = new JTextArea(); + conceptText.setEditable(false); posCoveredText = new JTextArea(); posCoveredText.setForeground(colorGreen); //sets covered positive examples text area not editable @@ -151,6 +156,8 @@ examplePanel = new JPanel(new GridLayout(0, 2)); //this method adds the informations for the selected concept to the panel setInformation(); + concept = new JTextArea("Concept:"); + concept.setEditable(false); coveredPositiveExamples = new JLabel("Covered Positive Examples:"); coveredPositiveExamples.setForeground(colorGreen); notCoveredPositiveExamples = new JLabel("Not Covered Positive Examples"); @@ -167,6 +174,8 @@ detailPopup.setResizable(false); detailScroll = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); //adds all information to the example panel + examplePanel.add(concept); + examplePanel.add(conceptText); examplePanel.add(accuracy); examplePanel.add(accuracyText); examplePanel.add(coveredPositiveExamples); @@ -186,6 +195,7 @@ private void setInformation() { if(eval!=null) { //sets the accuracy of the selected concept + conceptText.append(eval.getDescription().toManchesterSyntaxString(model.getURI().toString()+"#",null)); double acc = (eval.getAccuracy())*100; accuracyText.append(String.valueOf(acc)+"%"); //sets the positive examples that are covered Modified: trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java 2008-10-13 15:56:08 UTC (rev 1375) +++ trunk/src/dl-learner/org/dllearner/tools/protege/OWLClassDescriptionEditorWithDLLearnerTab.java 2008-10-15 09:10:58 UTC (rev 1376) @@ -373,7 +373,7 @@ learner.setPreferredSize(new Dimension(600, 520)); accept.setPreferredSize(new Dimension(290, 50)); advanced.setName("Advanced"); - posPanel = new PosAndNegSelectPanel(model, action); + posPanel = new PosAndNegSelectPanel(model, action, this); addAcceptButtonListener(this.action); addRunButtonListener(this.action); addAdvancedButtonListener(this.action); Modified: trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java 2008-10-13 15:56:08 UTC (rev 1375) +++ trunk/src/dl-learner/org/dllearner/tools/protege/PosAndNegSelectPanel.java 2008-10-15 09:10:58 UTC (rev 1376) @@ -105,6 +105,7 @@ private SpinnerNumberModel maxExecutionModel; private JSpinner optionSpinner; private ActionHandler action; + private OWLClassDescriptionEditorWithDLLearnerTab.DLLearnerView view; private final Color colorBlack = Color.black; /** @@ -115,9 +116,10 @@ * @param act * ActionHandler */ - public PosAndNegSelectPanel(DLLearnerModel model, ActionHandler act) { + public PosAndNegSelectPanel(DLLearnerModel model, ActionHandler act, OWLClassDescriptionEditorWithDLLearnerTab.DLLearnerView window) { super(); pos = new JLabel("Positive Examples"); + view = window; neg = new JLabel("Negative Examples"); optionBoxPanel = new JPanel(new GridLayout(0, 1)); spinnerPanel = new JPanel(new GridLayout(0, 1)); @@ -317,6 +319,7 @@ scrollHelp.setViewportView(help); scrollHelp.setBounds(0, 0, 300, 100); assistPanel.add(scrollHelp); + assistPanel.setLocationRelativeTo(view); } /** Modified: trunk/src/dl-learner/org/dllearner/tools/protege/SuggestClassPanel.java =================================================================== --- trunk/src/dl-learner/org/dllearner/tools/protege/SuggestClassPanel.java 2008-10-13 15:56:08 UTC (rev 1375) +++ trunk/src/dl-learner/org/dllearner/tools/protege/SuggestClassPanel.java 2008-10-15 09:10:58 UTC (rev 1376) @@ -95,11 +95,13 @@ } /** - * this method adds the suggest list to the Mouse Listener. + * This method adds the suggest list to the Mouse Listener. * @param action ActionHandler */ public void addSuggestPanelMouseListener(ActionHandler action) { descriptions.addMouseListener(action); - } + } + + } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2008-10-13 15:56:23
|
Revision: 1375 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1375&view=rev Author: jenslehmann Date: 2008-10-13 15:56:08 +0000 (Mon, 13 Oct 2008) Log Message: ----------- added INSTALL and README to build, extended INSTALL Modified Paths: -------------- trunk/INSTALL trunk/build.xml Removed Paths: ------------- trunk/examples/commandcollection.txt Modified: trunk/INSTALL =================================================================== --- trunk/INSTALL 2008-10-13 12:34:43 UTC (rev 1374) +++ trunk/INSTALL 2008-10-13 15:56:08 UTC (rev 1375) @@ -1,6 +1,6 @@ Requirements ============ -Java 6 and a reasoner is required. +Java 6 is required. (All other libraries are included in the release.) Installation ============ @@ -20,9 +20,12 @@ Run "dllearner.bat" followed by the name of the file to process, e.g. "dllearner.bat examples/father.conf". -All: +As a convenience method, you can also run "quickstart". The script will present a +numbered list of all examples found in the examples folder, where you can choose +an examples. You can also call "gui" and load one of the conf files, change try +differnt configuration options etc. -You can use the "java" command to run the program directly. Have a look at +Note: You can also use the "java" command to run the program directly. Have a look at "dllearner" and "dllearner.bat" to see what the command looks like. Web-Service @@ -30,5 +33,14 @@ If you want to run DL-Learner as a Web Service, you can run the scripts "ws" or "ws.bat". They create an own local webserver running DL-Learner. Some simple -PHP example for using the web service are available at our SVN Repository: +PHP examples for using the web service are available at our SVN Repository: http://dl-learner.svn.sourceforge.net/viewvc/dl-learner/trunk/src/php-examples/ + + +Developers +==================== + +An example script on how to use DL-Learner is available in Java at +src/dl-learner/org/dllearner/scripts/NewSample.java. Please drop us a note +(mail: le...@in...) if you plan to use DL-Learner or +have further questions. Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2008-10-13 12:34:43 UTC (rev 1374) +++ trunk/build.xml 2008-10-13 15:56:08 UTC (rev 1375) @@ -154,6 +154,10 @@ </fileset> </copy> + <!-- copy special files (INSTALL, README) --> + <copy file="INSTALL" toDir="${release_tmp_dir}" /> + <copy file="README" toDir="${release_tmp_dir}" /> + <!-- create tar.gz files (allows storing whether a file is executable) --> <tar longfile="gnu" destfile="dllearner-nosource-${today}.tar.gz" compression="gzip"> <!-- extra set for executable files --> Deleted: trunk/examples/commandcollection.txt =================================================================== --- trunk/examples/commandcollection.txt 2008-10-13 12:34:43 UTC (rev 1374) +++ trunk/examples/commandcollection.txt 2008-10-13 15:56:08 UTC (rev 1375) @@ -1,72 +0,0 @@ -// just a collection of options for copy and paste -// not complete !!! - -// control output -showIndividuals = true; -showConcepts = true; -showRoles = true; -showInternalKB = true; -showSubsumptionHierarchy = true; - -// do not display http://localhost/foo# in concepts -// and roles to make the output more readable -hidePrefix("http://localhost/foo#"); - -// reasoner settings -reasoner = dig; -reasoner = fastInstanceChecker; -digReasonerURL = "http://localhost:8081"; -useRetrievalForClassification = true; -refinement.useDIGMultiInstanceChecks = twoChecks; - -// algorithm settings -algorithm = refinement; -algorithm = refexamples; -refinement.horizontalExpansionFactor = 0.6; -refinement.quiet = false; -refinement.useTooWeakList = true; -refinement.heuristic = flexible; -refinement.ignoredConcepts={"http://www.test.de/test#ONE"}; -refexamples.ignoredConcepts={"http://www.test.de/test#ONE"}; -percentPerLengthUnit = 0.05; - -//learning problems -problem = posOnlyDefinition; - -// search tree protocol -refinement.writeSearchTree = false; -refinement.searchTreeFile = "log/SearchTree.txt"; -refinement.replaceSearchTree = false; - - -//dig protocol -writeDIGProtocol = true; -digProtocolFile = "dig.log"; - -//knowledgesources -import("someFile.kb"); -import("someFile.owl"); - - -// SPARQL options -sparql.recursionDepth = 1; - -//predefined filter (1 = YAGO based learning) -sparql.predefinedFilter = 5; -sparql.predefinedEndpoint = 1; - -//*********SKOS specific -// replace skos with owl properties -sparql.replacePredicate = [ -("http://www.w3.org/2004/02/skos/core#subject","http://www.w3.org/1999/02/22-rdf-syntax-ns#type"), -("http://www.w3.org/2004/02/skos/core#broader","http://www.w3.org/2000/01/rdf-schema#subClassOf")]; - -// because skos is cyclic this stops it -//manually after retrieving the specified amount of classes -sparql.breakSuperClassRetrievalAfter=200; - - -import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL"); -sparql.instances = {}; - -posNegDefinition.percentPerLengthUnit = 0.10; \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2008-10-13 12:34:53
|
Revision: 1374 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1374&view=rev Author: jenslehmann Date: 2008-10-13 12:34:43 +0000 (Mon, 13 Oct 2008) Log Message: ----------- added configurable Xmx value to build script Modified Paths: -------------- trunk/bin/dllearner trunk/bin/dllearner.bat trunk/bin/gui trunk/bin/gui.bat trunk/bin/quickstart trunk/bin/quickstart.bat trunk/bin/ws trunk/bin/ws.bat trunk/build.xml Modified: trunk/bin/dllearner =================================================================== --- trunk/bin/dllearner 2008-10-13 11:58:54 UTC (rev 1373) +++ trunk/bin/dllearner 2008-10-13 12:34:43 UTC (rev 1374) @@ -1 +1,2 @@ -java -cp .:./lib/dig1.1-xmlbeans.jar:./lib/fact/FaCTpp-OWLAPI-v1.1.11.jar:./lib/jamon-2.7.jar:./lib/jena/antlr-2.7.5.jar:./lib/jena/arq.jar:./lib/jena/commons-logging-1.1.1.jar:./lib/jena/concurrent.jar:./lib/jena/icu4j_3_4.jar:./lib/jena/iri.jar:./lib/jena/jena.jar:./lib/jena/json.jar:./lib/jena/xercesImpl.jar:./lib/junit-4.4.jar:./lib/log4j.jar:./lib/mysql/mysql-connector-java-5.1.6-bin.jar:./lib/ore-tool/swingx-0.9.2.jar:./lib/owlapi/owlapi-bin.jar:./lib/pellet/aterm-java-1.6.jar:./lib/pellet/pellet.jar:./lib/pellet/relaxngDatatype.jar:./lib/pellet/xsdlib.jar:./lib/protege/org.protege.editor.core.application.jar:./lib/protege/org.protege.editor.owl.jar:./lib/xbean.jar:./lib/dllearner.jar org.dllearner.cli.Start $@ \ No newline at end of file +#!/bin/bash +java -Xmx512m -cp .:./lib/dig1.1-xmlbeans.jar:./lib/fact/FaCTpp-OWLAPI-v1.1.11.jar:./lib/jamon-2.7.jar:./lib/jena/antlr-2.7.5.jar:./lib/jena/arq.jar:./lib/jena/commons-logging-1.1.1.jar:./lib/jena/concurrent.jar:./lib/jena/icu4j_3_4.jar:./lib/jena/iri.jar:./lib/jena/jena.jar:./lib/jena/json.jar:./lib/jena/xercesImpl.jar:./lib/junit-4.4.jar:./lib/log4j.jar:./lib/mysql/mysql-connector-java-5.1.6-bin.jar:./lib/ore-tool/swingx-0.9.2.jar:./lib/owlapi/owlapi-bin.jar:./lib/pellet/aterm-java-1.6.jar:./lib/pellet/pellet.jar:./lib/pellet/relaxngDatatype.jar:./lib/pellet/xsdlib.jar:./lib/protege/org.protege.editor.core.application.jar:./lib/protege/org.protege.editor.owl.jar:./lib/xbean.jar:./lib/dllearner.jar org.dllearner.cli.Start $@ \ No newline at end of file Modified: trunk/bin/dllearner.bat =================================================================== --- trunk/bin/dllearner.bat 2008-10-13 11:58:54 UTC (rev 1373) +++ trunk/bin/dllearner.bat 2008-10-13 12:34:43 UTC (rev 1374) @@ -1 +1 @@ -java -Xmx1024m -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\fact\FaCTpp-OWLAPI-v1.1.11.jar;.\lib\jamon-2.7.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\arq.jar;.\lib\jena\commons-logging-1.1.1.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\json.jar;.\lib\jena\xercesImpl.jar;.\lib\junit-4.4.jar;.\lib\log4j.jar;.\lib\mysql\mysql-connector-java-5.1.6-bin.jar;.\lib\ore-tool\swingx-0.9.2.jar;.\lib\owlapi\owlapi-bin.jar;.\lib\pellet\aterm-java-1.6.jar;.\lib\pellet\pellet.jar;.\lib\pellet\relaxngDatatype.jar;.\lib\pellet\xsdlib.jar;.\lib\protege\org.protege.editor.core.application.jar;.\lib\protege\org.protege.editor.owl.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.cli.Start %* \ No newline at end of file +java -Xmx512m -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\fact\FaCTpp-OWLAPI-v1.1.11.jar;.\lib\jamon-2.7.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\arq.jar;.\lib\jena\commons-logging-1.1.1.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\json.jar;.\lib\jena\xercesImpl.jar;.\lib\junit-4.4.jar;.\lib\log4j.jar;.\lib\mysql\mysql-connector-java-5.1.6-bin.jar;.\lib\ore-tool\swingx-0.9.2.jar;.\lib\owlapi\owlapi-bin.jar;.\lib\pellet\aterm-java-1.6.jar;.\lib\pellet\pellet.jar;.\lib\pellet\relaxngDatatype.jar;.\lib\pellet\xsdlib.jar;.\lib\protege\org.protege.editor.core.application.jar;.\lib\protege\org.protege.editor.owl.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.cli.Start %* \ No newline at end of file Modified: trunk/bin/gui =================================================================== --- trunk/bin/gui 2008-10-13 11:58:54 UTC (rev 1373) +++ trunk/bin/gui 2008-10-13 12:34:43 UTC (rev 1374) @@ -1 +1,2 @@ -java -cp .:./lib/dig1.1-xmlbeans.jar:./lib/fact/FaCTpp-OWLAPI-v1.1.11.jar:./lib/jamon-2.7.jar:./lib/jena/antlr-2.7.5.jar:./lib/jena/arq.jar:./lib/jena/commons-logging-1.1.1.jar:./lib/jena/concurrent.jar:./lib/jena/icu4j_3_4.jar:./lib/jena/iri.jar:./lib/jena/jena.jar:./lib/jena/json.jar:./lib/jena/xercesImpl.jar:./lib/junit-4.4.jar:./lib/log4j.jar:./lib/mysql/mysql-connector-java-5.1.6-bin.jar:./lib/ore-tool/swingx-0.9.2.jar:./lib/owlapi/owlapi-bin.jar:./lib/pellet/aterm-java-1.6.jar:./lib/pellet/pellet.jar:./lib/pellet/relaxngDatatype.jar:./lib/pellet/xsdlib.jar:./lib/protege/org.protege.editor.core.application.jar:./lib/protege/org.protege.editor.owl.jar:./lib/xbean.jar:./lib/dllearner.jar org.dllearner.gui.StartGUI $@ \ No newline at end of file +#!/bin/bash +java -Xmx512m -cp .:./lib/dig1.1-xmlbeans.jar:./lib/fact/FaCTpp-OWLAPI-v1.1.11.jar:./lib/jamon-2.7.jar:./lib/jena/antlr-2.7.5.jar:./lib/jena/arq.jar:./lib/jena/commons-logging-1.1.1.jar:./lib/jena/concurrent.jar:./lib/jena/icu4j_3_4.jar:./lib/jena/iri.jar:./lib/jena/jena.jar:./lib/jena/json.jar:./lib/jena/xercesImpl.jar:./lib/junit-4.4.jar:./lib/log4j.jar:./lib/mysql/mysql-connector-java-5.1.6-bin.jar:./lib/ore-tool/swingx-0.9.2.jar:./lib/owlapi/owlapi-bin.jar:./lib/pellet/aterm-java-1.6.jar:./lib/pellet/pellet.jar:./lib/pellet/relaxngDatatype.jar:./lib/pellet/xsdlib.jar:./lib/protege/org.protege.editor.core.application.jar:./lib/protege/org.protege.editor.owl.jar:./lib/xbean.jar:./lib/dllearner.jar org.dllearner.gui.StartGUI $@ \ No newline at end of file Modified: trunk/bin/gui.bat =================================================================== --- trunk/bin/gui.bat 2008-10-13 11:58:54 UTC (rev 1373) +++ trunk/bin/gui.bat 2008-10-13 12:34:43 UTC (rev 1374) @@ -1 +1 @@ -java -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\fact\FaCTpp-OWLAPI-v1.1.11.jar;.\lib\jamon-2.7.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\arq.jar;.\lib\jena\commons-logging-1.1.1.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\json.jar;.\lib\jena\xercesImpl.jar;.\lib\junit-4.4.jar;.\lib\log4j.jar;.\lib\mysql\mysql-connector-java-5.1.6-bin.jar;.\lib\ore-tool\swingx-0.9.2.jar;.\lib\owlapi\owlapi-bin.jar;.\lib\pellet\aterm-java-1.6.jar;.\lib\pellet\pellet.jar;.\lib\pellet\relaxngDatatype.jar;.\lib\pellet\xsdlib.jar;.\lib\protege\org.protege.editor.core.application.jar;.\lib\protege\org.protege.editor.owl.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.gui.StartGUI %* \ No newline at end of file +java -Xmx512m -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\fact\FaCTpp-OWLAPI-v1.1.11.jar;.\lib\jamon-2.7.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\arq.jar;.\lib\jena\commons-logging-1.1.1.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\json.jar;.\lib\jena\xercesImpl.jar;.\lib\junit-4.4.jar;.\lib\log4j.jar;.\lib\mysql\mysql-connector-java-5.1.6-bin.jar;.\lib\ore-tool\swingx-0.9.2.jar;.\lib\owlapi\owlapi-bin.jar;.\lib\pellet\aterm-java-1.6.jar;.\lib\pellet\pellet.jar;.\lib\pellet\relaxngDatatype.jar;.\lib\pellet\xsdlib.jar;.\lib\protege\org.protege.editor.core.application.jar;.\lib\protege\org.protege.editor.owl.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.gui.StartGUI %* \ No newline at end of file Modified: trunk/bin/quickstart =================================================================== --- trunk/bin/quickstart 2008-10-13 11:58:54 UTC (rev 1373) +++ trunk/bin/quickstart 2008-10-13 12:34:43 UTC (rev 1374) @@ -1 +1,2 @@ -java -cp .:./lib/dig1.1-xmlbeans.jar:./lib/fact/FaCTpp-OWLAPI-v1.1.11.jar:./lib/jamon-2.7.jar:./lib/jena/antlr-2.7.5.jar:./lib/jena/arq.jar:./lib/jena/commons-logging-1.1.1.jar:./lib/jena/concurrent.jar:./lib/jena/icu4j_3_4.jar:./lib/jena/iri.jar:./lib/jena/jena.jar:./lib/jena/json.jar:./lib/jena/xercesImpl.jar:./lib/junit-4.4.jar:./lib/log4j.jar:./lib/mysql/mysql-connector-java-5.1.6-bin.jar:./lib/ore-tool/swingx-0.9.2.jar:./lib/owlapi/owlapi-bin.jar:./lib/pellet/aterm-java-1.6.jar:./lib/pellet/pellet.jar:./lib/pellet/relaxngDatatype.jar:./lib/pellet/xsdlib.jar:./lib/protege/org.protege.editor.core.application.jar:./lib/protege/org.protege.editor.owl.jar:./lib/xbean.jar:./lib/dllearner.jar org.dllearner.cli.QuickStart \ No newline at end of file +#!/bin/bash +java -Xmx512m -cp .:./lib/dig1.1-xmlbeans.jar:./lib/fact/FaCTpp-OWLAPI-v1.1.11.jar:./lib/jamon-2.7.jar:./lib/jena/antlr-2.7.5.jar:./lib/jena/arq.jar:./lib/jena/commons-logging-1.1.1.jar:./lib/jena/concurrent.jar:./lib/jena/icu4j_3_4.jar:./lib/jena/iri.jar:./lib/jena/jena.jar:./lib/jena/json.jar:./lib/jena/xercesImpl.jar:./lib/junit-4.4.jar:./lib/log4j.jar:./lib/mysql/mysql-connector-java-5.1.6-bin.jar:./lib/ore-tool/swingx-0.9.2.jar:./lib/owlapi/owlapi-bin.jar:./lib/pellet/aterm-java-1.6.jar:./lib/pellet/pellet.jar:./lib/pellet/relaxngDatatype.jar:./lib/pellet/xsdlib.jar:./lib/protege/org.protege.editor.core.application.jar:./lib/protege/org.protege.editor.owl.jar:./lib/xbean.jar:./lib/dllearner.jar org.dllearner.cli.QuickStart \ No newline at end of file Modified: trunk/bin/quickstart.bat =================================================================== --- trunk/bin/quickstart.bat 2008-10-13 11:58:54 UTC (rev 1373) +++ trunk/bin/quickstart.bat 2008-10-13 12:34:43 UTC (rev 1374) @@ -1 +1 @@ -java -Xmx1024m -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\fact\FaCTpp-OWLAPI-v1.1.11.jar;.\lib\jamon-2.7.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\arq.jar;.\lib\jena\commons-logging-1.1.1.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\json.jar;.\lib\jena\xercesImpl.jar;.\lib\junit-4.4.jar;.\lib\log4j.jar;.\lib\mysql\mysql-connector-java-5.1.6-bin.jar;.\lib\ore-tool\swingx-0.9.2.jar;.\lib\owlapi\owlapi-bin.jar;.\lib\pellet\aterm-java-1.6.jar;.\lib\pellet\pellet.jar;.\lib\pellet\relaxngDatatype.jar;.\lib\pellet\xsdlib.jar;.\lib\protege\org.protege.editor.core.application.jar;.\lib\protege\org.protege.editor.owl.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.cli.QuickStart \ No newline at end of file +java -Xmx512m -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\fact\FaCTpp-OWLAPI-v1.1.11.jar;.\lib\jamon-2.7.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\arq.jar;.\lib\jena\commons-logging-1.1.1.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\json.jar;.\lib\jena\xercesImpl.jar;.\lib\junit-4.4.jar;.\lib\log4j.jar;.\lib\mysql\mysql-connector-java-5.1.6-bin.jar;.\lib\ore-tool\swingx-0.9.2.jar;.\lib\owlapi\owlapi-bin.jar;.\lib\pellet\aterm-java-1.6.jar;.\lib\pellet\pellet.jar;.\lib\pellet\relaxngDatatype.jar;.\lib\pellet\xsdlib.jar;.\lib\protege\org.protege.editor.core.application.jar;.\lib\protege\org.protege.editor.owl.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.cli.QuickStart \ No newline at end of file Modified: trunk/bin/ws =================================================================== --- trunk/bin/ws 2008-10-13 11:58:54 UTC (rev 1373) +++ trunk/bin/ws 2008-10-13 12:34:43 UTC (rev 1374) @@ -1 +1,2 @@ -java -cp .:./lib/dig1.1-xmlbeans.jar:./lib/fact/FaCTpp-OWLAPI-v1.1.11.jar:./lib/jamon-2.7.jar:./lib/jena/antlr-2.7.5.jar:./lib/jena/arq.jar:./lib/jena/commons-logging-1.1.1.jar:./lib/jena/concurrent.jar:./lib/jena/icu4j_3_4.jar:./lib/jena/iri.jar:./lib/jena/jena.jar:./lib/jena/json.jar:./lib/jena/xercesImpl.jar:./lib/junit-4.4.jar:./lib/log4j.jar:./lib/mysql/mysql-connector-java-5.1.6-bin.jar:./lib/ore-tool/swingx-0.9.2.jar:./lib/owlapi/owlapi-bin.jar:./lib/pellet/aterm-java-1.6.jar:./lib/pellet/pellet.jar:./lib/pellet/relaxngDatatype.jar:./lib/pellet/xsdlib.jar:./lib/protege/org.protege.editor.core.application.jar:./lib/protege/org.protege.editor.owl.jar:./lib/xbean.jar:./lib/dllearner.jar org.dllearner.server.DLLearnerWSStart $@ \ No newline at end of file +#!/bin/bash +java -Xmx512m -cp .:./lib/dig1.1-xmlbeans.jar:./lib/fact/FaCTpp-OWLAPI-v1.1.11.jar:./lib/jamon-2.7.jar:./lib/jena/antlr-2.7.5.jar:./lib/jena/arq.jar:./lib/jena/commons-logging-1.1.1.jar:./lib/jena/concurrent.jar:./lib/jena/icu4j_3_4.jar:./lib/jena/iri.jar:./lib/jena/jena.jar:./lib/jena/json.jar:./lib/jena/xercesImpl.jar:./lib/junit-4.4.jar:./lib/log4j.jar:./lib/mysql/mysql-connector-java-5.1.6-bin.jar:./lib/ore-tool/swingx-0.9.2.jar:./lib/owlapi/owlapi-bin.jar:./lib/pellet/aterm-java-1.6.jar:./lib/pellet/pellet.jar:./lib/pellet/relaxngDatatype.jar:./lib/pellet/xsdlib.jar:./lib/protege/org.protege.editor.core.application.jar:./lib/protege/org.protege.editor.owl.jar:./lib/xbean.jar:./lib/dllearner.jar org.dllearner.server.DLLearnerWSStart $@ \ No newline at end of file Modified: trunk/bin/ws.bat =================================================================== --- trunk/bin/ws.bat 2008-10-13 11:58:54 UTC (rev 1373) +++ trunk/bin/ws.bat 2008-10-13 12:34:43 UTC (rev 1374) @@ -1 +1 @@ -java -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\fact\FaCTpp-OWLAPI-v1.1.11.jar;.\lib\jamon-2.7.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\arq.jar;.\lib\jena\commons-logging-1.1.1.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\json.jar;.\lib\jena\xercesImpl.jar;.\lib\junit-4.4.jar;.\lib\log4j.jar;.\lib\mysql\mysql-connector-java-5.1.6-bin.jar;.\lib\ore-tool\swingx-0.9.2.jar;.\lib\owlapi\owlapi-bin.jar;.\lib\pellet\aterm-java-1.6.jar;.\lib\pellet\pellet.jar;.\lib\pellet\relaxngDatatype.jar;.\lib\pellet\xsdlib.jar;.\lib\protege\org.protege.editor.core.application.jar;.\lib\protege\org.protege.editor.owl.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.server.DLLearnerWSStart %* \ No newline at end of file +java -Xmx512m -cp .;.\lib\dig1.1-xmlbeans.jar;.\lib\fact\FaCTpp-OWLAPI-v1.1.11.jar;.\lib\jamon-2.7.jar;.\lib\jena\antlr-2.7.5.jar;.\lib\jena\arq.jar;.\lib\jena\commons-logging-1.1.1.jar;.\lib\jena\concurrent.jar;.\lib\jena\icu4j_3_4.jar;.\lib\jena\iri.jar;.\lib\jena\jena.jar;.\lib\jena\json.jar;.\lib\jena\xercesImpl.jar;.\lib\junit-4.4.jar;.\lib\log4j.jar;.\lib\mysql\mysql-connector-java-5.1.6-bin.jar;.\lib\ore-tool\swingx-0.9.2.jar;.\lib\owlapi\owlapi-bin.jar;.\lib\pellet\aterm-java-1.6.jar;.\lib\pellet\pellet.jar;.\lib\pellet\relaxngDatatype.jar;.\lib\pellet\xsdlib.jar;.\lib\protege\org.protege.editor.core.application.jar;.\lib\protege\org.protege.editor.owl.jar;.\lib\xbean.jar;.\lib\dllearner.jar org.dllearner.server.DLLearnerWSStart %* \ No newline at end of file Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2008-10-13 11:58:54 UTC (rev 1373) +++ trunk/build.xml 2008-10-13 12:34:43 UTC (rev 1374) @@ -15,6 +15,10 @@ <property name="release_tmp_dir" value="release/${version_dir}" /> <property name="release_php_client_tmp_dir" value="release/php-client-${today}" /> + <!-- other settings --> + <!-- maximum amount of allocated memory in startup scripts --> + <property name ="max_memory" value="512" /> + <!-- set up classpath --> <path id="classpath"> <pathelement location="."/> @@ -257,14 +261,14 @@ <map from="${removeprefix}" to="."/> </pathconvert> - <echo file="bin/quickstart.bat" message="java -Xmx1024m -cp ${pathStringWin} org.dllearner.cli.QuickStart"/> - <echo file="bin/dllearner.bat" message="java -Xmx1024m -cp ${pathStringWin} org.dllearner.cli.Start %*"/> - <echo file="bin/ws.bat" message="java -cp ${pathStringWin} org.dllearner.server.DLLearnerWSStart %*"/> - <echo file="bin/gui.bat" message="java -cp ${pathStringWin} org.dllearner.gui.StartGUI %*"/> - <echo file="bin/quickstart" message="#!/bin/bash${line.separator}java -cp ${pathStringUnix} org.dllearner.cli.QuickStart"/> - <echo file="bin/dllearner" message="#!/bin/bash${line.separator}java -cp ${pathStringUnix} org.dllearner.cli.Start $@"/> - <echo file="bin/ws" message="#!/bin/bash${line.separator}java -cp ${pathStringUnix} org.dllearner.server.DLLearnerWSStart $@"/> - <echo file="bin/gui" message="#!/bin/bash${line.separator}java -cp ${pathStringUnix} org.dllearner.gui.StartGUI $@"/> + <echo file="bin/quickstart.bat" message="java -Xmx${max_memory}m -cp ${pathStringWin} org.dllearner.cli.QuickStart"/> + <echo file="bin/dllearner.bat" message="java -Xmx${max_memory}m -cp ${pathStringWin} org.dllearner.cli.Start %*"/> + <echo file="bin/ws.bat" message="java -Xmx${max_memory}m -cp ${pathStringWin} org.dllearner.server.DLLearnerWSStart %*"/> + <echo file="bin/gui.bat" message="java -Xmx${max_memory}m -cp ${pathStringWin} org.dllearner.gui.StartGUI %*"/> + <echo file="bin/quickstart" message="#!/bin/bash${line.separator}java -Xmx${max_memory}m -cp ${pathStringUnix} org.dllearner.cli.QuickStart"/> + <echo file="bin/dllearner" message="#!/bin/bash${line.separator}java -Xmx${max_memory}m -cp ${pathStringUnix} org.dllearner.cli.Start $@"/> + <echo file="bin/ws" message="#!/bin/bash${line.separator}java -Xmx${max_memory}m -cp ${pathStringUnix} org.dllearner.server.DLLearnerWSStart $@"/> + <echo file="bin/gui" message="#!/bin/bash${line.separator}java -Xmx${max_memory}m -cp ${pathStringUnix} org.dllearner.gui.StartGUI $@"/> </target> <!-- generate Javadoc --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ku...@us...> - 2008-10-13 11:59:06
|
Revision: 1373 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1373&view=rev Author: kurzum Date: 2008-10-13 11:58:54 +0000 (Mon, 13 Oct 2008) Log Message: ----------- included bin/bash in scripts, for unix users with awesome and crazy shells like f1sh Modified Paths: -------------- trunk/build.xml Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2008-10-13 11:39:11 UTC (rev 1372) +++ trunk/build.xml 2008-10-13 11:58:54 UTC (rev 1373) @@ -261,10 +261,10 @@ <echo file="bin/dllearner.bat" message="java -Xmx1024m -cp ${pathStringWin} org.dllearner.cli.Start %*"/> <echo file="bin/ws.bat" message="java -cp ${pathStringWin} org.dllearner.server.DLLearnerWSStart %*"/> <echo file="bin/gui.bat" message="java -cp ${pathStringWin} org.dllearner.gui.StartGUI %*"/> - <echo file="bin/quickstart" message="java -cp ${pathStringUnix} org.dllearner.cli.QuickStart"/> - <echo file="bin/dllearner" message="java -cp ${pathStringUnix} org.dllearner.cli.Start $@"/> - <echo file="bin/ws" message="java -cp ${pathStringUnix} org.dllearner.server.DLLearnerWSStart $@"/> - <echo file="bin/gui" message="java -cp ${pathStringUnix} org.dllearner.gui.StartGUI $@"/> + <echo file="bin/quickstart" message="#!/bin/bash${line.separator}java -cp ${pathStringUnix} org.dllearner.cli.QuickStart"/> + <echo file="bin/dllearner" message="#!/bin/bash${line.separator}java -cp ${pathStringUnix} org.dllearner.cli.Start $@"/> + <echo file="bin/ws" message="#!/bin/bash${line.separator}java -cp ${pathStringUnix} org.dllearner.server.DLLearnerWSStart $@"/> + <echo file="bin/gui" message="#!/bin/bash${line.separator}java -cp ${pathStringUnix} org.dllearner.gui.StartGUI $@"/> </target> <!-- generate Javadoc --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ku...@us...> - 2008-10-13 11:39:18
|
Revision: 1372 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1372&view=rev Author: kurzum Date: 2008-10-13 11:39:11 +0000 (Mon, 13 Oct 2008) Log Message: ----------- deleted two double examples Removed Paths: ------------- trunk/examples/semantic_bible/normal_retrieval_special.conf trunk/examples/semantic_bible/normal_test.conf Deleted: trunk/examples/semantic_bible/normal_retrieval_special.conf =================================================================== --- trunk/examples/semantic_bible/normal_retrieval_special.conf 2008-10-13 11:15:02 UTC (rev 1371) +++ trunk/examples/semantic_bible/normal_retrieval_special.conf 2008-10-13 11:39:11 UTC (rev 1372) @@ -1,32 +0,0 @@ - /** -EXISTS "http://semanticbible.org/ns/2006/NTNames#siblingOf".TOP -EXISTS "http://semanticbible.org/ns/2006/NTNames#siblingOf"."http://semanticbible.org/ns/2006/NTNames#Man" - */ - - -// export("arch.owl"); -import("NTNcombined.owl"); - -algorithm = refexamples; -refexamples.useAllConstructor = false; -refexamples.useNegation = false; -refexamples.useCardinalityRestrictions = false; - -refexamples.guaranteeXgoodDescriptions = 20; -//refexamples.ignoredConcepts = {"http://semanticbible.org/ns/2006/NTNames#God"}; - -//reasoner = fastInstanceChecker; -reasoner = owlAPIReasoner; -owlAPIReasoner.reasonerType = pellet; - -problem = posNegDefinitionLP; -posNegDefinitionLP.useRetrievalForClassficiation = false; - -/** examples **/ --"http://semanticbible.org/ns/2006/NTNames#Almighty" --"http://semanticbible.org/ns/2006/NTNames#Gabriel" --"http://semanticbible.org/ns/2006/NTNames#Michael" -+"http://semanticbible.org/ns/2006/NTNames#Archelaus" -+"http://semanticbible.org/ns/2006/NTNames#HerodAntipas" --"http://semanticbible.org/ns/2006/NTNames#Satan" --"http://semanticbible.org/ns/2006/NTNames#Jesus" Deleted: trunk/examples/semantic_bible/normal_test.conf =================================================================== --- trunk/examples/semantic_bible/normal_test.conf 2008-10-13 11:15:02 UTC (rev 1371) +++ trunk/examples/semantic_bible/normal_test.conf 2008-10-13 11:39:11 UTC (rev 1372) @@ -1,32 +0,0 @@ -import("NTNcombined.owl"); - -algorithm = refexamples; -refexamples.useAllConstructor = true; -refexamples.useNegation = true; -refexamples.useCardinalityRestrictions = true; -refexamples.guaranteeXgoodDescriptions = 1; - -reasoner = owlAPIReasoner; -owlAPIReasoner.reasonerType = pellet; - -/** -(NOT "http://semanticbible.org/ns/2006/NTNames#FreshWaterArea" OR EXISTS "http://semanticbible.org/ns/2006/NTNames#collaboratesWith".(NOT "http://semanticbible.org/ns/2006/NTNames#EvilSupernaturalBeing" OR EXISTS "http://semanticbible.org/ns/2006/NTNames#ethnicity".TOP)) -((NOT http://semanticbible.org/ns/2006/NTNames#FreshWaterArea) OR EXISTS http://semanticbible.org/ns/2006/NTNames#collaboratesWith.((NOT http://semanticbible.org/ns/2006/NTNames#EvilSupernaturalBeing) OR EXISTS http://semanticbible.org/ns/2006/NTNames#ethnicity.TOP))(accuracy: 1.0) - -**/ - - - -/**EXAMPLES**/ -+"http://semanticbible.org/ns/2006/NTNames#Agabus" -+"http://semanticbible.org/ns/2006/NTNames#Apollos" -+"http://semanticbible.org/ns/2006/NTNames#Barnabas" -+"http://semanticbible.org/ns/2006/NTNames#Corinth" -+"http://semanticbible.org/ns/2006/NTNames#Joanna" - --"http://semanticbible.org/ns/2006/NTNames#Lucius" --"http://semanticbible.org/ns/2006/NTNames#Lydia" --"http://semanticbible.org/ns/2006/NTNames#MattathaisSonOfAmos" --"http://semanticbible.org/ns/2006/NTNames#Terah" --"http://semanticbible.org/ns/2006/NTNames#TribeOfJoseph" - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ku...@us...> - 2008-10-13 11:05:29
|
Revision: 1370 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1370&view=rev Author: kurzum Date: 2008-10-13 11:05:08 +0000 (Mon, 13 Oct 2008) Log Message: ----------- small changes fixed lymphography Modified Paths: -------------- trunk/examples/lymphography/lymphography_Class1.conf trunk/examples/lymphography/lymphography_Class2.conf trunk/examples/lymphography/lymphography_Class3.conf trunk/examples/lymphography/lymphography_Class4.conf trunk/examples/sparql/README.txt trunk/examples/sparql/SKOSTEST_local.conf trunk/examples/sparql/scrobble.conf trunk/src/dl-learner/org/dllearner/kb/extraction/InstanceNode.java Property Changed: ---------------- trunk/examples/sparql/ Modified: trunk/examples/lymphography/lymphography_Class1.conf =================================================================== --- trunk/examples/lymphography/lymphography_Class1.conf 2008-10-13 09:34:50 UTC (rev 1369) +++ trunk/examples/lymphography/lymphography_Class1.conf 2008-10-13 11:05:08 UTC (rev 1370) @@ -17,16 +17,17 @@ */ -refinement.ignoredConcepts = { +algorithm = refexamples; +refexamples.ignoredConcepts = { "http://www.example.org/lymphography#Target1_NormalFind", "http://www.example.org/lymphography#Target2_Metastases", "http://www.example.org/lymphography#Target3_MalignLymph", "http://www.example.org/lymphography#Target4_Fibrosis" }; -refinement.useAllConstructor = false; -refinement.useExistsConstructor = true; -refinement.useNegation = false; +refexamples.useAllConstructor = false; +refexamples.useExistsConstructor = true; +refexamples.useNegation = false; import("lymphography.owl"); /*Class1*/ Modified: trunk/examples/lymphography/lymphography_Class2.conf =================================================================== --- trunk/examples/lymphography/lymphography_Class2.conf 2008-10-13 09:34:50 UTC (rev 1369) +++ trunk/examples/lymphography/lymphography_Class2.conf 2008-10-13 11:05:08 UTC (rev 1370) @@ -15,16 +15,18 @@ a new experimental version of the refinement algorithm) */ -refinement.ignoredConcepts = { +algorithm = refexamples; +refexamples.ignoredConcepts = { "http://www.example.org/lymphography#Target1_NormalFind", "http://www.example.org/lymphography#Target2_Metastases", "http://www.example.org/lymphography#Target3_MalignLymph", "http://www.example.org/lymphography#Target4_Fibrosis" }; -refinement.useAllConstructor = false; -refinement.useExistsConstructor = true; -refinement.useNegation = false; +refexamples.useAllConstructor = false; +refexamples.useExistsConstructor = true; +refexamples.useNegation = false; +refexamples.noisePercentage = 13.0; import("lymphography.owl"); Modified: trunk/examples/lymphography/lymphography_Class3.conf =================================================================== --- trunk/examples/lymphography/lymphography_Class3.conf 2008-10-13 09:34:50 UTC (rev 1369) +++ trunk/examples/lymphography/lymphography_Class3.conf 2008-10-13 11:05:08 UTC (rev 1370) @@ -17,16 +17,18 @@ */ -refinement.ignoredConcepts = { +algorithm = refexamples; +refexamples.ignoredConcepts = { "http://www.example.org/lymphography#Target1_NormalFind", "http://www.example.org/lymphography#Target2_Metastases", "http://www.example.org/lymphography#Target3_MalignLymph", "http://www.example.org/lymphography#Target4_Fibrosis" }; -refinement.useAllConstructor = false; -refinement.useExistsConstructor = true; -refinement.useNegation = false; +refexamples.useAllConstructor = false; +refexamples.useExistsConstructor = true; +refexamples.useNegation = false; +refexamples.noisePercentage = 19.0; import("lymphography.owl"); /*Class3*/ Modified: trunk/examples/lymphography/lymphography_Class4.conf =================================================================== --- trunk/examples/lymphography/lymphography_Class4.conf 2008-10-13 09:34:50 UTC (rev 1369) +++ trunk/examples/lymphography/lymphography_Class4.conf 2008-10-13 11:05:08 UTC (rev 1370) @@ -15,6 +15,8 @@ a new experimental version of the refinement algorithm) */ +algorithm = refexamples; + refexamples.ignoredConcepts = { "http://www.example.org/lymphography#Target1_NormalFind", "http://www.example.org/lymphography#Target2_Metastases", @@ -23,8 +25,8 @@ }; refexamples.useAllConstructor = false; -refexamples.useExistsConstructor = false; -refexamples.useNegation = true; +refexamples.useExistsConstructor = true; +refexamples.useNegation = false; import("lymphography.owl"); Property changes on: trunk/examples/sparql ___________________________________________________________________ Added: svn:ignore + musicbrainz.conf Modified: trunk/examples/sparql/README.txt =================================================================== --- trunk/examples/sparql/README.txt 2008-10-13 09:34:50 UTC (rev 1369) +++ trunk/examples/sparql/README.txt 2008-10-13 11:05:08 UTC (rev 1370) @@ -3,3 +3,29 @@ When using the SPARQL component, files are written into the directory /cache to avoid performing the same queries more than once. + + +***predefined Filters +all predefined filters remove references to hompage, etc during the extraction +YAGO allows yago, +SKOS allows skos, +YAGOSKOS, allows yago and skos, +YAGOONLY allows yago classes only, no skos , no umbel + +***predefined Endpoints +List of values available for +sparql.predefinedEndpoint("DBPEDIA"); (replace DBPEDIA) +Most of them are not used in any examples, but are available. +DBPEDIA the global DBpedia endpoint http://dbpedia.openlinksw.com:8890/sparql +LOCALDBPEDIA a local mirror of DBpedia running at aksw.org http://139.18.2.37:8890/sparql +LOCALJOSECKI a local joseki store, url pointing at "http://localhost:2020/books" +LOCALJOSEKIBIBLE a local joseki store, url pointing at "http://localhost:2020/bible" +GOVTRACK www.govtrack.us | sparql: http://www.rdfabout.com/sparql +MUSICBRAINZ http://dbtune.org/musicbrainz/sparql +SPARQLETTE +SWCONFERENCE +REVYU +MYOPENLINK +FACTBOOK +DBLP + Modified: trunk/examples/sparql/SKOSTEST_local.conf =================================================================== --- trunk/examples/sparql/SKOSTEST_local.conf 2008-10-13 09:34:50 UTC (rev 1369) +++ trunk/examples/sparql/SKOSTEST_local.conf 2008-10-13 11:05:08 UTC (rev 1370) @@ -1,16 +1,20 @@ /** - * Some people from Greece. + * Some people which are/were Prime Ministers of the UK and some random negative Examples. * Note: DBpedia is always subject to change, solutions will change over time - * Possible Solution: - * Theorist OR (Mathematician AND Physicist) + * Possible Solutions: + +1: (http://dbpedia.org/class/yago/PrimeMinistersOfTheUnitedKingdom OR EXISTS http://dbpedia.org/property/termStart.TOP) (length 5, depth 3) +2: (http://dbpedia.org/class/yago/LeadersOfTheBritishConservativeParty OR EXISTS http://dbpedia.org/property/termStart.TOP) (length 5, depth 3) + * */ // SPARQL options sparql.recursionDepth = 1; -//predefined filter (1 = YAGO based learning) + +//for a list of predefined Filters and Endpoints see examples/sparql/README.txt sparql.predefinedFilter = "YAGO"; sparql.predefinedEndpoint = "LOCALDBPEDIA"; @@ -65,4 +69,4 @@ +"http://dbpedia.org/resource/Anthony_Eden" +"http://dbpedia.org/resource/Anthony_Eden_hat" +"http://dbpedia.org/resource/Archibald_Primrose%2C_5th_Earl_of_Rosebery" -+"http://dbpedia.org/resource/Arthur_Balfour" \ No newline at end of file ++"http://dbpedia.org/resource/Arthur_Balfour" Modified: trunk/examples/sparql/scrobble.conf =================================================================== --- trunk/examples/sparql/scrobble.conf 2008-10-13 09:34:50 UTC (rev 1369) +++ trunk/examples/sparql/scrobble.conf 2008-10-13 11:05:08 UTC (rev 1370) @@ -18,6 +18,7 @@ sparql.recursionDepth = 3; sparql.predefinedEndpoint = "MUSICBRAINZ"; +sparql.saveExtractedFragment = true; algorithm = refexamples; refexamples.useNegation = false; Modified: trunk/src/dl-learner/org/dllearner/kb/extraction/InstanceNode.java =================================================================== --- trunk/src/dl-learner/org/dllearner/kb/extraction/InstanceNode.java 2008-10-13 09:34:50 UTC (rev 1369) +++ trunk/src/dl-learner/org/dllearner/kb/extraction/InstanceNode.java 2008-10-13 11:05:08 UTC (rev 1370) @@ -90,7 +90,13 @@ }else if(tuple.b.isAnon()){ @SuppressWarnings("unused") RDFBlankNode n = (RDFBlankNode) tuple.b; - logger.warn("encountered Bnode in InstanceNode"+ this +"in tuple" + tuple); + if(tuple.a.toString().equals(OWLVocabulary.RDF_TYPE)){ + logger.warn("blanknodes for instances not implemented yet (rare frequency). e.g. (instance rdf:type (A and B)"+" " + this+ " in tuple "+tuple); + } + else{ + logger.warn("encountered Bnode in InstanceNode "+ this +" in tuple " + tuple); + logger.warn("In OWL-DL the subject of an object property assertion must be an instance (not a class). Triple will be ignored."); + } return null; // basically : if p is rdf:type then o is a class This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2008-10-13 09:35:56
|
Revision: 1369 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1369&view=rev Author: jenslehmann Date: 2008-10-13 09:34:50 +0000 (Mon, 13 Oct 2008) Log Message: ----------- beautification of some conf files Modified Paths: -------------- trunk/examples/semantic_bible/woman.conf trunk/examples/sparql/DBPediaYAGOWomanInPolitics.conf trunk/examples/sparql/hierarchy/Hierarchy0DBPediaYAGOChanBrit_monarch.conf trunk/examples/sparql/hierarchy/Hierarchy1DBPediaYAGOChanBrit_pred_Knight.conf trunk/examples/sparql/scrobble.conf trunk/src/dl-learner/org/dllearner/Info.java trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java Modified: trunk/examples/semantic_bible/woman.conf =================================================================== --- trunk/examples/semantic_bible/woman.conf 2008-10-11 13:35:40 UTC (rev 1368) +++ trunk/examples/semantic_bible/woman.conf 2008-10-13 09:34:50 UTC (rev 1369) @@ -1,8 +1,7 @@ - /** +/** + * Women in Semantic Bible. */ - -// export("arch.owl"); import("NTNcombined.owl"); algorithm = refexamples; Modified: trunk/examples/sparql/DBPediaYAGOWomanInPolitics.conf =================================================================== --- trunk/examples/sparql/DBPediaYAGOWomanInPolitics.conf 2008-10-11 13:35:40 UTC (rev 1368) +++ trunk/examples/sparql/DBPediaYAGOWomanInPolitics.conf 2008-10-13 09:34:50 UTC (rev 1369) @@ -1,29 +1,19 @@ - /* - * Some woman, that are Politicians - - Note: DBpedia is always subject to change, solutions will change over time - - Solution - http://dbpedia.org/class/yago/Executive110069645 (length 1, depth 1) - http://dbpedia.org/class/yago/CorporateExecutive109966255 (length 1, depth 1) - http://dbpedia.org/class/yago/President110468559 (length 1, depth 1) +/* + * Some woman, who are politicians. + * + * Note: DBpedia is always subject to change. Solutions will change over time. + * + * Solution: + * http://dbpedia.org/class/yago/Executive110069645 + * http://dbpedia.org/class/yago/CorporateExecutive109966255 + * http://dbpedia.org/class/yago/President110468559 */ // SPARQL options - - - -// SPARQL options -//necessary: sparql.recursionDepth = 1; - - -//predefined filter (1 = YAGO based learning) -// 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter sparql.predefinedFilter = "YAGO"; sparql.predefinedEndpoint = "DBPEDIA"; - import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL"); sparql.instances = { @@ -34,12 +24,10 @@ "http://dbpedia.org/resource/Angela_Merkel", "http://dbpedia.org/resource/Christine_Todd_Whitman"}; - - /** examples **/ +"http://dbpedia.org/resource/Indira_Gandhi" +"http://dbpedia.org/resource/Sonia_Gandhi" -"http://dbpedia.org/resource/Hillary_Rodham_Clinton" -"http://dbpedia.org/resource/Princess_Leia_Organa" -"http://dbpedia.org/resource/Angela_Merkel" --"http://dbpedia.org/resource/Christine_Todd_Whitman" \ No newline at end of file +-"http://dbpedia.org/resource/Christine_Todd_Whitman" Modified: trunk/examples/sparql/hierarchy/Hierarchy0DBPediaYAGOChanBrit_monarch.conf =================================================================== --- trunk/examples/sparql/hierarchy/Hierarchy0DBPediaYAGOChanBrit_monarch.conf 2008-10-11 13:35:40 UTC (rev 1368) +++ trunk/examples/sparql/hierarchy/Hierarchy0DBPediaYAGOChanBrit_monarch.conf 2008-10-13 09:34:50 UTC (rev 1369) @@ -18,19 +18,12 @@ */ -// SPARQL options - - refinement.useAllConstructor = false; //refinement.useExistsConstructor = true; refinement.useNegation = false; -// recursion depth of extraction algorithm +// SPARQL options sparql.recursionDepth = 1; - - -//predefined filter (1 = YAGO based learning) -// 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter sparql.predefinedFilter = "YAGO"; sparql.predefinedEndpoint = "DBPEDIA"; @@ -48,14 +41,10 @@ }; - - - /** examples **/ +"http://dbpedia.org/resource/Tony_Blair" +"http://dbpedia.org/resource/Margaret_Thatcher" +"http://dbpedia.org/resource/John_Major" - +"http://dbpedia.org/resource/James_Callaghan" -"http://dbpedia.org/resource/Gerhard_Schr%C3%B6der" Modified: trunk/examples/sparql/hierarchy/Hierarchy1DBPediaYAGOChanBrit_pred_Knight.conf =================================================================== --- trunk/examples/sparql/hierarchy/Hierarchy1DBPediaYAGOChanBrit_pred_Knight.conf 2008-10-11 13:35:40 UTC (rev 1368) +++ trunk/examples/sparql/hierarchy/Hierarchy1DBPediaYAGOChanBrit_pred_Knight.conf 2008-10-13 09:34:50 UTC (rev 1369) @@ -1,27 +1,5 @@ - /* -Note: DBpedia is always subject to change, solutions will change over time - - - - - */ - // SPARQL options - -refinement.heuristic = flexible; - -refinement.useAllConstructor = false; -//refinement.useExistsConstructor = true; -refinement.useNegation = false; - -// SPARQL options -//necessary: -// recursion depth of extraction algorithm sparql.recursionDepth = 1; - - -//predefined filter (1 = YAGO based learning) -// 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter sparql.predefinedFilter = "YAGO"; sparql.predefinedEndpoint = "DBPEDIA"; @@ -32,7 +10,6 @@ ,"http://dbpedia.org/resource/Margaret_Thatcher" ,"http://dbpedia.org/resource/John_Major" - ,"http://dbpedia.org/resource/Harold_Macmillan" ,"http://dbpedia.org/resource/Alec_Douglas-Home" ,"http://dbpedia.org/resource/Liaquat_Ali_Khan" @@ -43,14 +20,11 @@ }; - - /** examples **/ +"http://dbpedia.org/resource/Tony_Blair" +"http://dbpedia.org/resource/Margaret_Thatcher" +"http://dbpedia.org/resource/John_Major" - +"http://dbpedia.org/resource/Harold_Macmillan" +"http://dbpedia.org/resource/Alec_Douglas-Home" -"http://dbpedia.org/resource/Liaquat_Ali_Khan" Modified: trunk/examples/sparql/scrobble.conf =================================================================== --- trunk/examples/sparql/scrobble.conf 2008-10-11 13:35:40 UTC (rev 1368) +++ trunk/examples/sparql/scrobble.conf 2008-10-13 09:34:50 UTC (rev 1369) @@ -24,9 +24,9 @@ refexamples.useAllConstructor = false; refexamples.useCardinalityRestrictions = false; -refexamples.writeSearchTree = true; -refexamples.searchTreeFile = "log/searchtree.txt"; -refexamples.replaceSearchTree = true; +// refexamples.writeSearchTree = true; +// refexamples.searchTreeFile = "log/searchtree.txt"; +// refexamples.replaceSearchTree = true; reasoner = fastInstanceChecker; Modified: trunk/src/dl-learner/org/dllearner/Info.java =================================================================== --- trunk/src/dl-learner/org/dllearner/Info.java 2008-10-11 13:35:40 UTC (rev 1368) +++ trunk/src/dl-learner/org/dllearner/Info.java 2008-10-13 09:34:50 UTC (rev 1369) @@ -3,6 +3,6 @@ package org.dllearner; public class Info { - public static final String build = "2008-10-09"; + public static final String build = "2008-10-13"; } \ No newline at end of file Modified: trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java =================================================================== --- trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java 2008-10-11 13:35:40 UTC (rev 1368) +++ trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java 2008-10-13 09:34:50 UTC (rev 1369) @@ -89,17 +89,18 @@ // ignored due to errors (should be fixed; in case of long running problems or // our of memory, it is better to increase the noise parameter and add comments // in the conf file about "optimal" parameters) + + // problems before latest release (kept to see if errors re-occurr, + // delete before next release) // ignore.add("./examples/sparql/govtrack.conf"); // HTTP 500 Server error - ignore.add("./examples/sparql/musicbrainz.conf"); // HTTP 502 error - NullPointer in extraction //working fine here ignore.add("./examples/sparql/SKOSTEST_local.conf"); // Out of Memory Error - ignore.add("./examples/sparql/scrobble.conf"); // HTTP 502 Proxy Error + // ignore.add("./examples/sparql/scrobble.conf"); // HTTP 502 Proxy Error // ignore.add("./examples/family-benchmark/Cousin.conf"); // Out of Memory Error => disallowing ALL helps (TODO find out details) //also working fine ignore.add("./examples/sparql/SilentBobWorking2.conf"); // Out of Memory Error // ignore.add("./examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf"); // Pellet: literal cannot be cast to individual // ignore.add("./examples/family-benchmark/Aunt.conf"); // did not terminate so far (waited 45 minutes) => disallowing ALL helps (TODO find out details) // ignore.add("./examples/krk/KRK_ZERO_against_1to5_fastInstance.conf"); // Out of Memory Error - //removed ignore.add("./examples/semantic_bible/normal_test.conf"); // did not terminate (waited 55 minutes) - + int failedCounter = 0; for (String path : confFiles.keySet()) { for (String file : confFiles.get(path)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ku...@us...> - 2008-10-11 13:35:58
|
Revision: 1368 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1368&view=rev Author: kurzum Date: 2008-10-11 13:35:40 +0000 (Sat, 11 Oct 2008) Log Message: ----------- Modified Paths: -------------- trunk/doc/configOptions.txt trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf trunk/examples/sparql/scrobble.conf trunk/examples/sparql/scrobble.kb trunk/src/dl-learner/org/dllearner/kb/extraction/ClassNode.java trunk/src/dl-learner/org/dllearner/kb/extraction/Node.java trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlKnowledgeSource.java Modified: trunk/doc/configOptions.txt =================================================================== --- trunk/doc/configOptions.txt 2008-10-11 10:25:09 UTC (rev 1367) +++ trunk/doc/configOptions.txt 2008-10-11 13:35:40 UTC (rev 1368) @@ -7,44 +7,56 @@ component: KB file (org.dllearner.kb.KBFile) ============================================ -CLI usage: import = ; +CLI usage: null = null; -option name: filename -description: pointer to the KB file on local file system -values: class org.dllearner.core.config.StringConfigOption -default value: null -CLI usage: .filename = null; - option name: url description: URL pointer to the KB file -values: class org.dllearner.core.config.StringConfigOption +values: class org.dllearner.core.config.URLConfigOption default value: null -CLI usage: .url = null; +CLI usage: null.url = null; +component: OWL API Ontology (org.dllearner.kb.OWLAPIOntology) +============================================================= + +CLI usage: null = null; + + component: OWL file (org.dllearner.kb.OWLFile) ============================================== -CLI usage: import = ; +CLI usage: null = owlfile; option name: url description: URL pointing to the OWL file -values: class org.dllearner.core.config.StringConfigOption +values: class org.dllearner.core.config.URLConfigOption default value: null -CLI usage: .url = null; +CLI usage: owlfile.url = null; component: SPARQL Endpoint (org.dllearner.kb.sparql.SparqlKnowledgeSource) ========================================================================== -CLI usage: import = sparql; +CLI usage: null = sparql; option name: url description: URL of SPARQL Endpoint -values: class org.dllearner.core.config.StringConfigOption +values: class org.dllearner.core.config.URLConfigOption default value: null CLI usage: sparql.url = null; +option name: cacheDir +description: dir of cache +values: class org.dllearner.core.config.StringConfigOption +default value: cache +CLI usage: sparql.cacheDir = cache; + +option name: useCache +description: If true a Cache is used +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: sparql.useCache = true; + option name: instances description: relevant instances e.g. positive and negative examples in a learning problem values: class org.dllearner.core.config.StringSetConfigOption @@ -54,123 +66,99 @@ option name: recursionDepth description: recursion depth of KB fragment selection values: class org.dllearner.core.config.IntegerConfigOption -default value: 2 -CLI usage: sparql.recursionDepth = 2; +default value: 1 +CLI usage: sparql.recursionDepth = 1; option name: predefinedFilter -description: the mode of the SPARQL Filter -values: class org.dllearner.core.config.IntegerConfigOption +description: the mode of the SPARQL Filter, use one of YAGO,SKOS,YAGOSKOS , YAGOSPECIALHIERARCHY, TEST +values: class org.dllearner.core.config.StringConfigOption default value: null CLI usage: sparql.predefinedFilter = null; option name: predefinedEndpoint -description: the mode of the SPARQL Filter -values: class org.dllearner.core.config.IntegerConfigOption +description: the mode of the SPARQL Filter, use one of DBPEDIA, LOCAL, GOVTRACK, REVYU, MYOPENLINK, FACTBOOK +values: class org.dllearner.core.config.StringConfigOption default value: null CLI usage: sparql.predefinedEndpoint = null; +option name: predefinedManipulator +description: the mode of the Manipulator, use one of STANDARD, DBPEDIA-NAVIGATOR +values: class org.dllearner.core.config.StringConfigOption +default value: null +CLI usage: sparql.predefinedManipulator = null; + option name: predList description: list of all ignored roles values: class org.dllearner.core.config.StringSetConfigOption -default value: null -CLI usage: sparql.predList = null; +default value: [] +CLI usage: sparql.predList = []; option name: objList description: list of all ignored objects values: class org.dllearner.core.config.StringSetConfigOption -default value: null -CLI usage: sparql.objList = null; +default value: [] +CLI usage: sparql.objList = []; -option name: classList -description: list of all ignored classes -values: class org.dllearner.core.config.StringSetConfigOption -default value: null -CLI usage: sparql.classList = null; - -option name: format -description: N-TRIPLES or KB format -values: class org.dllearner.core.config.StringConfigOption -default value: N-TRIPLES -CLI usage: sparql.format = N-TRIPLES; - -option name: dumpToFile -description: Specifies whether the extracted ontology is written to a file or not. +option name: saveExtractedFragment +description: Specifies whether the extracted ontology is written to a file or not. The OWL file is written to the cache dir.Some DBpedia URI will make the XML invalid values: class org.dllearner.core.config.BooleanConfigOption default value: true -CLI usage: sparql.dumpToFile = true; +CLI usage: sparql.saveExtractedFragment = true; -option name: useLits -description: use Literals in SPARQL query -values: class org.dllearner.core.config.BooleanConfigOption -default value: null -CLI usage: sparql.useLits = null; - -option name: getAllSuperClasses -description: If true then all superclasses are retrieved until the most general class (owl:Thing) is reached. -values: class org.dllearner.core.config.BooleanConfigOption -default value: true -CLI usage: sparql.getAllSuperClasses = true; - -option name: learnDomain -description: learns the Domain for a Role -values: class org.dllearner.core.config.BooleanConfigOption -default value: null -CLI usage: sparql.learnDomain = null; - -option name: learnRange -description: learns the Range for a Role -values: class org.dllearner.core.config.BooleanConfigOption -default value: null -CLI usage: sparql.learnRange = null; - -option name: role -description: role to learn Domain/Range from -values: class org.dllearner.core.config.StringConfigOption -default value: null -CLI usage: sparql.role = null; - -option name: blankNodeIdentifier -description: used to identify blanknodes in Tripels -values: class org.dllearner.core.config.StringConfigOption -default value: null -CLI usage: sparql.blankNodeIdentifier = null; - -option name: example -description: example -values: class org.dllearner.core.config.StringTupleListConfigOption -default value: null -CLI usage: sparql.example = null; - option name: replacePredicate description: rule for replacing predicates values: class org.dllearner.core.config.StringTupleListConfigOption -default value: null -CLI usage: sparql.replacePredicate = null; +default value: [] +CLI usage: sparql.replacePredicate = []; option name: replaceObject description: rule for replacing predicates values: class org.dllearner.core.config.StringTupleListConfigOption -default value: null -CLI usage: sparql.replaceObject = null; +default value: [] +CLI usage: sparql.replaceObject = []; option name: breakSuperClassRetrievalAfter description: stops a cyclic hierarchy after specified number of classes values: class org.dllearner.core.config.IntegerConfigOption -default value: null -CLI usage: sparql.breakSuperClassRetrievalAfter = null; +default value: 1000 +CLI usage: sparql.breakSuperClassRetrievalAfter = 1000; -option name: numberOfInstancesUsedForRoleLearning -description: -values: class org.dllearner.core.config.IntegerConfigOption -default value: null -CLI usage: sparql.numberOfInstancesUsedForRoleLearning = null; +option name: useLits +description: use Literals in SPARQL query +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: sparql.useLits = true; +option name: getAllSuperClasses +description: If true then all superclasses are retrieved until the most general class (owl:Thing) is reached. +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: sparql.getAllSuperClasses = true; + option name: closeAfterRecursion description: gets all classes for all instances values: class org.dllearner.core.config.BooleanConfigOption -default value: null -CLI usage: sparql.closeAfterRecursion = null; +default value: true +CLI usage: sparql.closeAfterRecursion = true; +option name: getPropertyInformation +description: gets all types for extracted ObjectProperties +values: class org.dllearner.core.config.BooleanConfigOption +default value: false +CLI usage: sparql.getPropertyInformation = false; + +option name: dissolveBlankNodes +description: determines whether Blanknodes are dissolved. This is a costly function. +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: sparql.dissolveBlankNodes = true; + +option name: useImprovedSparqlTupelAquisitor +description: uses deeply nested SparqlQueries, according to recursion depth, still EXPERIMENTAL +values: class org.dllearner.core.config.BooleanConfigOption +default value: false +CLI usage: sparql.useImprovedSparqlTupelAquisitor = false; + option name: verbosity description: control verbosity of output for this component values: class org.dllearner.core.config.StringConfigOption @@ -180,14 +168,14 @@ option name: defaultGraphURIs description: a list of all default Graph URIs values: class org.dllearner.core.config.StringSetConfigOption -default value: null -CLI usage: sparql.defaultGraphURIs = null; +default value: [] +CLI usage: sparql.defaultGraphURIs = []; option name: namedGraphURIs description: a list of all named Graph URIs values: class org.dllearner.core.config.StringSetConfigOption -default value: null -CLI usage: sparql.namedGraphURIs = null; +default value: [] +CLI usage: sparql.namedGraphURIs = []; ************* @@ -197,7 +185,7 @@ component: DIG reasoner (org.dllearner.reasoning.DIGReasoner) ============================================================= -CLI usage: reasoner = digReasoner; +CLI usage: null = digReasoner; option name: reasonerUrl description: URL of the DIG reasoner @@ -221,7 +209,7 @@ component: fast instance checker (org.dllearner.reasoning.FastInstanceChecker) ============================================================================== -CLI usage: reasoner = fastInstanceChecker; +CLI usage: null = fastInstanceChecker; option name: reasonerType description: FaCT++ or Pellet to dematerialize @@ -229,20 +217,26 @@ default value: pellet CLI usage: fastInstanceChecker.reasonerType = pellet; +option name: defaultNegation +description: Whether to use default negation, i.e. an instance not being in a class means that it is in the negation of the class. +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: fastInstanceChecker.defaultNegation = true; + component: fast retrieval reasoner (org.dllearner.reasoning.FastRetrievalReasoner) ================================================================================== -CLI usage: reasoner = fastRetrieval; +CLI usage: null = fastRetrievalReasoner; component: OWL API reasoner (org.dllearner.reasoning.OWLAPIReasoner) ==================================================================== -CLI usage: reasoner = owlAPIReasoner; +CLI usage: null = owlAPIReasoner; option name: reasonerType -description: FaCT++ or Pellet +description: FaCT++ or Pellet, which means "pellet" or "fact" values: class org.dllearner.core.config.StringConfigOption default value: pellet CLI usage: owlAPIReasoner.reasonerType = pellet; @@ -255,7 +249,7 @@ component: two valued definition learning problem (org.dllearner.learningproblems.PosNegDefinitionLP) ===================================================================================================== -CLI usage: problem = posNegDefinitionLP; +CLI usage: null = posNegDefinitionLP; option name: positiveExamples description: positive examples @@ -272,8 +266,8 @@ option name: useRetrievalForClassficiation description: Specifies whether to use retrieval or instance checks for testing a concept. values: class org.dllearner.core.config.BooleanConfigOption -default value: null -CLI usage: posNegDefinitionLP.useRetrievalForClassficiation = null; +default value: false +CLI usage: posNegDefinitionLP.useRetrievalForClassficiation = false; option name: percentPerLenghtUnit description: describes the reduction in classification accuracy in percent one is willing to accept for reducing the length of the concept by one @@ -284,15 +278,69 @@ option name: useMultiInstanceChecks description: See UseMultiInstanceChecks enum. values: class org.dllearner.core.config.StringConfigOption +default value: twoChecks +CLI usage: posNegDefinitionLP.useMultiInstanceChecks = twoChecks; + + +component: three valued definition learning problem (org.dllearner.learningproblems.PosNegDefinitionLPStrict) +============================================================================================================= + +CLI usage: null = null; + +option name: positiveExamples +description: positive examples +values: class org.dllearner.core.config.StringSetConfigOption default value: null -CLI usage: posNegDefinitionLP.useMultiInstanceChecks = null; +CLI usage: null.positiveExamples = null; +option name: negativeExamples +description: negative examples +values: class org.dllearner.core.config.StringSetConfigOption +default value: null +CLI usage: null.negativeExamples = null; -component: inclusion learning problem (org.dllearner.learningproblems.PosNegInclusionLP) -======================================================================================== +option name: useRetrievalForClassficiation +description: Specifies whether to use retrieval or instance checks for testing a concept. +values: class org.dllearner.core.config.BooleanConfigOption +default value: false +CLI usage: null.useRetrievalForClassficiation = false; -CLI usage: problem = posNegInclusionLP; +option name: percentPerLenghtUnit +description: describes the reduction in classification accuracy in percent one is willing to accept for reducing the length of the concept by one +values: class org.dllearner.core.config.DoubleConfigOption min 0.0 max 1.0 +default value: 0.05 +CLI usage: null.percentPerLenghtUnit = 0.05; +option name: useMultiInstanceChecks +description: See UseMultiInstanceChecks enum. +values: class org.dllearner.core.config.StringConfigOption +default value: twoChecks +CLI usage: null.useMultiInstanceChecks = twoChecks; + +option name: penaliseNeutralExamples +description: if set to true neutral examples are penalised +values: class org.dllearner.core.config.BooleanConfigOption +default value: null +CLI usage: null.penaliseNeutralExamples = null; + +option name: accuracyPenalty +description: penalty for pos/neg examples which are classified as neutral +values: class org.dllearner.core.config.DoubleConfigOption +default value: 1.0 +CLI usage: null.accuracyPenalty = 1.0; + +option name: errorPenalty +description: penalty for pos. examples classified as negative or vice versa +values: class org.dllearner.core.config.DoubleConfigOption +default value: 3.0 +CLI usage: null.errorPenalty = 3.0; + + +component: two valued inclusion learning problem (org.dllearner.learningproblems.PosNegInclusionLP) +=================================================================================================== + +CLI usage: null = posNegInclusionLP; + option name: positiveExamples description: positive examples values: class org.dllearner.core.config.StringSetConfigOption @@ -308,8 +356,8 @@ option name: useRetrievalForClassficiation description: Specifies whether to use retrieval or instance checks for testing a concept. values: class org.dllearner.core.config.BooleanConfigOption -default value: null -CLI usage: posNegInclusionLP.useRetrievalForClassficiation = null; +default value: false +CLI usage: posNegInclusionLP.useRetrievalForClassficiation = false; option name: percentPerLenghtUnit description: describes the reduction in classification accuracy in percent one is willing to accept for reducing the length of the concept by one @@ -320,14 +368,14 @@ option name: useMultiInstanceChecks description: See UseMultiInstanceChecks enum. values: class org.dllearner.core.config.StringConfigOption -default value: null -CLI usage: posNegInclusionLP.useMultiInstanceChecks = null; +default value: twoChecks +CLI usage: posNegInclusionLP.useMultiInstanceChecks = twoChecks; component: positive only definition learning problem (org.dllearner.learningproblems.PosOnlyDefinitionLP) ========================================================================================================= -CLI usage: problem = posOnlyDefinitionLP; +CLI usage: null = posOnlyDefinitionLP; option name: positiveExamples description: positive examples @@ -336,6 +384,18 @@ CLI usage: posOnlyDefinitionLP.positiveExamples = null; +component: pos only inclusion learning problem (org.dllearner.learningproblems.PosOnlyInclusionLP) +================================================================================================== + +CLI usage: null = null; + +option name: positiveExamples +description: positive examples +values: class org.dllearner.core.config.StringSetConfigOption +default value: null +CLI usage: null.positiveExamples = null; + + *********************** * Learning Algorithms * *********************** @@ -343,13 +403,13 @@ component: brute force learning algorithm (org.dllearner.algorithms.BruteForceLearner) ====================================================================================== -CLI usage: algorithm = bruteForce; +CLI usage: null = bruteForce; option name: maxLength description: maximum length of generated concepts values: class org.dllearner.core.config.IntegerConfigOption -default value: null -CLI usage: bruteForce.maxLength = null; +default value: 7 +CLI usage: bruteForce.maxLength = 7; option name: returnType description: Specifies the type which the solution has to belong to (if already) known. This means we inform the learning algorithm that the solution is a subclass of this type. @@ -358,28 +418,214 @@ CLI usage: bruteForce.returnType = null; +component: DBpedia Navigation Suggestor (org.dllearner.algorithms.DBpediaNavigationSuggestor) +============================================================================================= + +CLI usage: null = dbpediaNavigationSuggestor; + +option name: writeSearchTree +description: specifies whether to write a search tree +values: class org.dllearner.core.config.BooleanConfigOption +default value: false +CLI usage: dbpediaNavigationSuggestor.writeSearchTree = false; + +option name: searchTreeFile +description: file to use for the search tree +values: class org.dllearner.core.config.StringConfigOption +default value: log/searchTree.txt +CLI usage: dbpediaNavigationSuggestor.searchTreeFile = log/searchTree.txt; + +option name: replaceSearchTree +description: specifies whether to replace the search tree in the log file after each run or append the new search tree +values: class org.dllearner.core.config.BooleanConfigOption +default value: false +CLI usage: dbpediaNavigationSuggestor.replaceSearchTree = false; + +option name: heuristic +description: specifiy the heuristic to use +values: class org.dllearner.core.config.StringConfigOption +default value: lexicographic +CLI usage: dbpediaNavigationSuggestor.heuristic = lexicographic; + +option name: applyAllFilter +description: usage of equivalence ALL R.C AND ALL R.D = ALL R.(C AND D) +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: dbpediaNavigationSuggestor.applyAllFilter = true; + +option name: applyExistsFilter +description: usage of equivalence EXISTS R.C OR EXISTS R.D = EXISTS R.(C OR D) +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: dbpediaNavigationSuggestor.applyExistsFilter = true; + +option name: useTooWeakList +description: try to filter out too weak concepts without sending them to the reasoner +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: dbpediaNavigationSuggestor.useTooWeakList = true; + +option name: useOverlyGeneralList +description: try to find overly general concept without sending them to the reasoner +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: dbpediaNavigationSuggestor.useOverlyGeneralList = true; + +option name: useShortConceptConstruction +description: shorten concept to see whether they already exist +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: dbpediaNavigationSuggestor.useShortConceptConstruction = true; + +option name: horizontalExpansionFactor +description: horizontal expansion factor (see publication for description) +values: class org.dllearner.core.config.DoubleConfigOption min 0.0 max 1.0 +default value: 0.6 +CLI usage: dbpediaNavigationSuggestor.horizontalExpansionFactor = 0.6; + +option name: improveSubsumptionHierarchy +description: simplify subsumption hierarchy to reduce search space (see publication for description) +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: dbpediaNavigationSuggestor.improveSubsumptionHierarchy = true; + +option name: allowedConcepts +description: concepts the algorithm is allowed to use +values: class org.dllearner.core.config.StringSetConfigOption +default value: null +CLI usage: dbpediaNavigationSuggestor.allowedConcepts = null; + +option name: ignoredConcepts +description: concepts the algorithm must ignore +values: class org.dllearner.core.config.StringSetConfigOption +default value: null +CLI usage: dbpediaNavigationSuggestor.ignoredConcepts = null; + +option name: allowedRoles +description: roles the algorithm is allowed to use +values: class org.dllearner.core.config.StringSetConfigOption +default value: null +CLI usage: dbpediaNavigationSuggestor.allowedRoles = null; + +option name: ignoredRoles +description: roles the algorithm must ignore +values: class org.dllearner.core.config.StringSetConfigOption +default value: null +CLI usage: dbpediaNavigationSuggestor.ignoredRoles = null; + +option name: useAllConstructor +description: specifies whether the universal concept constructor is used in the learning algorithm +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: dbpediaNavigationSuggestor.useAllConstructor = true; + +option name: useExistsConstructor +description: specifies whether the existential concept constructor is used in the learning algorithm +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: dbpediaNavigationSuggestor.useExistsConstructor = true; + +option name: useCardinalityRestrictions +description: specifies whether CardinalityRestrictions is used in the learning algorithm +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: dbpediaNavigationSuggestor.useCardinalityRestrictions = true; + +option name: useHasValueConstructor +description: specifies whether the hasValue constructor is used in the learning algorithm +values: class org.dllearner.core.config.BooleanConfigOption +default value: false +CLI usage: dbpediaNavigationSuggestor.useHasValueConstructor = false; + +option name: valueFrequencyThreshold +description: specifies how often an object must occur as value in order to be considered for hasValue restrictions +values: class org.dllearner.core.config.IntegerConfigOption +default value: 3 +CLI usage: dbpediaNavigationSuggestor.valueFrequencyThreshold = 3; + +option name: useNegation +description: specifies whether negation is used in the learning algorothm +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: dbpediaNavigationSuggestor.useNegation = true; + +option name: useBooleanDatatypes +description: specifies whether boolean datatypes are used in the learning algorothm +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: dbpediaNavigationSuggestor.useBooleanDatatypes = true; + +option name: maxExecutionTimeInSeconds +description: algorithm will stop after specified seconds +values: class org.dllearner.core.config.IntegerConfigOption +default value: 0 +CLI usage: dbpediaNavigationSuggestor.maxExecutionTimeInSeconds = 0; + +option name: minExecutionTimeInSeconds +description: algorithm will run at least specified seconds +values: class org.dllearner.core.config.IntegerConfigOption +default value: 0 +CLI usage: dbpediaNavigationSuggestor.minExecutionTimeInSeconds = 0; + +option name: guaranteeXgoodDescriptions +description: algorithm will run until X good (100%) concept descritpions are found +values: class org.dllearner.core.config.IntegerConfigOption +default value: 1 +CLI usage: dbpediaNavigationSuggestor.guaranteeXgoodDescriptions = 1; + +option name: logLevel +description: determines the logLevel for this component, can be {TRACE, DEBUG, INFO} +values: class org.dllearner.core.config.StringConfigOption +default value: DEBUG +CLI usage: dbpediaNavigationSuggestor.logLevel = DEBUG; + +option name: noisePercentage +description: the (approximated) percentage of noise within the examples +values: class org.dllearner.core.config.DoubleConfigOption min 0.0 max 100.0 +default value: 0.0 +CLI usage: dbpediaNavigationSuggestor.noisePercentage = 0.0; + +option name: startClass +description: the named class which should be used to start the algorithm (GUI: needs a widget for selecting a class) +values: class org.dllearner.core.config.StringConfigOption +default value: null +CLI usage: dbpediaNavigationSuggestor.startClass = null; + +option name: forceRefinementLengthIncrease +description: specifies whether nodes should be expanded until only longer refinements are reached +values: class org.dllearner.core.config.BooleanConfigOption +default value: null +CLI usage: dbpediaNavigationSuggestor.forceRefinementLengthIncrease = null; + + component: random guesser learning algorithm (org.dllearner.algorithms.RandomGuesser) ===================================================================================== -CLI usage: algorithm = random; +CLI usage: null = random; option name: numberOfTrees description: number of randomly generated concepts/trees values: class org.dllearner.core.config.IntegerConfigOption -default value: null -CLI usage: random.numberOfTrees = null; +default value: 5 +CLI usage: random.numberOfTrees = 5; option name: maxDepth description: maximum depth of generated concepts/trees values: class org.dllearner.core.config.IntegerConfigOption -default value: null -CLI usage: random.maxDepth = null; +default value: 5 +CLI usage: random.maxDepth = 5; +component: simple suggestion algorithm (org.dllearner.algorithms.SimpleSuggestionLearningAlgorithm) +=================================================================================================== + +CLI usage: null = null; + + component: genetic programming learning algorithm (org.dllearner.algorithms.gp.GP) ================================================================================== -CLI usage: algorithm = gp; +CLI usage: null = gp; option name: selectionType description: selection type @@ -399,29 +645,35 @@ default value: true CLI usage: gp.elitism = true; -option name: mutationProbablitiy +option name: algorithmType +description: algorithm type +values: class org.dllearner.core.config.StringConfigOption +default value: steadyState +CLI usage: gp.algorithmType = steadyState; + +option name: mutationProbability description: mutation probability values: class org.dllearner.core.config.DoubleConfigOption min 0.0 max 1.0 default value: 0.03 -CLI usage: gp.mutationProbablitiy = 0.03; +CLI usage: gp.mutationProbability = 0.03; -option name: crossoverProbablitiy +option name: crossoverProbability description: crossover probability values: class org.dllearner.core.config.DoubleConfigOption min 0.0 max 1.0 default value: 0.95 -CLI usage: gp.crossoverProbablitiy = 0.95; +CLI usage: gp.crossoverProbability = 0.95; -option name: hillClimbingProbablitiy +option name: hillClimbingProbability description: hill climbing probability values: class org.dllearner.core.config.DoubleConfigOption min 0.0 max 1.0 default value: 0.0 -CLI usage: gp.hillClimbingProbablitiy = 0.0; +CLI usage: gp.hillClimbingProbability = 0.0; -option name: refinementProbablitiy +option name: refinementProbability description: refinement operator probability (values higher than 0 turn this into a hybrid GP algorithm - see publication) values: class org.dllearner.core.config.DoubleConfigOption min 0.0 max 1.0 default value: 0.0 -CLI usage: gp.refinementProbablitiy = 0.0; +CLI usage: gp.refinementProbability = 0.0; option name: numberOfIndividuals description: number of individuals @@ -481,7 +733,7 @@ component: example driven refinement operator based learning algorithm (org.dllearner.algorithms.refexamples.ExampleBasedROLComponent) ====================================================================================================================================== -CLI usage: algorithm = refexamples; +CLI usage: null = refexamples; option name: writeSearchTree description: specifies whether to write a search tree @@ -585,6 +837,18 @@ default value: true CLI usage: refexamples.useExistsConstructor = true; +option name: useHasValueConstructor +description: specifies whether the hasValue constructor is used in the learning algorithm +values: class org.dllearner.core.config.BooleanConfigOption +default value: false +CLI usage: refexamples.useHasValueConstructor = false; + +option name: valueFrequencyThreshold +description: specifies how often an object must occur as value in order to be considered for hasValue restrictions +values: class org.dllearner.core.config.IntegerConfigOption +default value: 3 +CLI usage: refexamples.valueFrequencyThreshold = 3; + option name: useCardinalityRestrictions description: specifies whether CardinalityRestrictions is used in the learning algorithm values: class org.dllearner.core.config.BooleanConfigOption @@ -603,6 +867,12 @@ default value: true CLI usage: refexamples.useBooleanDatatypes = true; +option name: useDoubleDatatypes +description: specifies whether boolean datatypes are used in the learning algorothm +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: refexamples.useDoubleDatatypes = true; + option name: maxExecutionTimeInSeconds description: algorithm will stop after specified seconds values: class org.dllearner.core.config.IntegerConfigOption @@ -621,17 +891,35 @@ default value: 1 CLI usage: refexamples.guaranteeXgoodDescriptions = 1; +option name: maxClassDescriptionTests +description: The maximum number of candidate hypothesis the algorithm is allowed to test (0 = no limit). The algorithm will stop afterwards. (The real number of tests can be slightly higher, because this criterion usually won't be checked after each single test.) +values: class org.dllearner.core.config.IntegerConfigOption +default value: 0 +CLI usage: refexamples.maxClassDescriptionTests = 0; + option name: logLevel description: determines the logLevel for this component, can be {TRACE, DEBUG, INFO} values: class org.dllearner.core.config.StringConfigOption default value: DEBUG CLI usage: refexamples.logLevel = DEBUG; +option name: usePropernessChecks +description: specifies whether to check for equivalence (i.e. discard equivalent refinements) +values: class org.dllearner.core.config.BooleanConfigOption +default value: false +CLI usage: refexamples.usePropernessChecks = false; + +option name: maxPosOnlyExpansion +description: specifies how often a node in the search tree of a posonly learning problem needs to be expanded before it is considered as solution candidate +values: class org.dllearner.core.config.IntegerConfigOption +default value: 4 +CLI usage: refexamples.maxPosOnlyExpansion = 4; + option name: noisePercentage description: the (approximated) percentage of noise within the examples values: class org.dllearner.core.config.DoubleConfigOption min 0.0 max 100.0 -default value: null -CLI usage: refexamples.noisePercentage = null; +default value: 0.0 +CLI usage: refexamples.noisePercentage = 0.0; option name: startClass description: the named class which should be used to start the algorithm (GUI: needs a widget for selecting a class) @@ -639,11 +927,17 @@ default value: null CLI usage: refexamples.startClass = null; +option name: forceRefinementLengthIncrease +description: specifies whether nodes should be expanded until only longer refinements are reached +values: class org.dllearner.core.config.BooleanConfigOption +default value: null +CLI usage: refexamples.forceRefinementLengthIncrease = null; + component: refinement operator based learning algorithm (org.dllearner.algorithms.refinement.ROLearner) ======================================================================================================= -CLI usage: algorithm = refinement; +CLI usage: null = refinement; option name: writeSearchTree description: specifies whether to write a search tree @@ -759,6 +1053,12 @@ default value: true CLI usage: refinement.useNegation = true; +option name: useCardinalityRestrictions +description: specifies whether CardinalityRestrictions is used in the learning algorithm +values: class org.dllearner.core.config.BooleanConfigOption +default value: true +CLI usage: refinement.useCardinalityRestrictions = true; + option name: useBooleanDatatypes description: specifies whether boolean datatypes are used in the learning algorothm values: class org.dllearner.core.config.BooleanConfigOption Modified: trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf =================================================================== --- trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf 2008-10-11 10:25:09 UTC (rev 1367) +++ trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf 2008-10-11 13:35:40 UTC (rev 1368) @@ -87,6 +87,6 @@ /** examples **/ -+"http://dbpedia.org/resource/Helmut_Kohl" --"http://dbpedia.org/resource/Angela_Merkel" +-"http://dbpedia.org/resource/Helmut_Kohl" ++"http://dbpedia.org/resource/Angela_Merkel" Modified: trunk/examples/sparql/scrobble.conf =================================================================== --- trunk/examples/sparql/scrobble.conf 2008-10-11 10:25:09 UTC (rev 1367) +++ trunk/examples/sparql/scrobble.conf 2008-10-11 13:35:40 UTC (rev 1368) @@ -23,15 +23,28 @@ refexamples.useNegation = false; refexamples.useAllConstructor = false; refexamples.useCardinalityRestrictions = false; + +refexamples.writeSearchTree = true; +refexamples.searchTreeFile = "log/searchtree.txt"; +refexamples.replaceSearchTree = true; + reasoner = fastInstanceChecker; import("http://dbtune.org/musicbrainz/sparql","SPARQL"); + // we transform tags to classes sparql.replacePredicate=[( "http://www.holygoat.co.uk/owl/redwood/0.1/tags/taggedWithTag", "http://www.w3.org/1999/02/22-rdf-syntax-ns#type")]; +/* +// some consistency transformation +sparql.replaceObject=[( +"http://dbtune.org/musicbrainz/resource/tag/", +"http://dbtune.org/musicbrainz/resource/tag/tag")]; +*/ + // some background knowledge about the tags ("semantically enriched tag cloud") import("scrobble.kb"); Modified: trunk/examples/sparql/scrobble.kb =================================================================== --- trunk/examples/sparql/scrobble.kb 2008-10-11 10:25:09 UTC (rev 1367) +++ trunk/examples/sparql/scrobble.kb 2008-10-11 13:35:40 UTC (rev 1368) @@ -4,3 +4,12 @@ "http://dbtune.org/musicbrainz/resource/tag/171" = "http://dbtune.org/musicbrainz/resource/tag/237". // progressive rock is rock "http://dbtune.org/musicbrainz/resource/tag/29" SUBCLASSOF "http://dbtune.org/musicbrainz/resource/tag/7". + +//repetition for valid xml by OWL API + +// english implies british +"http://dbtune.org/musicbrainz/resource/tag/tag1391" SUBCLASSOF "http://dbtune.org/musicbrainz/resource/tag/tag171". +// Britain = UK +"http://dbtune.org/musicbrainz/resource/tag/tag171" = "http://dbtune.org/musicbrainz/resource/tag/tag237". +// progressive rock is rock +"http://dbtune.org/musicbrainz/resource/tag/tag29" SUBCLASSOF "http://dbtune.org/musicbrainz/resource/tag/tag7". Modified: trunk/src/dl-learner/org/dllearner/kb/extraction/ClassNode.java =================================================================== --- trunk/src/dl-learner/org/dllearner/kb/extraction/ClassNode.java 2008-10-11 10:25:09 UTC (rev 1367) +++ trunk/src/dl-learner/org/dllearner/kb/extraction/ClassNode.java 2008-10-11 13:35:40 UTC (rev 1368) @@ -178,7 +178,7 @@ OWLLabelAnnotation label = factory.getOWLLabelAnnotation(one.getBPart().getLiteral().getString()); owlAPIOntologyCollector.addAxiom(factory.getOWLEntityAnnotationAxiom(me, label)); }else { - tail(true, "in ontology conversion, no other datatypes, but annotation allowed for class"+" data property is: "+one.getURIString()+" connected with: "+one.getBPart().getNTripleForm()); + tail(true, "in ontology conversion: no other datatypes, but annotation is allowed for classes."+" data property is: "+one.getURIString()+" connected with: "+one.getBPart().getNTripleForm()); } Modified: trunk/src/dl-learner/org/dllearner/kb/extraction/Node.java =================================================================== --- trunk/src/dl-learner/org/dllearner/kb/extraction/Node.java 2008-10-11 10:25:09 UTC (rev 1367) +++ trunk/src/dl-learner/org/dllearner/kb/extraction/Node.java 2008-10-11 13:35:40 UTC (rev 1368) @@ -40,7 +40,7 @@ .getLogger(Node.class); // make sure no information is missed during the transition to OWLAPI - public static final boolean DEBUGTAIL = true; + public static final boolean DEBUGTAIL = false; protected String uri; // protected String type; @@ -114,7 +114,7 @@ public void tail(boolean ignore, String tailmessage){ - String message = "difficult tuple. Subject is: "+ this.getURIString()+" of class"+this.getClass().getSimpleName()+" " + + String message = "difficult tuple. Subject is: "+ this.getURIString()+" of type: "+this.getClass().getSimpleName()+" " + "info: "+tailmessage; if(ignore){ if(DEBUGTAIL){ Modified: trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlKnowledgeSource.java =================================================================== --- trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlKnowledgeSource.java 2008-10-11 10:25:09 UTC (rev 1367) +++ trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlKnowledgeSource.java 2008-10-11 13:35:40 UTC (rev 1368) @@ -59,7 +59,6 @@ import org.dllearner.utilities.JamonMonitorLogger; import org.dllearner.utilities.datastructures.StringTuple; import org.dllearner.utilities.statistics.SimpleClock; -import org.semanticweb.owl.model.OWLAxiom; import org.semanticweb.owl.model.OWLOntology; import com.jamonapi.Monitor; @@ -178,7 +177,7 @@ "Specifies whether the extracted ontology is written to a file or not. " + "The OWL file is written to the cache dir." + "Some DBpedia URI will make the XML invalid", - true, false, true)); + false, false, true)); options.add(new StringTupleListConfigOption("replacePredicate", "rule for replacing predicates", new ArrayList<StringTuple>(), false, true)); options.add(new StringTupleListConfigOption("replaceObject", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2008-10-11 10:25:18
|
Revision: 1367 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1367&view=rev Author: jenslehmann Date: 2008-10-11 10:25:09 +0000 (Sat, 11 Oct 2008) Log Message: ----------- removed System.out Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/reasoning/OWLAPIReasoner.java Modified: trunk/src/dl-learner/org/dllearner/reasoning/OWLAPIReasoner.java =================================================================== --- trunk/src/dl-learner/org/dllearner/reasoning/OWLAPIReasoner.java 2008-10-11 10:22:01 UTC (rev 1366) +++ trunk/src/dl-learner/org/dllearner/reasoning/OWLAPIReasoner.java 2008-10-11 10:25:09 UTC (rev 1367) @@ -307,7 +307,6 @@ boolean owlAPIbuggy = true; // remove once this problem has been resolved in OWL API if(!owlAPIbuggy || sources.size() < 2) { for(OWLOntology ont : owlAPIOntologies) { - System.out.println(ont); if(!reasoner.isConsistent(ont)) { inconsistentOntology = true; throw new ComponentInitException("Inconsistent ontologies."); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2008-10-11 10:22:13
|
Revision: 1366 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1366&view=rev Author: jenslehmann Date: 2008-10-11 10:22:01 +0000 (Sat, 11 Oct 2008) Log Message: ----------- bug fix for scrobble.conf Modified Paths: -------------- trunk/examples/sparql/scrobble.conf trunk/src/dl-learner/org/dllearner/reasoning/OWLAPIReasoner.java Removed Paths: ------------- trunk/examples/sparql/musicbrainz.conf Deleted: trunk/examples/sparql/musicbrainz.conf =================================================================== --- trunk/examples/sparql/musicbrainz.conf 2008-10-11 09:24:11 UTC (rev 1365) +++ trunk/examples/sparql/musicbrainz.conf 2008-10-11 10:22:01 UTC (rev 1366) @@ -1,48 +0,0 @@ - - -/** - - http://www.govtrack.us/sparql.xpd?query=SELECT * WHERE { <http://www.rdfabout.com/rdf/usgov/congress/people/A000360> ?predicate ?object. FILTER( (!isLiteral(?object))).} - -**/ - -sparql.recursionDepth = 4; -sparql.predefinedEndpoint = "MUSICBRAINZ"; -sparql.predefinedFilter = "YAGO"; - -sparql.useLits=true; - -algorithm = refexamples; -//reasoner = owlAPIReasoner; - reasoner = fastInstanceChecker; - - - refexamples.useAllConstructor = false; - refexamples.useExistsConstructor = true; - refexamples.useCardinalityRestrictions = false; -refexamples.useNegation = false; - -import("http://dbtune.org/musicbrainz/sparql","SPARQL"); - - -/** -sparql.instances = { -"http://zitgist.com/music/artist/a066b730-3809-4b39-a091-2297d40b51db", -"http://zitgist.com/music/artist/cf0f4547-ffbd-4011-98ad-0bec9ba022db" -}; - -+"http://zitgist.com/music/artist/a066b730-3809-4b39-a091-2297d40b51db" --"http://zitgist.com/music/artist/cf0f4547-ffbd-4011-98ad-0bec9ba022db" - - -http://dbtune.org/musicbrainz/resource/track/ -**/ - -sparql.instances = { -"http://dbtune.org/musicbrainz/resource/artist/a066b730-3809-4b39-a091-2297d40b51db", -"http://dbtune.org/musicbrainz/resource/artist/cf0f4547-ffbd-4011-98ad-0bec9ba022db" -}; - -+"http://dbtune.org/musicbrainz/resource/artist/a066b730-3809-4b39-a091-2297d40b51db" --"http://dbtune.org/musicbrainz/resource/artist/cf0f4547-ffbd-4011-98ad-0bec9ba022db" - Modified: trunk/examples/sparql/scrobble.conf =================================================================== --- trunk/examples/sparql/scrobble.conf 2008-10-11 09:24:11 UTC (rev 1365) +++ trunk/examples/sparql/scrobble.conf 2008-10-11 10:22:01 UTC (rev 1366) @@ -19,8 +19,6 @@ sparql.recursionDepth = 3; sparql.predefinedEndpoint = "MUSICBRAINZ"; -// sparql.useLits=true; - algorithm = refexamples; refexamples.useNegation = false; refexamples.useAllConstructor = false; Modified: trunk/src/dl-learner/org/dllearner/reasoning/OWLAPIReasoner.java =================================================================== --- trunk/src/dl-learner/org/dllearner/reasoning/OWLAPIReasoner.java 2008-10-11 09:24:11 UTC (rev 1365) +++ trunk/src/dl-learner/org/dllearner/reasoning/OWLAPIReasoner.java 2008-10-11 10:22:01 UTC (rev 1366) @@ -197,6 +197,7 @@ Set<OWLIndividual> owlIndividuals = new TreeSet<OWLIndividual>(namedObjectComparator); Set<OWLOntology> allImports = new HashSet<OWLOntology>(); + prefixes = new TreeMap<String,String>(); for(KnowledgeSource source : sources) { @@ -204,35 +205,18 @@ URL url=null; if(source instanceof OWLFile){ url = ((OWLFile)source).getURL(); - } - else if(source instanceof SparqlKnowledgeSource) { - source = new OWLAPIOntology(((SparqlKnowledgeSource)source).getOWLAPIOntology()); - //url=((SparqlKnowledgeSource)source).getOntologyFragmentURL(); } try { - if(source instanceof OWLAPIOntology) - { - OWLOntology ontology = ((OWLAPIOntology)source).getOWLOntolgy(); - owlAPIOntologies.add(ontology); - allImports.addAll(manager.getImportsClosure(ontology)); - classes.addAll(ontology.getReferencedClasses()); - owlObjectProperties.addAll(ontology.getReferencedObjectProperties()); - owlDatatypeProperties.addAll(ontology.getReferencedDataProperties()); - owlIndividuals.addAll(ontology.getReferencedIndividuals()); - - // TODO: this obviously works only for exactly one knowledge source - OWLOntologyFormat format = manager.getOntologyFormat(ontology); - if(format instanceof NamespaceOWLOntologyFormat) - { - prefixes = ((NamespaceOWLOntologyFormat)format).getNamespacesByPrefixMap(); - baseURI = prefixes.get(""); - prefixes.remove(""); - } + OWLOntology ontology; + if(source instanceof OWLAPIOntology) { + ontology = ((OWLAPIOntology)source).getOWLOntolgy(); + } else if (source instanceof SparqlKnowledgeSource) { + ontology = ((SparqlKnowledgeSource)source).getOWLAPIOntology(); + } else { + ontology = manager.loadOntologyFromPhysicalURI(url.toURI()); } - else - { - OWLOntology ontology = manager.loadOntologyFromPhysicalURI(url.toURI()); + owlAPIOntologies.add(ontology); allImports.addAll(manager.getImportsClosure(ontology)); classes.addAll(ontology.getReferencedClasses()); @@ -240,17 +224,18 @@ owlDatatypeProperties.addAll(ontology.getReferencedDataProperties()); owlIndividuals.addAll(ontology.getReferencedIndividuals()); - // TODO: this obviously works only for exactly one knowledge source + // if several knowledge sources are included, then we can only + // guarantee that the base URI is from one of those sources (there + // can't be more than one); but we will take care that all prefixes are + // correctly imported OWLOntologyFormat format = manager.getOntologyFormat(ontology); if(format instanceof NamespaceOWLOntologyFormat) { - prefixes = ((NamespaceOWLOntologyFormat)format).getNamespacesByPrefixMap(); + prefixes.putAll(((NamespaceOWLOntologyFormat)format).getNamespacesByPrefixMap()); baseURI = prefixes.get(""); prefixes.remove(""); } - } - } - catch (OWLOntologyCreationException e) { + } catch (OWLOntologyCreationException e) { e.printStackTrace(); } catch (URISyntaxException e) { e.printStackTrace(); @@ -315,12 +300,21 @@ boolean inconsistentOntology = false; try { reasoner.loadOntologies(allImports); + + // OWL API bug: if we test an ontology for consistency, then + // this ontology is automatically used for all subsequent + // reasoning tasks (and all others ignored) + boolean owlAPIbuggy = true; // remove once this problem has been resolved in OWL API + if(!owlAPIbuggy || sources.size() < 2) { for(OWLOntology ont : owlAPIOntologies) { + System.out.println(ont); if(!reasoner.isConsistent(ont)) { inconsistentOntology = true; throw new ComponentInitException("Inconsistent ontologies."); } } + } + if(!inconsistentOntology) { reasoner.classify(); reasoner.realise(); @@ -364,8 +358,10 @@ } datatypeProperties.add(dtp); } - for(OWLIndividual owlIndividual : owlIndividuals) + for(OWLIndividual owlIndividual : owlIndividuals) { individuals.add(new Individual(owlIndividual.getURI().toString())); + } + } /* (non-Javadoc) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2008-10-11 09:32:28
|
Revision: 1364 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1364&view=rev Author: jenslehmann Date: 2008-10-11 09:09:25 +0000 (Sat, 11 Oct 2008) Log Message: ----------- fixed debug output Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlQuery.java Modified: trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlQuery.java =================================================================== --- trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlQuery.java 2008-10-10 16:37:57 UTC (rev 1363) +++ trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlQuery.java 2008-10-11 09:09:25 UTC (rev 1364) @@ -135,8 +135,11 @@ }catch (RuntimeException e) { - logger.debug("RuntimeException in SparqlQuery (see /log/sparql.txt): "+ e.toString()); - logger.debug("query was (first 300 chars) "+ sparqlQueryString.substring(0,300).replaceAll("\n", " ")); + if(logger.isDebugEnabled()) { + logger.debug("RuntimeException in SparqlQuery (see /log/sparql.txt): "+ e.toString()); + int length = Math.min(sparqlQueryString.length(), 300); + logger.debug("query was (max. 300 chars displayed) "+ sparqlQueryString.substring(0,length-1).replaceAll("\n", " ")); + } writeToSparqlLog("ERROR: HTTPException occured: "+ e.toString()); isRunning = false; throw e; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2008-10-11 09:25:13
|
Revision: 1365 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1365&view=rev Author: jenslehmann Date: 2008-10-11 09:24:11 +0000 (Sat, 11 Oct 2008) Log Message: ----------- CLI bug fix Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/cli/Start.java Modified: trunk/src/dl-learner/org/dllearner/cli/Start.java =================================================================== --- trunk/src/dl-learner/org/dllearner/cli/Start.java 2008-10-11 09:09:25 UTC (rev 1364) +++ trunk/src/dl-learner/org/dllearner/cli/Start.java 2008-10-11 09:24:11 UTC (rev 1365) @@ -286,7 +286,7 @@ Monitor laMonitor = JamonMonitorLogger.getTimeMonitor(Start.class, "initLearningAlgorithm").start(); ConfFileOption algorithmOption = parser.getConfOptionsByName("algorithm"); Class<? extends LearningAlgorithm> laClass; - if(problemOption != null) { + if(algorithmOption != null) { laClass = confMapper.getLearningAlgorithmClass(algorithmOption.getStringValue()); if(laClass == null) { handleError("Invalid value \"" + algorithmOption.getStringValue() + "\" in " + algorithmOption + ". Valid values are " + confMapper.getLearningAlgorithms() + "."); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2008-10-10 16:38:07
|
Revision: 1363 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1363&view=rev Author: jenslehmann Date: 2008-10-10 16:37:57 +0000 (Fri, 10 Oct 2008) Log Message: ----------- updated README and INSTALL Modified Paths: -------------- trunk/INSTALL trunk/examples/sparql/README.txt Added Paths: ----------- trunk/examples/krk/README.txt Modified: trunk/INSTALL =================================================================== --- trunk/INSTALL 2008-10-10 16:23:50 UTC (rev 1362) +++ trunk/INSTALL 2008-10-10 16:37:57 UTC (rev 1363) @@ -8,8 +8,6 @@ Running Instructions ==================== -The instructions assume that you have a usable reasoner running (usually a -DIG capable reasoner running on http://localhost:8081). Linux (and other systems) @@ -31,7 +29,6 @@ =========== If you want to run DL-Learner as a Web Service, you can run the scripts "ws" or -"ws.bat". They create an own local webserver running DL-Learner. An example -PHP client is also provided by DL-Learner. It can be downloaded at the -sourceforge.net project website: -http://sourceforge.net/project/showfiles.php?group_id=203619 +"ws.bat". They create an own local webserver running DL-Learner. Some simple +PHP example for using the web service are available at our SVN Repository: +http://dl-learner.svn.sourceforge.net/viewvc/dl-learner/trunk/src/php-examples/ Added: trunk/examples/krk/README.txt =================================================================== --- trunk/examples/krk/README.txt (rev 0) +++ trunk/examples/krk/README.txt 2008-10-10 16:37:57 UTC (rev 1363) @@ -0,0 +1,7 @@ +This directory contains some files for the King-Rook vs. King problem. +See: http://archive.ics.uci.edu/ml/datasets/Chess+(King-Rook+vs.+King) + +To run all experiments, some of the OWL files have to be generated +(contact us for further details), which is the reason why not all +problems in this directory are runnable. We decided not to include the +necessary large OWL files in the DL-Learner release. Modified: trunk/examples/sparql/README.txt =================================================================== --- trunk/examples/sparql/README.txt 2008-10-10 16:23:50 UTC (rev 1362) +++ trunk/examples/sparql/README.txt 2008-10-10 16:37:57 UTC (rev 1363) @@ -1,7 +1,5 @@ -Note: DBpedia is always subject to change, solutions will change over time +Note: DBpedia is always subject to change, so solutions will change over time. -After using the SPARQL Component, a n-triple file is created at: -examples/../cache/ or root/cache -Which contains the used knowledge base. - +When using the SPARQL component, files are written into the directory /cache to +avoid performing the same queries more than once. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2008-10-10 16:23:57
|
Revision: 1362 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1362&view=rev Author: jenslehmann Date: 2008-10-10 16:23:50 +0000 (Fri, 10 Oct 2008) Log Message: ----------- adapted/commented two learning problems Added Paths: ----------- trunk/examples/sparql/actors.conf trunk/examples/sparql/actors2.conf Removed Paths: ------------- trunk/examples/sparql/SilentBobWorking1.conf trunk/examples/sparql/SilentBobWorking2.conf Deleted: trunk/examples/sparql/SilentBobWorking1.conf =================================================================== --- trunk/examples/sparql/SilentBobWorking1.conf 2008-10-10 15:44:36 UTC (rev 1361) +++ trunk/examples/sparql/SilentBobWorking1.conf 2008-10-10 16:23:50 UTC (rev 1362) @@ -1,44 +0,0 @@ -// Note: DBpedia is always subject to change, solutions will change over time - - -refinement.useAllConstructor = false; -refinement.useExistsConstructor = true; -refinement.useNegation = false; - - -// recursion depth of extraction algorithm -sparql.recursionDepth = 1; - - -//predefined filter (1 = YAGO based learning) -// 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter -sparql.predefinedFilter = "YAGO"; -sparql.predefinedEndpoint = "DBPEDIA"; - - -// use DBpedia endpoint -import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL"); - -// the set of objects as starting point for fragment selection -// (should be identical to the set of examples) -sparql.instances = { -"http://dbpedia.org/resource/Matt_Stone", -"http://dbpedia.org/resource/Sarah_Silverman", -"http://dbpedia.org/resource/Jim_Carrey", -"http://dbpedia.org/resource/Jason_Mewes", -"http://dbpedia.org/resource/Kevin_Smith", -"http://dbpedia.org/resource/Trey_Parker", -"http://dbpedia.org/resource/Adam_Sandler"}; - - - -// http://dbpedia.org/class/yago/agnostic OR http://dbpedia.org/class/yago/artist -// http://dbpedia.org/class/yago/agnostic OR http://dbpedia.org/class/yago/teetotaler - -+"http://dbpedia.org/resource/Matt_Stone" -+"http://dbpedia.org/resource/Sarah_Silverman" --"http://dbpedia.org/resource/Jim_Carrey" --"http://dbpedia.org/resource/Jason_Mewes" --"http://dbpedia.org/resource/Kevin_Smith" --"http://dbpedia.org/resource/Trey_Parker" --"http://dbpedia.org/resource/Adam_Sandler" \ No newline at end of file Deleted: trunk/examples/sparql/SilentBobWorking2.conf =================================================================== --- trunk/examples/sparql/SilentBobWorking2.conf 2008-10-10 15:44:36 UTC (rev 1361) +++ trunk/examples/sparql/SilentBobWorking2.conf 2008-10-10 16:23:50 UTC (rev 1362) @@ -1,51 +0,0 @@ -//Note: DBpedia is always subject to change, solutions will change over time - - -refinement.useAllConstructor = false; -refinement.useExistsConstructor = true; -refinement.useNegation = false; - - -// recursion depth of extraction algorithm -sparql.recursionDepth = 1; - - -//predefined filter (1 = YAGO based learning) -// 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter -sparql.predefinedFilter = "YAGO"; -sparql.predefinedEndpoint = "DBPEDIA"; - - -// use DBpedia endpoint -import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL"); - -// the set of objects as starting point for fragment selection -// (should be identical to the set of examples) -sparql.instances = { - "http://dbpedia.org/resource/Matt_Stone", -"http://dbpedia.org/resource/Sarah_Silverman", -"http://dbpedia.org/resource/Kevin_Smith", - -"http://dbpedia.org/resource/Jason_Mewes", -"http://dbpedia.org/resource/Jim_Carrey", -"http://dbpedia.org/resource/Trey_Parker", -"http://dbpedia.org/resource/Adam_Sandler" - -}; - - -/* -Category:1970s AND Category:Religion_in_the_United_States -Category:Actors AND Category:Religion_in_the_United_States -*/ - -+"http://dbpedia.org/resource/Matt_Stone" -+"http://dbpedia.org/resource/Sarah_Silverman" -+"http://dbpedia.org/resource/Kevin_Smith" - --"http://dbpedia.org/resource/Jason_Mewes" --"http://dbpedia.org/resource/Jim_Carrey" --"http://dbpedia.org/resource/Trey_Parker" --"http://dbpedia.org/resource/Adam_Sandler" - - Copied: trunk/examples/sparql/actors.conf (from rev 1360, trunk/examples/sparql/SilentBobWorking1.conf) =================================================================== --- trunk/examples/sparql/actors.conf (rev 0) +++ trunk/examples/sparql/actors.conf 2008-10-10 16:23:50 UTC (rev 1362) @@ -0,0 +1,35 @@ +/** + * Learning problem involving some actors. + * + * Note: DBpedia is always subject to change, solutions will change over time + */ + +// recursion depth of extraction algorithm +sparql.recursionDepth = 1; + +//predefined filter (1 = YAGO based learning) +// 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter +sparql.predefinedFilter = "YAGO"; +sparql.predefinedEndpoint = "DBPEDIA"; + +// use DBpedia endpoint +import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL"); + +// the set of objects as starting point for fragment selection +// (should be identical to the set of examples) +sparql.instances = { +"http://dbpedia.org/resource/Matt_Stone", +"http://dbpedia.org/resource/Sarah_Silverman", +"http://dbpedia.org/resource/Jim_Carrey", +"http://dbpedia.org/resource/Jason_Mewes", +"http://dbpedia.org/resource/Kevin_Smith", +"http://dbpedia.org/resource/Trey_Parker", +"http://dbpedia.org/resource/Adam_Sandler"}; + ++"http://dbpedia.org/resource/Matt_Stone" ++"http://dbpedia.org/resource/Sarah_Silverman" +-"http://dbpedia.org/resource/Jim_Carrey" +-"http://dbpedia.org/resource/Jason_Mewes" +-"http://dbpedia.org/resource/Kevin_Smith" +-"http://dbpedia.org/resource/Trey_Parker" +-"http://dbpedia.org/resource/Adam_Sandler" \ No newline at end of file Copied: trunk/examples/sparql/actors2.conf (from rev 1360, trunk/examples/sparql/SilentBobWorking2.conf) =================================================================== --- trunk/examples/sparql/actors2.conf (rev 0) +++ trunk/examples/sparql/actors2.conf 2008-10-10 16:23:50 UTC (rev 1362) @@ -0,0 +1,43 @@ +/** + * Learning problem involving some actors. + * + * Note: DBpedia is always subject to change, solutions will change over time + */ + +refexamples.useAllConstructor = false; + +// recursion depth of extraction algorithm +sparql.recursionDepth = 1; + +//predefined filter (1 = YAGO based learning) +// 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter +sparql.predefinedFilter = "YAGO"; +sparql.predefinedEndpoint = "DBPEDIA"; + +// use DBpedia endpoint +import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL"); + +// the set of objects as starting point for fragment selection +// (should be identical to the set of examples) +sparql.instances = { + "http://dbpedia.org/resource/Matt_Stone", +"http://dbpedia.org/resource/Sarah_Silverman", +"http://dbpedia.org/resource/Kevin_Smith", + +"http://dbpedia.org/resource/Jason_Mewes", +"http://dbpedia.org/resource/Jim_Carrey", +"http://dbpedia.org/resource/Trey_Parker", +"http://dbpedia.org/resource/Adam_Sandler" + +}; + ++"http://dbpedia.org/resource/Matt_Stone" ++"http://dbpedia.org/resource/Sarah_Silverman" ++"http://dbpedia.org/resource/Kevin_Smith" + +-"http://dbpedia.org/resource/Jason_Mewes" +-"http://dbpedia.org/resource/Jim_Carrey" +-"http://dbpedia.org/resource/Trey_Parker" +-"http://dbpedia.org/resource/Adam_Sandler" + + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jen...@us...> - 2008-10-10 15:44:42
|
Revision: 1361 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1361&view=rev Author: jenslehmann Date: 2008-10-10 15:44:36 +0000 (Fri, 10 Oct 2008) Log Message: ----------- fixed 3 examples (2 remaining) Modified Paths: -------------- trunk/examples/krk/KRK_ZERO_against_1to5_fastInstance.conf trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf trunk/examples/sparql/govtrack.conf trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java Modified: trunk/examples/krk/KRK_ZERO_against_1to5_fastInstance.conf =================================================================== --- trunk/examples/krk/KRK_ZERO_against_1to5_fastInstance.conf 2008-10-10 08:39:29 UTC (rev 1360) +++ trunk/examples/krk/KRK_ZERO_against_1to5_fastInstance.conf 2008-10-10 15:44:36 UTC (rev 1361) @@ -1,22 +1,11 @@ /** -DEBUG - --- loop 22845 started --- -DEBUG - start node: TOP [acc:2,452% h:-0,192 q:0p-1074n (START), he:14 c:9568] -DEBUG - currently best node: ALL "hasPiece".(ALL "fileDistance1"."BKing" AND ALL "fileDistance6"."WRook" AND ALL "fileDistance7"."WKing" AND (EXISTS "fileDistanceLessThan3".(EXISTS "fileDistanceLessThan2".ALL "rankDistance1"."WKing" AND ALL "rankDistance1"."WKing") OR ("WRook" AND EXISTS "hasLowerRankThan".TOP))) [acc:92,461% h:0,124 q:0p-83n (REASONER), he:32 c:14] -DEBUG - next expanded node: ALL "hasPiece".(ALL "fileDistance1"."BKing" AND ALL "fileDistance6"."WRook" AND ALL "fileDistance7"."WKing" AND (EXISTS "fileDistanceLessThan3".(EXISTS "fileDistanceLessThan1".ALL "fileDistanceLessThan4".TOP AND ALL "rankDistance1"."WKing") OR ("WRook" AND EXISTS "hasLowerRankThan".ALL "rankDistance1".BOTTOM))) [acc:92,461% h:0,125 q:0p-83n (REASONER), he:32 c:0] -DEBUG - algorithm runtime 2351s 900ms -DEBUG - size of candidate set: 4247 -DEBUG - subsumption time: 22ms -DEBUG - instance check time: 2036s 942ms -DEBUG - retrieval time: 0ms -DEBUG - properness tests (reasoner/short concept/too weak list): 0/236/4043 -DEBUG - concept tests (reasoner/too weak list/overly general list/redundant concepts): 162475/4043/10296/41312 + * KRK problem. + * We try to distinguish mate positions from those which are mate in 1 to 5. + * DL-Learner will find a solution with 98% accuracy, but not a perfect one (in short time). + * You can experiment with the noise parameter and observe the search tree to find out more. + **/ - -**/ - - - import("KRK_ZERO_against_1to5.owl"); refexamples.ignoredConcepts={ @@ -27,14 +16,11 @@ "http://www.test.de/test#TWO", "http://www.test.de/test#ZERO"}; -//problem = posOnlyDefinition; - algorithm = refexamples; -//algorithm = refinement; -//refinement.heuristic=flexible; reasoner=fastInstanceChecker; refexamples.startClass = "http://www.test.de/test#Game"; -//refexamples.useAllConstructor = false; +refexamples.useAllConstructor = false; +refexamples.noisePercentage = 2; /**ZERO**/ +"http://www.test.de/test#game1" Modified: trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf =================================================================== --- trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf 2008-10-10 08:39:29 UTC (rev 1360) +++ trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf 2008-10-10 15:44:36 UTC (rev 1361) @@ -36,7 +36,7 @@ */ - +// refexamples.ignoredRoles = {"http://dbpedia.org/property/spouse"}; // recursion depth of extraction algorithm sparql.recursionDepth = 1; @@ -48,7 +48,9 @@ "http://dbpedia.org/property/reference", "http://dbpedia.org/property/website", "http://dbpedia.org/property/wikipage", - "http://dbpedia.org/property/wikiPageUsesTemplate"}; + "http://dbpedia.org/property/wikiPageUsesTemplate", + "http://dbpedia.org/property/spouse" +}; // list of ignored objects sparql.objList = { "http://xmlns.com/foaf/0.1/", Modified: trunk/examples/sparql/govtrack.conf =================================================================== --- trunk/examples/sparql/govtrack.conf 2008-10-10 08:39:29 UTC (rev 1360) +++ trunk/examples/sparql/govtrack.conf 2008-10-10 15:44:36 UTC (rev 1361) @@ -1,3 +1,9 @@ +/** + * GovTrack example. It does not produce anything meaningful yet. + * We either need to support datatype properties in owl:hasValue + * or convert some of the datatype properties into object properties, + * e.g. "Democrat" or "Republican" into a class. + */ sparql.recursionDepth = 3; sparql.predefinedEndpoint = "GOVTRACK"; @@ -2,7 +8,11 @@ sparql.useLits = true; +sparql.saveExtractedFragment = true; algorithm = refexamples; -reasoner = owlAPIReasoner; -// reasoner = fastInstanceChecker; +refexamples.ignoredRoles = { "http://www.w3.org/2002/07/owl#sameAs"}; +refexamples.useHasValueConstructor = true; +refexamples.valueFrequencyThreshold = 1; +reasoner = fastInstanceChecker; + import("http://www.govtrack.us/sparql","SPARQL"); Modified: trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java =================================================================== --- trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java 2008-10-10 08:39:29 UTC (rev 1360) +++ trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java 2008-10-10 15:44:36 UTC (rev 1361) @@ -89,15 +89,15 @@ // ignored due to errors (should be fixed; in case of long running problems or // our of memory, it is better to increase the noise parameter and add comments // in the conf file about "optimal" parameters) - ignore.add("./examples/sparql/govtrack.conf"); // HTTP 500 Server error + // ignore.add("./examples/sparql/govtrack.conf"); // HTTP 500 Server error ignore.add("./examples/sparql/musicbrainz.conf"); // HTTP 502 error - NullPointer in extraction //working fine here ignore.add("./examples/sparql/SKOSTEST_local.conf"); // Out of Memory Error ignore.add("./examples/sparql/scrobble.conf"); // HTTP 502 Proxy Error // ignore.add("./examples/family-benchmark/Cousin.conf"); // Out of Memory Error => disallowing ALL helps (TODO find out details) //also working fine ignore.add("./examples/sparql/SilentBobWorking2.conf"); // Out of Memory Error - ignore.add("./examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf"); // Pellet: literal cannot be cast to individual + // ignore.add("./examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf"); // Pellet: literal cannot be cast to individual // ignore.add("./examples/family-benchmark/Aunt.conf"); // did not terminate so far (waited 45 minutes) => disallowing ALL helps (TODO find out details) - ignore.add("./examples/krk/KRK_ZERO_against_1to5_fastInstance.conf"); // Out of Memory Error + // ignore.add("./examples/krk/KRK_ZERO_against_1to5_fastInstance.conf"); // Out of Memory Error //removed ignore.add("./examples/semantic_bible/normal_test.conf"); // did not terminate (waited 55 minutes) int failedCounter = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ku...@us...> - 2008-10-10 08:43:50
|
Revision: 1360 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1360&view=rev Author: kurzum Date: 2008-10-10 08:39:29 +0000 (Fri, 10 Oct 2008) Log Message: ----------- Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlKnowledgeSource.java Modified: trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlKnowledgeSource.java =================================================================== --- trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlKnowledgeSource.java 2008-10-10 07:52:08 UTC (rev 1359) +++ trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlKnowledgeSource.java 2008-10-10 08:39:29 UTC (rev 1360) @@ -292,9 +292,7 @@ fragment = m.getOWLAPIOntologyForNodes(seedNodes, configurator.getSaveExtractedFragment()); - for (OWLAxiom a : fragment.getClassAxioms()){ - System.out.println(a); - } + logger.info("Finished collecting fragment. needed "+extractionTime.getLastValue()+" ms"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ku...@us...> - 2008-10-10 07:52:16
|
Revision: 1359 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1359&view=rev Author: kurzum Date: 2008-10-10 07:52:08 +0000 (Fri, 10 Oct 2008) Log Message: ----------- Modified Paths: -------------- trunk/src/dl-learner/org/dllearner/cli/QuickStart.java trunk/src/dl-learner/org/dllearner/kb/extraction/InstanceNode.java trunk/src/dl-learner/org/dllearner/kb/manipulator/ObjectReplacementRule.java trunk/src/dl-learner/org/dllearner/kb/sparql/SPARQLTasks.java trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlKnowledgeSource.java trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlQuery.java trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java Modified: trunk/src/dl-learner/org/dllearner/cli/QuickStart.java =================================================================== --- trunk/src/dl-learner/org/dllearner/cli/QuickStart.java 2008-10-09 22:26:23 UTC (rev 1358) +++ trunk/src/dl-learner/org/dllearner/cli/QuickStart.java 2008-10-10 07:52:08 UTC (rev 1359) @@ -29,6 +29,7 @@ import java.util.Arrays; import java.util.HashMap; import java.util.Iterator; +import java.util.List; /** * A tool to quickly start a learning example. It detects all conf files in the @@ -38,14 +39,15 @@ * @author Jens Lehmann */ public class QuickStart { - + // static HashMap<String, ArrayList<String>> hm = null; static String pm = ".";// pathmodifier + static List<String> conffiles = new ArrayList<String>(); public static void main(String[] args) { - + String lastused = readit(); String tab = " "; int the_Number = 0; @@ -119,7 +121,27 @@ number = true; break; } catch (Exception e) { + + for(String one:conffiles){ + + if(one.contains(cmd)){ + System.out.println("Did you mean "+one+" ? (Press enter to confirm,\n" + + "any key+enter for another try)"); + cmd = br.readLine(); + if(cmd.length()==0){ + writeit(one); + if(!query) { + Start.main(new String[] { one }); + }else { + Start.main(new String[] {"-q",one}); + } + return; + }else {break;} + } + } + System.out.println("Not a number"); + continue; } }// end while @@ -166,6 +188,7 @@ confs.put(path, new ArrayList<String>()); } confs.get(path).add(act[i].substring(0, act[i].length() - 5)); + conffiles.add(path+act[i]); // System.out.println(act[i].substring(0,act[i].length()-5)); // System.out.println(hm.get(path).size()); // hm.put(new Modified: trunk/src/dl-learner/org/dllearner/kb/extraction/InstanceNode.java =================================================================== --- trunk/src/dl-learner/org/dllearner/kb/extraction/InstanceNode.java 2008-10-09 22:26:23 UTC (rev 1358) +++ trunk/src/dl-learner/org/dllearner/kb/extraction/InstanceNode.java 2008-10-10 07:52:08 UTC (rev 1359) @@ -195,7 +195,7 @@ //OWLCommentAnnotation comment = factory.getOWL(one.b.toString()); //owlAPIOntologyCollector.addAxiom(factory.getOWLEntityAnnotationAxiom(me, label)); }else if(one.getURIString().equals(OWLVocabulary.RDFS_LABEL)){ - OWLLabelAnnotation label = factory.getOWLLabelAnnotation(one.b.toString()); + OWLLabelAnnotation label = factory.getOWLLabelAnnotation(ln.getString()); owlAPIOntologyCollector.addAxiom(factory.getOWLEntityAnnotationAxiom(me, label)); }else{ Modified: trunk/src/dl-learner/org/dllearner/kb/manipulator/ObjectReplacementRule.java =================================================================== --- trunk/src/dl-learner/org/dllearner/kb/manipulator/ObjectReplacementRule.java 2008-10-09 22:26:23 UTC (rev 1358) +++ trunk/src/dl-learner/org/dllearner/kb/manipulator/ObjectReplacementRule.java 2008-10-10 07:52:08 UTC (rev 1359) @@ -45,8 +45,9 @@ public SortedSet<RDFNodeTuple> applyRule(Node subject, SortedSet<RDFNodeTuple> tuples){ SortedSet<RDFNodeTuple> keep = new TreeSet<RDFNodeTuple>(); for (RDFNodeTuple tuple : tuples) { - if(tuple.aPartContains(oldObject)){ - tuple.a = new ResourceImpl(newObject); + if(tuple.bPartContains(oldObject)){ + String tmp = tuple.b.toString().replace(oldObject, newObject); + tuple.b = new ResourceImpl(tmp); JamonMonitorLogger.increaseCount(ObjectReplacementRule.class, "replacedObjects"); } keep.add(tuple); Modified: trunk/src/dl-learner/org/dllearner/kb/sparql/SPARQLTasks.java =================================================================== --- trunk/src/dl-learner/org/dllearner/kb/sparql/SPARQLTasks.java 2008-10-09 22:26:23 UTC (rev 1358) +++ trunk/src/dl-learner/org/dllearner/kb/sparql/SPARQLTasks.java 2008-10-10 07:52:08 UTC (rev 1359) @@ -440,7 +440,7 @@ rsw.reset(); } catch (Exception e) { - logger.warn("Exception caught in SPARQLTasks, passing emtpy result: "+e.getMessage()); + logger.info("ignoring (see log for details): Exception caught in SPARQLTasks, passing emtpy result: "+e.getMessage()); } return returnSet; Modified: trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlKnowledgeSource.java =================================================================== --- trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlKnowledgeSource.java 2008-10-09 22:26:23 UTC (rev 1358) +++ trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlKnowledgeSource.java 2008-10-10 07:52:08 UTC (rev 1359) @@ -59,6 +59,7 @@ import org.dllearner.utilities.JamonMonitorLogger; import org.dllearner.utilities.datastructures.StringTuple; import org.dllearner.utilities.statistics.SimpleClock; +import org.semanticweb.owl.model.OWLAxiom; import org.semanticweb.owl.model.OWLOntology; import com.jamonapi.Monitor; @@ -291,7 +292,9 @@ fragment = m.getOWLAPIOntologyForNodes(seedNodes, configurator.getSaveExtractedFragment()); - + for (OWLAxiom a : fragment.getClassAxioms()){ + System.out.println(a); + } logger.info("Finished collecting fragment. needed "+extractionTime.getLastValue()+" ms"); Modified: trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlQuery.java =================================================================== --- trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlQuery.java 2008-10-09 22:26:23 UTC (rev 1358) +++ trunk/src/dl-learner/org/dllearner/kb/sparql/SparqlQuery.java 2008-10-10 07:52:08 UTC (rev 1359) @@ -127,16 +127,16 @@ //writeToSparqlLog("JSON: " + json); //}catch (ResultSetException e) { } catch (HTTPException e) { - logger.warn("HTTPException in SparqlQuery\n"+ e.toString()); - logger.warn("query was "+ sparqlQueryString); + logger.debug("HTTPException in SparqlQuery\n"+ e.toString()); + logger.debug("query was "+ sparqlQueryString); writeToSparqlLog("ERROR: HTTPException occured"+ e.toString()); isRunning = false; throw e; }catch (RuntimeException e) { - logger.warn("RuntimeException in SparqlQuery (see /log/sparql.txt): "+ e.toString()); - logger.warn("query was (first 300 chars) "+ sparqlQueryString.substring(0,300).replaceAll("\n", " ")); + logger.debug("RuntimeException in SparqlQuery (see /log/sparql.txt): "+ e.toString()); + logger.debug("query was (first 300 chars) "+ sparqlQueryString.substring(0,300).replaceAll("\n", " ")); writeToSparqlLog("ERROR: HTTPException occured: "+ e.toString()); isRunning = false; throw e; Modified: trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java =================================================================== --- trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java 2008-10-09 22:26:23 UTC (rev 1358) +++ trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java 2008-10-10 07:52:08 UTC (rev 1359) @@ -91,14 +91,14 @@ // in the conf file about "optimal" parameters) ignore.add("./examples/sparql/govtrack.conf"); // HTTP 500 Server error ignore.add("./examples/sparql/musicbrainz.conf"); // HTTP 502 error - NullPointer in extraction - ignore.add("./examples/sparql/SKOSTEST_local.conf"); // Out of Memory Error + //working fine here ignore.add("./examples/sparql/SKOSTEST_local.conf"); // Out of Memory Error ignore.add("./examples/sparql/scrobble.conf"); // HTTP 502 Proxy Error // ignore.add("./examples/family-benchmark/Cousin.conf"); // Out of Memory Error => disallowing ALL helps (TODO find out details) - ignore.add("./examples/sparql/SilentBobWorking2.conf"); // Out of Memory Error + //also working fine ignore.add("./examples/sparql/SilentBobWorking2.conf"); // Out of Memory Error ignore.add("./examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf"); // Pellet: literal cannot be cast to individual // ignore.add("./examples/family-benchmark/Aunt.conf"); // did not terminate so far (waited 45 minutes) => disallowing ALL helps (TODO find out details) ignore.add("./examples/krk/KRK_ZERO_against_1to5_fastInstance.conf"); // Out of Memory Error - ignore.add("./examples/semantic_bible/normal_test.conf"); // did not terminate (waited 55 minutes) + //removed ignore.add("./examples/semantic_bible/normal_test.conf"); // did not terminate (waited 55 minutes) int failedCounter = 0; for (String path : confFiles.keySet()) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |