From: <jen...@us...> - 2008-10-10 15:44:42
|
Revision: 1361 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1361&view=rev Author: jenslehmann Date: 2008-10-10 15:44:36 +0000 (Fri, 10 Oct 2008) Log Message: ----------- fixed 3 examples (2 remaining) Modified Paths: -------------- trunk/examples/krk/KRK_ZERO_against_1to5_fastInstance.conf trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf trunk/examples/sparql/govtrack.conf trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java Modified: trunk/examples/krk/KRK_ZERO_against_1to5_fastInstance.conf =================================================================== --- trunk/examples/krk/KRK_ZERO_against_1to5_fastInstance.conf 2008-10-10 08:39:29 UTC (rev 1360) +++ trunk/examples/krk/KRK_ZERO_against_1to5_fastInstance.conf 2008-10-10 15:44:36 UTC (rev 1361) @@ -1,22 +1,11 @@ /** -DEBUG - --- loop 22845 started --- -DEBUG - start node: TOP [acc:2,452% h:-0,192 q:0p-1074n (START), he:14 c:9568] -DEBUG - currently best node: ALL "hasPiece".(ALL "fileDistance1"."BKing" AND ALL "fileDistance6"."WRook" AND ALL "fileDistance7"."WKing" AND (EXISTS "fileDistanceLessThan3".(EXISTS "fileDistanceLessThan2".ALL "rankDistance1"."WKing" AND ALL "rankDistance1"."WKing") OR ("WRook" AND EXISTS "hasLowerRankThan".TOP))) [acc:92,461% h:0,124 q:0p-83n (REASONER), he:32 c:14] -DEBUG - next expanded node: ALL "hasPiece".(ALL "fileDistance1"."BKing" AND ALL "fileDistance6"."WRook" AND ALL "fileDistance7"."WKing" AND (EXISTS "fileDistanceLessThan3".(EXISTS "fileDistanceLessThan1".ALL "fileDistanceLessThan4".TOP AND ALL "rankDistance1"."WKing") OR ("WRook" AND EXISTS "hasLowerRankThan".ALL "rankDistance1".BOTTOM))) [acc:92,461% h:0,125 q:0p-83n (REASONER), he:32 c:0] -DEBUG - algorithm runtime 2351s 900ms -DEBUG - size of candidate set: 4247 -DEBUG - subsumption time: 22ms -DEBUG - instance check time: 2036s 942ms -DEBUG - retrieval time: 0ms -DEBUG - properness tests (reasoner/short concept/too weak list): 0/236/4043 -DEBUG - concept tests (reasoner/too weak list/overly general list/redundant concepts): 162475/4043/10296/41312 + * KRK problem. + * We try to distinguish mate positions from those which are mate in 1 to 5. + * DL-Learner will find a solution with 98% accuracy, but not a perfect one (in short time). + * You can experiment with the noise parameter and observe the search tree to find out more. + **/ - -**/ - - - import("KRK_ZERO_against_1to5.owl"); refexamples.ignoredConcepts={ @@ -27,14 +16,11 @@ "http://www.test.de/test#TWO", "http://www.test.de/test#ZERO"}; -//problem = posOnlyDefinition; - algorithm = refexamples; -//algorithm = refinement; -//refinement.heuristic=flexible; reasoner=fastInstanceChecker; refexamples.startClass = "http://www.test.de/test#Game"; -//refexamples.useAllConstructor = false; +refexamples.useAllConstructor = false; +refexamples.noisePercentage = 2; /**ZERO**/ +"http://www.test.de/test#game1" Modified: trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf =================================================================== --- trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf 2008-10-10 08:39:29 UTC (rev 1360) +++ trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf 2008-10-10 15:44:36 UTC (rev 1361) @@ -36,7 +36,7 @@ */ - +// refexamples.ignoredRoles = {"http://dbpedia.org/property/spouse"}; // recursion depth of extraction algorithm sparql.recursionDepth = 1; @@ -48,7 +48,9 @@ "http://dbpedia.org/property/reference", "http://dbpedia.org/property/website", "http://dbpedia.org/property/wikipage", - "http://dbpedia.org/property/wikiPageUsesTemplate"}; + "http://dbpedia.org/property/wikiPageUsesTemplate", + "http://dbpedia.org/property/spouse" +}; // list of ignored objects sparql.objList = { "http://xmlns.com/foaf/0.1/", Modified: trunk/examples/sparql/govtrack.conf =================================================================== --- trunk/examples/sparql/govtrack.conf 2008-10-10 08:39:29 UTC (rev 1360) +++ trunk/examples/sparql/govtrack.conf 2008-10-10 15:44:36 UTC (rev 1361) @@ -1,3 +1,9 @@ +/** + * GovTrack example. It does not produce anything meaningful yet. + * We either need to support datatype properties in owl:hasValue + * or convert some of the datatype properties into object properties, + * e.g. "Democrat" or "Republican" into a class. + */ sparql.recursionDepth = 3; sparql.predefinedEndpoint = "GOVTRACK"; @@ -2,7 +8,11 @@ sparql.useLits = true; +sparql.saveExtractedFragment = true; algorithm = refexamples; -reasoner = owlAPIReasoner; -// reasoner = fastInstanceChecker; +refexamples.ignoredRoles = { "http://www.w3.org/2002/07/owl#sameAs"}; +refexamples.useHasValueConstructor = true; +refexamples.valueFrequencyThreshold = 1; +reasoner = fastInstanceChecker; + import("http://www.govtrack.us/sparql","SPARQL"); Modified: trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java =================================================================== --- trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java 2008-10-10 08:39:29 UTC (rev 1360) +++ trunk/src/dl-learner/org/dllearner/test/junit/ExampleTests.java 2008-10-10 15:44:36 UTC (rev 1361) @@ -89,15 +89,15 @@ // ignored due to errors (should be fixed; in case of long running problems or // our of memory, it is better to increase the noise parameter and add comments // in the conf file about "optimal" parameters) - ignore.add("./examples/sparql/govtrack.conf"); // HTTP 500 Server error + // ignore.add("./examples/sparql/govtrack.conf"); // HTTP 500 Server error ignore.add("./examples/sparql/musicbrainz.conf"); // HTTP 502 error - NullPointer in extraction //working fine here ignore.add("./examples/sparql/SKOSTEST_local.conf"); // Out of Memory Error ignore.add("./examples/sparql/scrobble.conf"); // HTTP 502 Proxy Error // ignore.add("./examples/family-benchmark/Cousin.conf"); // Out of Memory Error => disallowing ALL helps (TODO find out details) //also working fine ignore.add("./examples/sparql/SilentBobWorking2.conf"); // Out of Memory Error - ignore.add("./examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf"); // Pellet: literal cannot be cast to individual + // ignore.add("./examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf"); // Pellet: literal cannot be cast to individual // ignore.add("./examples/family-benchmark/Aunt.conf"); // did not terminate so far (waited 45 minutes) => disallowing ALL helps (TODO find out details) - ignore.add("./examples/krk/KRK_ZERO_against_1to5_fastInstance.conf"); // Out of Memory Error + // ignore.add("./examples/krk/KRK_ZERO_against_1to5_fastInstance.conf"); // Out of Memory Error //removed ignore.add("./examples/semantic_bible/normal_test.conf"); // did not terminate (waited 55 minutes) int failedCounter = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |