From: <lor...@us...> - 2011-12-01 13:21:29
|
Revision: 3460 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=3460&view=rev Author: lorenz_b Date: 2011-12-01 13:21:18 +0000 (Thu, 01 Dec 2011) Log Message: ----------- Fixed some examples. Modified Paths: -------------- trunk/examples/family/father_owl.conf trunk/examples/family/father_posonly.conf trunk/examples/sparql/Actors.conf trunk/examples/sparql/Actors2.conf trunk/examples/sparql/AristotlePosNeg.conf trunk/examples/sparql/BritishPrimeMinisters.conf trunk/examples/sparql/DBpediaOntology/Actor.conf trunk/examples/sparql/DBpediaYAGOWomanInPolitics.conf trunk/examples/sparql/difference/DBpediaSKOS_kohl_vs_angela.conf trunk/examples/sparql/difference/DifferenceDBpediaYAGO_angela_vs_hillary.conf trunk/examples/sparql/difference/DifferenceDBpediaYAGO_angela_vs_hillary_ignoredConcepts.conf trunk/examples/sparql/difference/DifferenceDBpediaYAGO_hillary_vs_angela.conf trunk/examples/sparql/difference/DifferenceDBpediaYAGO_hillary_vs_angela_ignoredConcepts.conf trunk/examples/sparql/govtrack.conf trunk/examples/sparql/hierarchy/Hierarchy0DBpediaYAGOChancellor_property_monarch.conf trunk/examples/sparql/hierarchy/Hierarchy1DBpediaYAGOChancellor_property_Knight.conf trunk/examples/sparql/moosique.conf trunk/examples/sparql/navigation/NavigationDBpediaYAGOGreekPhilosophers_3_negatives.conf trunk/examples/sparql/navigation/NavigationDBpediaYAGOGreekPhilosophers_4_negatives.conf trunk/examples/sparql/navigation/NavigationDBpediaYAGOGreekPhilosophers_5_negatives.conf trunk/examples/sparql/scrobble.conf Modified: trunk/examples/family/father_owl.conf =================================================================== --- trunk/examples/family/father_owl.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/family/father_owl.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -7,11 +7,11 @@ * Copyright (C) 2007, Jens Lehmann */ // declare some prefixes to use as abbreviations -prefixes = [ ("kb","http://localhost/foo#") ] +prefixes = [ ("kb","http://example.com/father#") ] // knowledge source definition ks.type = "OWL File" -ks.url = "father.owl" +ks.fileName = "father.owl" // ks.baseDir = "examples/family"; //Assuming running from parent directory of examples. // reasoner Modified: trunk/examples/family/father_posonly.conf =================================================================== --- trunk/examples/family/father_posonly.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/family/father_posonly.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -22,25 +22,14 @@ embeddedReasoner.sources = { ks } // learning problem -lp.type = "posOnlyLP" +lp.type = "posonlylp" lp.positiveExamples = {"kb:markus","kb:stefan","kb:bernd"} // plug a reasoner into the learning problem lp.reasoner = reasoner //lp.reasoner = reasoner - try to remove the component:part in the parser -// create a refinement operator and configure it -op.type = "rho" -op.useCardinalityRestrictions = true -op.reasoner = reasoner - -// create a heuristic and configure it -h.type = "multiheuristic" -h.expansionPenaltyFactor = 0.2 - // create learning algorithm to run -alg.type = "ocel" +alg.type = "celoe" alg.reasoner = reasoner -alg.operator = op -alg.heuristic = h alg.maxExecutionTimeInSeconds = 10 Modified: trunk/examples/sparql/Actors.conf =================================================================== --- trunk/examples/sparql/Actors.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/Actors.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -45,5 +45,3 @@ // we use the OCEL algorithm alg.type = "ocel" -alg.reasoner = reasoner -alg.learningProblem = lp Modified: trunk/examples/sparql/Actors2.conf =================================================================== --- trunk/examples/sparql/Actors2.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/Actors2.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -55,6 +55,5 @@ // we use the OCEL algorithm alg.type = "ocel" alg.reasoner = reasoner -alg.learningProblem = lp alg.operator = op Modified: trunk/examples/sparql/AristotlePosNeg.conf =================================================================== --- trunk/examples/sparql/AristotlePosNeg.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/AristotlePosNeg.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -49,4 +49,3 @@ // we use the OCEL algorithm alg.type = "ocel" alg.reasoner = reasoner -alg.learningProblem = lp Modified: trunk/examples/sparql/BritishPrimeMinisters.conf =================================================================== --- trunk/examples/sparql/BritishPrimeMinisters.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/BritishPrimeMinisters.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -78,7 +78,6 @@ // we use the ocel algorithm alg.type = "ocel" alg.reasoner = reasoner -alg.learningProblem = lp alg.maxExecutionTimeInSeconds = 10 //alg.ignoredConcepts={"http://dbpedia.org/class/yago/Abstainer109758173"} Modified: trunk/examples/sparql/DBpediaOntology/Actor.conf =================================================================== --- trunk/examples/sparql/DBpediaOntology/Actor.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/DBpediaOntology/Actor.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -95,7 +95,6 @@ // we use the ocel algorithm alg.type = "ocel" alg.reasoner = reasoner -alg.learningProblem = lp alg.maxExecutionTimeInSeconds = 10 alg.noisePercentage = 15.0 alg.minExecutionTimeInSeconds = 30 Modified: trunk/examples/sparql/DBpediaYAGOWomanInPolitics.conf =================================================================== --- trunk/examples/sparql/DBpediaYAGOWomanInPolitics.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/DBpediaYAGOWomanInPolitics.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -36,5 +36,4 @@ // we use the OCEL algorithm alg.type = "ocel" alg.reasoner = reasoner -alg.learningProblem = lp Modified: trunk/examples/sparql/difference/DBpediaSKOS_kohl_vs_angela.conf =================================================================== --- trunk/examples/sparql/difference/DBpediaSKOS_kohl_vs_angela.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/difference/DBpediaSKOS_kohl_vs_angela.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -98,5 +98,4 @@ // we use the OCEL algorithm alg.type = "ocel" alg.reasoner = reasoner -alg.learningProblem = lp Modified: trunk/examples/sparql/difference/DifferenceDBpediaYAGO_angela_vs_hillary.conf =================================================================== --- trunk/examples/sparql/difference/DifferenceDBpediaYAGO_angela_vs_hillary.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/difference/DifferenceDBpediaYAGO_angela_vs_hillary.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -43,4 +43,3 @@ // we use the OCEL algorithm alg.type = "ocel" alg.reasoner = reasoner -alg.learningProblem = lp Modified: trunk/examples/sparql/difference/DifferenceDBpediaYAGO_angela_vs_hillary_ignoredConcepts.conf =================================================================== --- trunk/examples/sparql/difference/DifferenceDBpediaYAGO_angela_vs_hillary_ignoredConcepts.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/difference/DifferenceDBpediaYAGO_angela_vs_hillary_ignoredConcepts.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -62,4 +62,3 @@ // we use the OCEL algorithm alg.type = "ocel" alg.reasoner = reasoner -alg.learningProblem = lp Modified: trunk/examples/sparql/difference/DifferenceDBpediaYAGO_hillary_vs_angela.conf =================================================================== --- trunk/examples/sparql/difference/DifferenceDBpediaYAGO_hillary_vs_angela.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/difference/DifferenceDBpediaYAGO_hillary_vs_angela.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -31,4 +31,3 @@ // we use the OCEL algorithm alg.type = "ocel" alg.reasoner = reasoner -alg.learningProblem = lp Modified: trunk/examples/sparql/difference/DifferenceDBpediaYAGO_hillary_vs_angela_ignoredConcepts.conf =================================================================== --- trunk/examples/sparql/difference/DifferenceDBpediaYAGO_hillary_vs_angela_ignoredConcepts.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/difference/DifferenceDBpediaYAGO_hillary_vs_angela_ignoredConcepts.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -75,4 +75,3 @@ // we use the OCEL algorithm alg.type = "ocel" alg.reasoner = reasoner -alg.learningProblem = lp Modified: trunk/examples/sparql/govtrack.conf =================================================================== --- trunk/examples/sparql/govtrack.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/govtrack.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -30,7 +30,6 @@ // we use the CELOE algorithm ocel.type = "ocel" ocel.reasoner = reasoner -ocel.learningProblem = lp ocel.ignoredRoles = { "http://www.w3.org/2002/07/owl#sameAs"} ocel.useHasValueConstructor = true Modified: trunk/examples/sparql/hierarchy/Hierarchy0DBpediaYAGOChancellor_property_monarch.conf =================================================================== --- trunk/examples/sparql/hierarchy/Hierarchy0DBpediaYAGOChancellor_property_monarch.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/hierarchy/Hierarchy0DBpediaYAGOChancellor_property_monarch.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -65,5 +65,4 @@ // we use the OCEL algorithm alg.type = "ocel" alg.reasoner = reasoner -alg.learningProblem = lp alg.operator = op Modified: trunk/examples/sparql/hierarchy/Hierarchy1DBpediaYAGOChancellor_property_Knight.conf =================================================================== --- trunk/examples/sparql/hierarchy/Hierarchy1DBpediaYAGOChancellor_property_Knight.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/hierarchy/Hierarchy1DBpediaYAGOChancellor_property_Knight.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -49,5 +49,4 @@ // we use the OCEL algorithm alg.type = "ocel" alg.reasoner = reasoner -alg.learningProblem = lp alg.operator = op Modified: trunk/examples/sparql/moosique.conf =================================================================== --- trunk/examples/sparql/moosique.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/moosique.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -62,7 +62,6 @@ // we use the CELOE algorithm alg.type = "celoe" alg.reasoner = reasoner -alg.learningProblem = lp // set the start class to the correct type (Record in this case) - not supported yet // celoe.startClass = "http://purl.org/ontology/mo/Record"; // let it run for a short amount of time (we only want simple expressions) Modified: trunk/examples/sparql/navigation/NavigationDBpediaYAGOGreekPhilosophers_3_negatives.conf =================================================================== --- trunk/examples/sparql/navigation/NavigationDBpediaYAGOGreekPhilosophers_3_negatives.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/navigation/NavigationDBpediaYAGOGreekPhilosophers_3_negatives.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -72,4 +72,3 @@ // we use the OCEL algorithm alg.type = "ocel" alg.reasoner = reasoner -alg.learningProblem = lp Modified: trunk/examples/sparql/navigation/NavigationDBpediaYAGOGreekPhilosophers_4_negatives.conf =================================================================== --- trunk/examples/sparql/navigation/NavigationDBpediaYAGOGreekPhilosophers_4_negatives.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/navigation/NavigationDBpediaYAGOGreekPhilosophers_4_negatives.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -74,5 +74,4 @@ // we use the OCEL algorithm alg.type = "ocel" alg.reasoner = reasoner -alg.learningProblem = lp Modified: trunk/examples/sparql/navigation/NavigationDBpediaYAGOGreekPhilosophers_5_negatives.conf =================================================================== --- trunk/examples/sparql/navigation/NavigationDBpediaYAGOGreekPhilosophers_5_negatives.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/navigation/NavigationDBpediaYAGOGreekPhilosophers_5_negatives.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -62,4 +62,3 @@ // we use the OCEL algorithm alg.type = "ocel" alg.reasoner = reasoner -alg.learningProblem = lp Modified: trunk/examples/sparql/scrobble.conf =================================================================== --- trunk/examples/sparql/scrobble.conf 2011-12-01 13:03:42 UTC (rev 3459) +++ trunk/examples/sparql/scrobble.conf 2011-12-01 13:21:18 UTC (rev 3460) @@ -80,20 +80,14 @@ "http://dbtune.org/musicbrainz/resource/artist/a10ca116-02af-4989-9a91-fb25585216f7" } -// plug a reasoner into the learning problem -lp.reasoner = reasoner - // create a refinement operator and configure it op.type = "rho" op.useNegation = false op.useAllConstructor = false op.useCardinalityRestrictions = false -op.reasoner = reasoner ocel.type = "ocel" -ocel.reasoner = reasoner -ocel.learningProblem = lp ocel.operator = op ocel.maxExecutionTimeInSeconds = 10 //ocel.writeSearchTree = true @@ -102,9 +96,3 @@ - - - - - - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |