From: <jen...@us...> - 2007-08-29 16:26:10
|
Revision: 114 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=114&view=rev Author: jenslehmann Date: 2007-08-29 09:26:06 -0700 (Wed, 29 Aug 2007) Log Message: ----------- updated DBpedia examples to new SPARQL module Modified Paths: -------------- trunk/examples/dbpedia/AristotleWorking1.conf trunk/examples/dbpedia/SilentBob.conf trunk/examples/dbpedia/SilentBobWorking1.conf trunk/examples/dbpedia/SilentBobWorking2.conf Modified: trunk/examples/dbpedia/AristotleWorking1.conf =================================================================== --- trunk/examples/dbpedia/AristotleWorking1.conf 2007-08-29 16:25:30 UTC (rev 113) +++ trunk/examples/dbpedia/AristotleWorking1.conf 2007-08-29 16:26:06 UTC (rev 114) @@ -1,7 +1,5 @@ +runPreprocessingModule("org.dllearner.modules.sparql.SparqlModule"); -loadJarFile("lib/modules/sparqlModule.jar"); -runPreprocessingModule("org.dllearner.modules.SparqlModule"); - // reasoner settings reasoner = dig; digReasonerURL = "http://localhost:8081"; @@ -26,18 +24,12 @@ showSubsumptionHierarchy = true; hidePrefix="http://dbpedia.org/resource/"; -// refinement.useAllConstructor = false; refinement.useExistsConstructor = true; refinement.useNegation = false; sparqlModule.numberOfRecursion = 2; -/** -1 flach nicht zu empfehlen -2 Klassen f�r objects und properties of objects -3 Klassen f�r properties of objects und superklassen von klassen -**/ sparqlModule.filterMode = 0; Modified: trunk/examples/dbpedia/SilentBob.conf =================================================================== --- trunk/examples/dbpedia/SilentBob.conf 2007-08-29 16:25:30 UTC (rev 113) +++ trunk/examples/dbpedia/SilentBob.conf 2007-08-29 16:26:06 UTC (rev 114) @@ -1,5 +1,4 @@ -loadJarFile("lib/modules/sparqlModule.jar"); -runPreprocessingModule("org.dllearner.modules.SparqlModule"); +runPreprocessingModule("org.dllearner.modules.sparql.SparqlModule"); // reasoner settings reasoner = dig; @@ -28,52 +27,15 @@ hidePrefix="http://dbpedia.org/resource/"; - refinement.useAllConstructor = false; refinement.useExistsConstructor = true; refinement.useNegation = false; -// missbraucht als number of recursions, wird minus 10 gerechnet -// es gilt: -/** -11 flach nicht zu empfehlen -12 Klassen f�r objects und properties of objects -13 Klassen f�r properties of objects und superklassen von klassen -**/ + sparqlModule.numberOfRecursion = 3; -// nur yago =0 , nur category = 1 -// sollte nicht mit aufgenommen werden eher 3 listen mit uris +// only yago =0 , only category = 1 sparqlModule.filterMode = 1; - - - +test("http://dbpedia.org/resource/Jason_Mewes"). +test("http://dbpedia.org/resource/Kevin_Smith"). -test("http://dbpedia.org/resource/Trey_Parker"). -test("http://dbpedia.org/resource/Matt_Stone"). - - - -/* -TBox[0]: -RBox[0]: -ABox[0]: - -Subsumption Hierarchy is improved for Refinement Operator Based Algorithm -java.util.NoSuchElementException - at java.util.TreeMap.key(Unknown Source) - at java.util.TreeMap.firstKey(Unknown Source) - at java.util.TreeSet.first(Unknown Source) - at org.dllearner.reasoning.SubsumptionHierarchy.improveSubsumptionHierar -chy(Unknown Source) - at org.dllearner.Main.<init>(Unknown Source) - at org.dllearner.parser.DLLearner.main(Unknown Source) - at org.dllearner.QuickStart.main(Unknown Source) - - -*/ - - - - - Modified: trunk/examples/dbpedia/SilentBobWorking1.conf =================================================================== --- trunk/examples/dbpedia/SilentBobWorking1.conf 2007-08-29 16:25:30 UTC (rev 113) +++ trunk/examples/dbpedia/SilentBobWorking1.conf 2007-08-29 16:26:06 UTC (rev 114) @@ -1,5 +1,4 @@ -loadJarFile("lib/modules/sparqlModule.jar"); -runPreprocessingModule("org.dllearner.modules.SparqlModule"); +runPreprocessingModule("org.dllearner.modules.sparql.SparqlModule"); // reasoner settings reasoner = dig; @@ -30,22 +29,13 @@ refinement.useAllConstructor = false; refinement.useExistsConstructor = true; refinement.useNegation = false; -// missbraucht als number of recursions, wird minus 10 gerechnet -// es gilt: -/** -11 flach nicht zu empfehlen -12 Klassen fr objects und properties of objects -13 Klassen fr properties of objects und superklassen von klassen -**/ + sparqlModule.numberOfRecursion = 3; -// nur yago =0 , nur category = 1 nur skos+cat =2 -// sollte nicht mit aufgenommen werden eher 3 listen mit uris sparqlModule.filterMode = 0; // 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 - +test("http://dbpedia.org/resource/Matt_Stone"). +test("http://dbpedia.org/resource/Sarah_Silverman"). -test("http://dbpedia.org/resource/Jim_Carrey"). Modified: trunk/examples/dbpedia/SilentBobWorking2.conf =================================================================== --- trunk/examples/dbpedia/SilentBobWorking2.conf 2007-08-29 16:25:30 UTC (rev 113) +++ trunk/examples/dbpedia/SilentBobWorking2.conf 2007-08-29 16:26:06 UTC (rev 114) @@ -1,5 +1,4 @@ -loadJarFile("lib/modules/sparqlModule.jar"); -runPreprocessingModule("org.dllearner.modules.SparqlModule"); +runPreprocessingModule("org.dllearner.modules.sparql.SparqlModule"); // reasoner settings reasoner = dig; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sk...@us...> - 2007-10-08 15:11:38
|
Revision: 193 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=193&view=rev Author: sknappe Date: 2007-10-08 08:11:34 -0700 (Mon, 08 Oct 2007) Log Message: ----------- examples modified to work with new Sparql module Modified Paths: -------------- trunk/examples/dbpedia/SilentBobWorking1.conf Added Paths: ----------- trunk/examples/dbpedia/Aristotle.conf trunk/examples/dbpedia/sparql.conf Removed Paths: ------------- trunk/examples/dbpedia/AristotleWorking1.conf Copied: trunk/examples/dbpedia/Aristotle.conf (from rev 176, trunk/examples/dbpedia/AristotleWorking1.conf) =================================================================== --- trunk/examples/dbpedia/Aristotle.conf (rev 0) +++ trunk/examples/dbpedia/Aristotle.conf 2007-10-08 15:11:34 UTC (rev 193) @@ -0,0 +1,55 @@ +// reasoner settings +reasoner = dig; +//digReasonerURL = "http://localhost:8081"; +//useRetrievalForClassification = false; +//refinement.useDIGMultiInstanceChecks = twoChecks; + +// algorithm settings +algorithm = refinement; +//refinement.horizontalExpansionFactor = 0.6; +//refinement.quiet = false; +//refinement.useTooWeakList = true; + +// search tree protocol +//refinement.writeSearchTree = false; +//refinement.searchTreeFile = "Aristotle_searchTree.txt"; + +// control output +cli.checkSatisfiability = true; +cli.showIndividuals = false; +cli.showConcepts = false; +cli.showRoles = true; +cli.showSubsumptionHierarchy = false; + +/*sparqlModule.sparqlPredicateFilterList={"http://www.w3.org/2004/02/skos/core", + "http://xmlns.com/foaf/0.1/", + "http://dbpedia.org/property/wikipage-", + "http://www.w3.org/2002/07/owl#sameAs", + "http://dbpedia.org/property/reference"}; +sparqlModule.sparqlObjectFilterList={"http://dbpedia.org/resource/Category:Articles_", + "http://dbpedia.org/resource/Category:Wikipedia_", + "http://xmlns.com/foaf/0.1/", + "http://dbpedia.org/resource/Category", + "http://dbpedia.org/resource/Template", + "http://upload.wikimedia.org/wikipedia/commons"};*/ +//sparqlModule.classList={}; +//sparqlModule.useLiterals = false; + +// SPARQL options +sparql.numberOfRecursions = 2; +sparql.instances = {"http://dbpedia.org/resource/Democritus","http://dbpedia.org/resource/Zeno_of_Elea","http://dbpedia.org/resource/Plato","http://dbpedia.org/resource/Socrates","http://dbpedia.org/resource/Archytas","http://dbpedia.org/resource/Pythagoras","http://dbpedia.org/resource/Philolaus"}; +sparql.filterMode = 0; +sparql.predList = {}; +sparql.objList = {}; +sparql.classList = {}; + +import("http://dbpedia.openlinksw.com","SPARQL"); + +/** examples **/ ++"http://dbpedia.org/resource/Pythagoras" ++"http://dbpedia.org/resource/Philolaus" ++"http://dbpedia.org/resource/Archytas" +-"http://dbpedia.org/resource/Socrates" +-"http://dbpedia.org/resource/Plato" +-"http://dbpedia.org/resource/Zeno_of_Elea" +-"http://dbpedia.org/resource/Democritus" \ No newline at end of file Deleted: trunk/examples/dbpedia/AristotleWorking1.conf =================================================================== --- trunk/examples/dbpedia/AristotleWorking1.conf 2007-10-08 15:04:12 UTC (rev 192) +++ trunk/examples/dbpedia/AristotleWorking1.conf 2007-10-08 15:11:34 UTC (rev 193) @@ -1,74 +0,0 @@ -runPreprocessingModule("org.dllearner.modules.sparql.SparqlModule"); - -// reasoner settings -reasoner = dig; -digReasonerURL = "http://localhost:8081"; -useRetrievalForClassification = false; -refinement.useDIGMultiInstanceChecks = twoChecks; - -// algorithm settings -algorithm = refinement; -refinement.horizontalExpansionFactor = 0.6; -refinement.quiet = false; -refinement.useTooWeakList = true; - -// search tree protocol -refinement.writeSearchTree = false; -refinement.searchTreeFile = "Aristotle_searchTree.txt"; - -// control output -showIndividuals = true; -showConcepts = true; -showRoles = true; -showInternalKB = true; -showSubsumptionHierarchy = true; - -hidePrefix="http://dbpedia.org/resource/"; - -refinement.useAllConstructor = false; -refinement.useExistsConstructor = true; -refinement.useNegation = false; - -sparqlModule.numberOfRecursion = 2; -sparqlModule.filterMode = 0; - - -/*sparqlModule.sparqlPredicateFilterList={"http://www.w3.org/2004/02/skos/core", - "http://xmlns.com/foaf/0.1/", - "http://dbpedia.org/property/wikipage-", - "http://www.w3.org/2002/07/owl#sameAs", - "http://dbpedia.org/property/reference"}; -sparqlModule.sparqlObjectFilterList={"http://dbpedia.org/resource/Category:Articles_", - "http://dbpedia.org/resource/Category:Wikipedia_", - "http://xmlns.com/foaf/0.1/", - "http://dbpedia.org/resource/Category", - "http://dbpedia.org/resource/Template", - "http://upload.wikimedia.org/wikipedia/commons"};*/ -//sparqlModule.classList={}; -//sparqlModule.useLiterals = false; - - - - -//mathematiker -+test("http://dbpedia.org/resource/Pythagoras"). -//well you know -+test("http://dbpedia.org/resource/Philolaus"). -//was a Greek Pythagorean and Presocratic. -+test("http://dbpedia.org/resource/Archytas"). -//was an Ancient Greek philosopher, mathematician, astronomer, statesman, and strategist. - - -//Philosophen --test("http://dbpedia.org/resource/Socrates"). --test("http://dbpedia.org/resource/Plato"). - --test("http://dbpedia.org/resource/Zeno_of_Elea"). -//was a pre-Socratic Greek philosopher --test("http://dbpedia.org/resource/Democritus"). -//was a pre-Socratic Greek philosopher - - - - - Modified: trunk/examples/dbpedia/SilentBobWorking1.conf =================================================================== --- trunk/examples/dbpedia/SilentBobWorking1.conf 2007-10-08 15:04:12 UTC (rev 192) +++ trunk/examples/dbpedia/SilentBobWorking1.conf 2007-10-08 15:11:34 UTC (rev 193) @@ -1,50 +1,43 @@ -runPreprocessingModule("org.dllearner.modules.sparql.SparqlModule"); - +/** settings **/ // reasoner settings reasoner = dig; -digReasonerURL = "http://localhost:8081"; -useRetrievalForClassification = false; -refinement.useDIGMultiInstanceChecks = twoChecks; +//digReasonerURL = "http://localhost:8081"; +//useRetrievalForClassification = true; +//refinement.useDIGMultiInstanceChecks = twoChecks; // algorithm settings algorithm = refinement; -refinement.horizontalExpansionFactor = 0.6; -refinement.quiet = false; -refinement.useTooWeakList = true; +horizontalExpansionFactor = 0.5; +//refinement.quiet = false; // search tree protocol -refinement.writeSearchTree = false; -refinement.searchTreeFile = "Aristotle_searchTree.txt"; +// refinement.writeSearchTree = false; +// refinement.searchTreeFile = "log/searchTree.txt"; // control output -showIndividuals = true; -showConcepts = true; -showRoles = true; -showInternalKB = true; -showSubsumptionHierarchy = true; +cli.checkSatisfiability = true; +cli.showIndividuals = false; +cli.showConcepts = false; +cli.showRoles = true; +cli.showSubsumptionHierarchy = false; -hidePrefix="http://dbpedia.org/resource/"; +// SPARQL options +sparql.numberOfRecursions = 2; +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"}; +sparql.filterMode = 2; +sparql.predList = {}; +sparql.objList = {}; +sparql.classList = {}; +import("http://dbpedia.openlinksw.com","SPARQL"); -refinement.useAllConstructor = false; -refinement.useExistsConstructor = true; -refinement.useNegation = false; - -sparqlModule.numberOfRecursion = 3; -sparqlModule.filterMode = 0; - // 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 -+test("http://dbpedia.org/resource/Matt_Stone"). -+test("http://dbpedia.org/resource/Sarah_Silverman"). --test("http://dbpedia.org/resource/Jim_Carrey"). --test("http://dbpedia.org/resource/Jason_Mewes"). --test("http://dbpedia.org/resource/Kevin_Smith"). --test("http://dbpedia.org/resource/Trey_Parker"). --test("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/dbpedia/sparql.conf (from rev 190, trunk/examples/sparql.conf) =================================================================== --- trunk/examples/dbpedia/sparql.conf (rev 0) +++ trunk/examples/dbpedia/sparql.conf 2007-10-08 15:11:34 UTC (rev 193) @@ -0,0 +1,45 @@ +/** + * Father Example + * + * possible solution: + * male AND EXISTS hasChild.TOP + * + * Copyright (C) 2007, Jens Lehmann + */ + +/** settings **/ +// reasoner settings +reasoner = dig; +//digReasonerURL = "http://localhost:8081"; +//useRetrievalForClassification = true; +//refinement.useDIGMultiInstanceChecks = twoChecks; + +// algorithm settings +algorithm = refinement; +//refinement.horizontalExpansionFactor = 0.5; +//refinement.quiet = false; + +// search tree protocol +// refinement.writeSearchTree = false; +// refinement.searchTreeFile = "log/searchTree.txt"; + +// control output +cli.checkSatisfiability = true; +cli.showIndividuals = false; +cli.showConcepts = false; +cli.showRoles = true; +cli.showSubsumptionHierarchy = false; + +// SPARQL options +sparql.numberOfRecursions = 2; +sparql.instances = {"http://dbpedia.org/resource/Pythagoras","http://dbpedia.org/resource/Socrates"}; +sparql.filterMode = 0; +sparql.predList = {}; +sparql.objList = {}; +sparql.classList = {}; + +import("http://dbpedia.openlinksw.com","SPARQL"); + +/** examples **/ ++"http://dbpedia.org/resource/Pythagoras" +-"http://dbpedia.org/resource/Socrates" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ku...@us...> - 2007-12-02 13:32:01
|
Revision: 300 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=300&view=rev Author: kurzum Date: 2007-12-02 05:31:59 -0800 (Sun, 02 Dec 2007) Log Message: ----------- checked in wrong file Added Paths: ----------- trunk/examples/dbpedia/newworking.conf Removed Paths: ------------- trunk/examples/dbpedia/newtest.conf Deleted: trunk/examples/dbpedia/newtest.conf =================================================================== --- trunk/examples/dbpedia/newtest.conf 2007-12-02 13:31:13 UTC (rev 299) +++ trunk/examples/dbpedia/newtest.conf 2007-12-02 13:31:59 UTC (rev 300) @@ -1,49 +0,0 @@ -/** - * Father Example - * - * possible solution: - * male AND EXISTS hasChild.TOP - * - * Copyright (C) 2007, Jens Lehmann - */ - -/** settings **/ -// reasoner settings -reasoner = dig; -//digReasonerURL = "http://localhost:8081"; -//useRetrievalForClassification = true; -//refinement.useDIGMultiInstanceChecks = twoChecks; - -// algorithm settings -algorithm = refinement; -//refinement.horizontalExpansionFactor = 0.5; -//refinement.quiet = false; - -// search tree protocol -// refinement.writeSearchTree = false; -// refinement.searchTreeFile = "log/searchTree.txt"; - -// control output -cli.checkSatisfiability = true; -cli.showIndividuals = false; -cli.showConcepts = false; -cli.showRoles = true; -cli.showSubsumptionHierarchy = false; - -// SPARQL options -sparql2.numberOfRecursions = 2; -sparql2.host = "dbpedia.openlinksw.com"; -sparql2.getAllBackground=true; -sparql2.instances = {"http://dbpedia.org/resource/Angela_Merkel"}; -sparql2.filterMode = 0; -sparql2.predList = {}; -sparql2.objList = {}; -sparql2.classList = {}; -sparql2.format = "N-TRIPLES"; -sparql2.dumpToFile = true; - -import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL2"); - -/** examples **/ -+"http://dbpedia.org/resource/Angela_Merkel" --"http://dbpedia.org/resource/Gerhard_Schr%C3%B6der" \ No newline at end of file Added: trunk/examples/dbpedia/newworking.conf =================================================================== --- trunk/examples/dbpedia/newworking.conf (rev 0) +++ trunk/examples/dbpedia/newworking.conf 2007-12-02 13:31:59 UTC (rev 300) @@ -0,0 +1,49 @@ +/** + * Father Example + * + * possible solution: + * male AND EXISTS hasChild.TOP + * + * Copyright (C) 2007, Jens Lehmann + */ + +/** settings **/ +// reasoner settings +reasoner = dig; +//digReasonerURL = "http://localhost:8081"; +//useRetrievalForClassification = true; +//refinement.useDIGMultiInstanceChecks = twoChecks; + +// algorithm settings +algorithm = refinement; +//refinement.horizontalExpansionFactor = 0.5; +//refinement.quiet = false; + +// search tree protocol +// refinement.writeSearchTree = false; +// refinement.searchTreeFile = "log/searchTree.txt"; + +// control output +cli.checkSatisfiability = true; +cli.showIndividuals = false; +cli.showConcepts = false; +cli.showRoles = true; +cli.showSubsumptionHierarchy = false; + +// SPARQL options +sparql2.numberOfRecursions = 2; +sparql2.host = "dbpedia.openlinksw.com"; +sparql2.getAllBackground=true; +sparql2.instances = {"http://dbpedia.org/resource/Angela_Merkel"}; +sparql2.filterMode = 0; +sparql2.predList = {}; +sparql2.objList = {}; +sparql2.classList = {}; +sparql2.format = "N-TRIPLES"; +sparql2.dumpToFile = true; + +import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL2"); + +/** examples **/ ++"http://dbpedia.org/resource/Angela_Merkel" +-"http://dbpedia.org/resource/Gerhard_Schr%C3%B6der" \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |