From: <lor...@us...> - 2011-08-31 06:43:39
|
Revision: 3173 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=3173&view=rev Author: lorenz_b Date: 2011-08-31 06:43:31 +0000 (Wed, 31 Aug 2011) Log Message: ----------- Update to new conf syntax. Modified Paths: -------------- trunk/examples/swore/customer_requirement.conf trunk/examples/swore/swore.conf trunk/examples/trains/trains.conf trunk/examples/trains/trains_owl.conf Modified: trunk/examples/swore/customer_requirement.conf =================================================================== --- trunk/examples/swore/customer_requirement.conf 2011-08-30 15:57:39 UTC (rev 3172) +++ trunk/examples/swore/customer_requirement.conf 2011-08-31 06:43:31 UTC (rev 3173) @@ -1,7 +1,44 @@ +/** + * Example file for typical ontology engineering setup. + * + * SWORE is the SoftWiki ontology for requirements engineering. + * + * Desired Solution: + * CustomerRequirement = Requirement AND EXISTS createdBy Customer + */ + +prefixes = [ ("kb","http://ns.softwiki.de/req/") ] + +// knowledge source definition +ks.type = "OWL File" +ks.fileName = "swore.rdf" -import("swore.rdf"); +// reasoner +reasoner.type = "fast instance checker" +reasoner.sources = { ks } -problem = classLearning; -classLearning.classToDescribe = "http://ns.softwiki.de/req/CustomerRequirement"; +// learning problem +lp.type = "clp" +lp.classToDescribe = "kb:CustomerRequirement" -algorithm = celoe; +alg.type = "celoe" + +// ignore class for which we want to learn a definition +alg.ignoredConcepts = { "kb:Goal" } + +// we usually have a configurable minimum accuracy and should set noise to 100 - (min. accuracy)/2 +// because min. accuracy is recommended to be 90%, we set the noise value to 5% +alg.noisePercentage = 5 + +// we do not want to terminate when the noise level is reached +alg.terminateOnNoiseReached = false + +// maximum execution time should be sufficiently low value (because the user has to wait for the result) +alg.maxExecutionTimeInSeconds = 5 + +// create a heuristic and configure it +// negations are penalised, because they are often not desired, e.g. +// $superclass AND NOT $neighbourclass1 AND NOT $neighbourclass2 is +// one of the patterns which is learned but only sometimes/rarely useful +h.type = "multiheuristic" +h.expansionPenaltyFactor = 2 Modified: trunk/examples/swore/swore.conf =================================================================== --- trunk/examples/swore/swore.conf 2011-08-30 15:57:39 UTC (rev 3172) +++ trunk/examples/swore/swore.conf 2011-08-31 06:43:31 UTC (rev 3173) @@ -6,66 +6,80 @@ * Desired Solution: * CustomerRequirement = Requirement AND EXISTS createdBy Customer */ + +prefixes = [ ("kb","http://ns.softwiki.de/req/") ] + +// knowledge source definition +ks.type = "OWL File" +ks.fileName = "swore.rdf" -import("swore.rdf"); +// reasoner +reasoner.type = "fast instance checker" +reasoner.sources = { ks } +// learning problem +lp.type = "posNegStandard" +lp.positiveExamples = { +"kb:determineCoreRequirements", +"kb:determineSystemRequirements", +"kb:CreateVersion1" +} +lp.negativeExamples = { +"kb:CreateVersion2", +"kb:CreateACheaperSoftware", +"kb:unimportant", +"kb:TextualScenario4", +"kb:TextualScenario5", +"kb:TextualScenario6", +"kb:UseDatabaseToStoreUserData", +"kb:1", +"kb:2", +"kb:3", +"kb:4", +"kb:5", +"kb:6", +"kb:7", +"kb:8", +"kb:9", +"kb:important", +"kb:ActiveHelpDialog", +"kb:Andrew_Stellman", +"kb:calculations", +"kb:Charlotte_Blay", +"kb:comment", +"kb:Derick_Garnier", +"kb:loadGUIInUnder2Sec", +"kb:LogEveryUserActivity", +"kb:MultiTabSystem", +"kb:MultiUserSystem", +"kb:MultiWindowSystem", +"kb:SystemStabilityRequirement", +"kb:technical_details", +"kb:Derick_Garnier", +"kb:UseOfIcons", +"kb:UserCanAccessDataFromEveryComputer", +"kb:WindowDesign" +} + + +alg.type = "ocel" + // ignore class for which we want to learn a definition -ocel.ignoredConcepts = { "http://ns.softwiki.de/req/Goal" }; +alg.ignoredConcepts = { "kb:Goal" } // we usually have a configurable minimum accuracy and should set noise to 100 - (min. accuracy)/2 // because min. accuracy is recommended to be 90%, we set the noise value to 5% -ocel.noisePercentage = 5; +alg.noisePercentage = 5 // we do not want to terminate when the noise level is reached -ocel.terminateOnNoiseReached = false; +alg.terminateOnNoiseReached = false // maximum execution time should be sufficiently low value (because the user has to wait for the result) -ocel.maxExecutionTimeInSeconds = 20; +alg.maxExecutionTimeInSeconds = 5 +// create a heuristic and configure it // negations are penalised, because they are often not desired, e.g. // $superclass AND NOT $neighbourclass1 AND NOT $neighbourclass2 is // one of the patterns which is learned but only sometimes/rarely useful -ocel.negationPenalty = 2; - -+"http://ns.softwiki.de/req/determineCoreRequirements" -+"http://ns.softwiki.de/req/determineSystemRequirements" -+"http://ns.softwiki.de/req/CreateVersion1" --"http://ns.softwiki.de/req/CreateVersion2" --"http://ns.softwiki.de/req/CreateACheaperSoftware" --"http://ns.softwiki.de/req/less_important" --"http://ns.softwiki.de/req/unimportant" --"http://ns.softwiki.de/req/TextualScenario4" --"http://ns.softwiki.de/req/TextualScenario5" --"http://ns.softwiki.de/req/TextualScenario6" --"http://ns.softwiki.de/req/UseDatabaseToStoreUserData" --"http://ns.softwiki.de/req/1" --"http://ns.softwiki.de/req/2" --"http://ns.softwiki.de/req/3" --"http://ns.softwiki.de/req/4" --"http://ns.softwiki.de/req/5" --"http://ns.softwiki.de/req/6" --"http://ns.softwiki.de/req/7" --"http://ns.softwiki.de/req/8" --"http://ns.softwiki.de/req/9" --"http://ns.softwiki.de/req/Topic" --"http://ns.softwiki.de/req/important" --"http://ns.softwiki.de/req/ActiveHelpDialog" --"http://ns.softwiki.de/req/Andrew_Stellman" --"http://ns.softwiki.de/req/calculations" --"http://ns.softwiki.de/req/CentralOranisationOfFinnishTrage" --"http://ns.softwiki.de/req/Charlotte_Blay" --"http://ns.softwiki.de/req/comment" --"http://ns.softwiki.de/req/data_manipualtion" --"http://ns.softwiki.de/req/Derick_Garnier" --"http://ns.softwiki.de/req/DialogSystemShouldRespondInUnder5Sec" --"http://ns.softwiki.de/req/loadGUIInUnder2Sec" --"http://ns.softwiki.de/req/LogEveryUserActivity" --"http://ns.softwiki.de/req/MultiTabSystem" --"http://ns.softwiki.de/req/MultiUserSystem" --"http://ns.softwiki.de/req/MultiWindowSystem" --"http://ns.softwiki.de/req/SystemStabilityRequirement" --"http://ns.softwiki.de/req/technical_details" --"http://ns.softwiki.de/req/Derick_Garnier" --"http://ns.softwiki.de/req/UseOfIcons" --"http://ns.softwiki.de/req/UserCanAccessDataFromEveryComputer" --"http://ns.softwiki.de/req/WindowDesign" +h.type = "multiheuristic" +h.expansionPenaltyFactor = 2 Modified: trunk/examples/trains/trains.conf =================================================================== --- trunk/examples/trains/trains.conf 2011-08-30 15:57:39 UTC (rev 3172) +++ trunk/examples/trains/trains.conf 2011-08-31 06:43:31 UTC (rev 3173) @@ -32,18 +32,19 @@ /*Background knowledge*/ +prefixes = [ ("kb","http://localhost/foo#") ] +// knowledge source definition +ks.type = "KB file" +ks.url = "trains.kb" -import("trains.kb"); +// reasoner +reasoner.type = "fast instance checker" +reasoner.sources = { ks } -/** examples **/ -+east1 -+east2 -+east3 -+east4 -+east5 --west6 --west7 --west8 --west9 --west10 +lp.type = "posNegStandard" +lp.positiveExamples = {"kb:east1", "kb:east2", "kb:east3", "kb:east4", "kb:east5"} +lp.negativeExamples = {"kb:west6", "kb:west7", "kb:west8", "kb:west9", "kb:west10"} + +alg.type = "ocel" +alg.maxExecutionTimeInSeconds = 10 Modified: trunk/examples/trains/trains_owl.conf =================================================================== --- trunk/examples/trains/trains_owl.conf 2011-08-30 15:57:39 UTC (rev 3172) +++ trunk/examples/trains/trains_owl.conf 2011-08-31 06:43:31 UTC (rev 3173) @@ -4,21 +4,19 @@ * * Copyright (C) 2007, Jens Lehmann */ +prefixes = [ ("kb","http://example.com/trains#") ] -hidePrefix = "http://example.com/trains#"; +// knowledge source definition +ks.type = "OWL File" +ks.fileName = "trains2.owl" -/*Background knowledge*/ +// reasoner +reasoner.type = "fast instance checker" +reasoner.sources = { ks } -import("trains2.owl"); +lp.type = "posNegStandard" +lp.positiveExamples = {"kb:east1", "kb:east2", "kb:east3", "kb:east4", "kb:east5"} +lp.negativeExamples = {"kb:west6", "kb:west7", "kb:west8", "kb:west9", "kb:west10"} -/*Examples*/ -+"http://example.com/trains#east1" -+"http://example.com/trains#east2" -+"http://example.com/trains#east3" -+"http://example.com/trains#east4" -+"http://example.com/trains#east5" --"http://example.com/trains#west6" --"http://example.com/trains#west7" --"http://example.com/trains#west8" --"http://example.com/trains#west9" --"http://example.com/trains#west10" +alg.type = "ocel" +alg.maxExecutionTimeInSeconds = 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. |