From: <jen...@us...> - 2011-09-02 14:23:06
|
Revision: 3239 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=3239&view=rev Author: jenslehmann Date: 2011-09-02 14:22:59 +0000 (Fri, 02 Sep 2011) Log Message: ----------- some work on SPARQL examples Modified Paths: -------------- trunk/examples/sparql/Actors.conf Added Paths: ----------- trunk/test/sparql/ trunk/test/sparql/AristotlePos.conf Removed Paths: ------------- trunk/examples/sparql/AristotlePos.conf Modified: trunk/examples/sparql/Actors.conf =================================================================== --- trunk/examples/sparql/Actors.conf 2011-09-02 14:04:13 UTC (rev 3238) +++ trunk/examples/sparql/Actors.conf 2011-09-02 14:22:59 UTC (rev 3239) @@ -7,13 +7,13 @@ // SPARQL options sparql.type = "SPARQL endpoint fragment" -sparql.url = "http://dbpedia.openlinksw.com:8890/sparql" +sparql.url = "http://live.dbpedia.org/sparql" sparql.defaultGraphURIs = {"http://dbpedia.org"} sparql.recursionDepth = 1 //TODOREFACTOR check if predefinedFilter works at all //predefined filter (1 = YAGO based learning) // 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter -sparql.predefinedFilter = "YAGO"; +sparql.predefinedFilter = "YAGO" // the set of objects as starting point for fragment selection // (should be identical to the set of examples) @@ -24,7 +24,7 @@ "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/Adam_Sandler"} reasoner.type = "fast instance checker" reasoner.sources = {sparql} Deleted: trunk/examples/sparql/AristotlePos.conf =================================================================== --- trunk/examples/sparql/AristotlePos.conf 2011-09-02 14:04:13 UTC (rev 3238) +++ trunk/examples/sparql/AristotlePos.conf 2011-09-02 14:22:59 UTC (rev 3239) @@ -1,46 +0,0 @@ -/** - * Some people from Greece. - * Note: DBpedia is always subject to change, solutions will change over time - - * Possible Solution: - * Theorist OR (Mathematician AND Physicist) - * - * This is the same as AristotlePosNeg.conf, but positives only - */ - -// SPARQL options -sparql.type = "SPARQL endpoint fragment" -sparql.url = "http://dbpedia.openlinksw.com:8890/sparql" -sparql.defaultGraphURIs = {"http://dbpedia.org"} -sparql.recursionDepth = 1 -//TODOREFACTOR check if predefinedFilter works at all -//predefined filter (1 = YAGO based learning) -sparql.predefinedFilter = "YAGO" -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" -} - -reasoner.type = "fast instance checker" -reasoner.sources = {sparql} - -// we want to learn from positive examples only -lp.type = "positive only learning problem" -lp.positiveExamples = { -"http://dbpedia.org/resource/Archytas", -"http://dbpedia.org/resource/Pythagoras", -"http://dbpedia.org/resource/Philolaus" -} - -lp.reasoner = reasoner - -// we use the OCEL algorithm -alg.type = "ocel" -alg.reasoner = reasoner -alg.learningProblem = lp - Copied: trunk/test/sparql/AristotlePos.conf (from rev 3237, trunk/examples/sparql/AristotlePos.conf) =================================================================== --- trunk/test/sparql/AristotlePos.conf (rev 0) +++ trunk/test/sparql/AristotlePos.conf 2011-09-02 14:22:59 UTC (rev 3239) @@ -0,0 +1,46 @@ +/** + * Some people from Greece. + * Note: DBpedia is always subject to change, solutions will change over time + + * Possible Solution: + * Theorist OR (Mathematician AND Physicist) + * + * This is the same as AristotlePosNeg.conf, but positives only + */ + +// SPARQL options +sparql.type = "SPARQL endpoint fragment" +sparql.url = "http://dbpedia.openlinksw.com:8890/sparql" +sparql.defaultGraphURIs = {"http://dbpedia.org"} +sparql.recursionDepth = 1 +//TODOREFACTOR check if predefinedFilter works at all +//predefined filter (1 = YAGO based learning) +sparql.predefinedFilter = "YAGO" +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" +} + +reasoner.type = "fast instance checker" +reasoner.sources = {sparql} + +// we want to learn from positive examples only +lp.type = "positive only learning problem" +lp.positiveExamples = { +"http://dbpedia.org/resource/Archytas", +"http://dbpedia.org/resource/Pythagoras", +"http://dbpedia.org/resource/Philolaus" +} + +lp.reasoner = reasoner + +// we use the OCEL algorithm +alg.type = "ocel" +alg.reasoner = reasoner +alg.learningProblem = lp + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |