From: <ku...@us...> - 2012-05-02 15:22:17
|
Revision: 3677 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=3677&view=rev Author: kurzum Date: 2012-05-02 15:22:07 +0000 (Wed, 02 May 2012) Log Message: ----------- bsp f?\195?\188r alte komponente Modified Paths: -------------- trunk/examples/thanh/AristotlePosNeg.conf Added Paths: ----------- trunk/examples/thanh/AristotlePosNeg_alteKomponente.conf Modified: trunk/examples/thanh/AristotlePosNeg.conf =================================================================== --- trunk/examples/thanh/AristotlePosNeg.conf 2012-05-02 14:53:12 UTC (rev 3676) +++ trunk/examples/thanh/AristotlePosNeg.conf 2012-05-02 15:22:07 UTC (rev 3677) @@ -15,7 +15,7 @@ sparql.defaultGraphURI = "http://dbpedia.org" sparql.recursionDepth = 2 sparql.ontologySchemaUrls = {"http://downloads.dbpedia.org/3.6/dbpedia_3.6.owl" } -sparql.aboxfilter = "FILTER ( !isLiteral(?o) ) " +sparql.aboxfilter = "FILTER ( !isLiteral(?o) && regex(str(?o), '^http://dbpedia.org/resource/') && ! regex(str(?o), '^http://dbpedia.org/resource/Category') ) " // && regex(str(?o), '^http://dbpedia.org/resource/') && ! regex(str(?o), '^http://dbpedia.org/resource/Category') && ! regex(str(?o), '^http://dbpedia.org/resource/Template') ) . " //|| regex(str(?p), '^http://dbpedia.org/property/') )) " sparql.tboxfilter = "FILTER ( regex(str(?class), '^http://dbpedia.org/ontology/') ) . " Added: trunk/examples/thanh/AristotlePosNeg_alteKomponente.conf =================================================================== --- trunk/examples/thanh/AristotlePosNeg_alteKomponente.conf (rev 0) +++ trunk/examples/thanh/AristotlePosNeg_alteKomponente.conf 2012-05-02 15:22:07 UTC (rev 3677) @@ -0,0 +1,63 @@ +/** + * 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 AristotlePos.conf, but positives and negatives + */ + + +// SPARQL options +sparql.type = "SPARQL endpoint fragment" +sparql.url = "http://live.dbpedia.org/sparql" +sparql.defaultGraphURIs = {"http://dbpedia.org"} +sparql.recursionDepth = 2 +//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 and negative examples +lp.type = "posNegStandard" +lp.positiveExamples = { +"http://dbpedia.org/resource/Archytas", +"http://dbpedia.org/resource/Pythagoras", +"http://dbpedia.org/resource/Philolaus" +} +lp.negativeExamples = { +"http://dbpedia.org/resource/Democritus", +"http://dbpedia.org/resource/Zeno_of_Elea", +"http://dbpedia.org/resource/Plato", +"http://dbpedia.org/resource/Socrates" +} +// 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.useHasValueConstructor = true +op.reasoner = reasoner + +// we use the ocel algorithm +alg.type = "ocel" +alg.reasoner = reasoner +alg.maxExecutionTimeInSeconds = 30 +alg.noisePercentage = 10.0 +alg.minExecutionTimeInSeconds = 10 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |