From: <ku...@us...> - 2008-02-18 12:32:42
|
Revision: 598 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=598&view=rev Author: kurzum Date: 2008-02-18 04:32:36 -0800 (Mon, 18 Feb 2008) Log Message: ----------- sparql examples fixed Modified Paths: -------------- trunk/examples/commandcollection.txt trunk/examples/sparql/Aristotle.conf trunk/examples/sparql/DBPediaYAGOWomanInPolitics.conf trunk/examples/sparql/SilentBobWorking1.conf trunk/examples/sparql/SilentBobWorking2.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/hierarchy/Hierarchy0DBPediaYAGOChanBrit_monarch.conf trunk/examples/sparql/hierarchy/Hierarchy1DBPediaYAGOChanBrit_pred_Knight.conf trunk/examples/sparql/navigation/Navigation0DBPediaYAGOAristotle.conf trunk/examples/sparql/navigation/Navigation1DBPediaYAGOAristotle.conf trunk/examples/sparql/navigation/Navigation2DBPediaYAGOAristotle.conf Modified: trunk/examples/commandcollection.txt =================================================================== --- trunk/examples/commandcollection.txt 2008-02-18 10:32:27 UTC (rev 597) +++ trunk/examples/commandcollection.txt 2008-02-18 12:32:36 UTC (rev 598) @@ -51,5 +51,17 @@ sparql.predefinedFilter = 5; sparql.predefinedEndpoint = 1; +//*********SKOS specific +// replace skos with owl properties +sparql.replacePredicate = [ +("http://www.w3.org/2004/02/skos/core#subject","http://www.w3.org/1999/02/22-rdf-syntax-ns#type"), +("http://www.w3.org/2004/02/skos/core#broader","http://www.w3.org/2000/01/rdf-schema#subClassOf")]; + +// because skos is cyclic this stops it +//manually after retrieving the specified amount of classes +sparql.breakSuperClassRetrievalAfter=200; + + import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL"); sparql.instances = {}; + Modified: trunk/examples/sparql/Aristotle.conf =================================================================== --- trunk/examples/sparql/Aristotle.conf 2008-02-18 10:32:27 UTC (rev 597) +++ trunk/examples/sparql/Aristotle.conf 2008-02-18 12:32:36 UTC (rev 598) @@ -1,6 +1,7 @@ /** * Some people from Greece. - * + * Note: DBpedia is always subject to change, solutions will change over time + * Possible Solution: * Theorist OR (Mathematician AND Physicist) * Modified: trunk/examples/sparql/DBPediaYAGOWomanInPolitics.conf =================================================================== --- trunk/examples/sparql/DBPediaYAGOWomanInPolitics.conf 2008-02-18 10:32:27 UTC (rev 597) +++ trunk/examples/sparql/DBPediaYAGOWomanInPolitics.conf 2008-02-18 12:32:36 UTC (rev 598) @@ -1,5 +1,8 @@ /* * Some woman, that are Politicians + + Note: DBpedia is always subject to change, solutions will change over time + Solution http://dbpedia.org/class/yago/Executive110069645 (length 1, depth 1) http://dbpedia.org/class/yago/CorporateExecutive109966255 (length 1, depth 1) Modified: trunk/examples/sparql/SilentBobWorking1.conf =================================================================== --- trunk/examples/sparql/SilentBobWorking1.conf 2008-02-18 10:32:27 UTC (rev 597) +++ trunk/examples/sparql/SilentBobWorking1.conf 2008-02-18 12:32:36 UTC (rev 598) @@ -1,4 +1,6 @@ +// Note: DBpedia is always subject to change, solutions will change over time + refinement.useAllConstructor = false; refinement.useExistsConstructor = true; refinement.useNegation = false; Modified: trunk/examples/sparql/SilentBobWorking2.conf =================================================================== --- trunk/examples/sparql/SilentBobWorking2.conf 2008-02-18 10:32:27 UTC (rev 597) +++ trunk/examples/sparql/SilentBobWorking2.conf 2008-02-18 12:32:36 UTC (rev 598) @@ -1,3 +1,4 @@ +//Note: DBpedia is always subject to change, solutions will change over time refinement.useAllConstructor = false; Modified: trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf =================================================================== --- trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf 2008-02-18 10:32:27 UTC (rev 597) +++ trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf 2008-02-18 12:32:36 UTC (rev 598) @@ -1,8 +1,9 @@ /** - * Simple example for using a SPARQL Endpoint as background - * knowledge. - * Solutions: +Note: DBpedia is always subject to change, solutions will change over time +Simple example for using a SPARQL Endpoint as background knowledge. +Solutions: + http://dbpedia.org/resource/Helmut_Kohl with 200 classes http://dbpedia.org/resource/Category:Awards (length 1, depth 1) @@ -72,11 +73,11 @@ sparql.predefinedEndpoint = 1; // use DBpedia endpoint -import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL2); +import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL"); // the set of objects as starting point for fragment selection // (should be identical to the set of examples) -sparql2.instances = { +sparql.instances = { "http://dbpedia.org/resource/Angela_Merkel", "http://dbpedia.org/resource/Helmut_Kohl" }; Modified: trunk/examples/sparql/difference/DifferenceDBPediaYAGO_angela_vs_hillary.conf =================================================================== --- trunk/examples/sparql/difference/DifferenceDBPediaYAGO_angela_vs_hillary.conf 2008-02-18 10:32:27 UTC (rev 597) +++ trunk/examples/sparql/difference/DifferenceDBPediaYAGO_angela_vs_hillary.conf 2008-02-18 12:32:36 UTC (rev 598) @@ -1,4 +1,5 @@ /** +Note: DBpedia is always subject to change, solutions will change over time * Solutions: http://dbpedia.org/class/yago/Communicator109610660 (length 1, depth 1) @@ -24,7 +25,7 @@ //predefined filter (1 = YAGO based learning) // 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter -sparql.predefinedFilter = 5; +sparql.predefinedFilter = 1; sparql.predefinedEndpoint = 1; Modified: trunk/examples/sparql/difference/DifferenceDBPediaYAGO_angela_vs_hillary_ignoredConcepts.conf =================================================================== --- trunk/examples/sparql/difference/DifferenceDBPediaYAGO_angela_vs_hillary_ignoredConcepts.conf 2008-02-18 10:32:27 UTC (rev 597) +++ trunk/examples/sparql/difference/DifferenceDBPediaYAGO_angela_vs_hillary_ignoredConcepts.conf 2008-02-18 12:32:36 UTC (rev 598) @@ -1,4 +1,5 @@ /** +Note: DBpedia is always subject to change, solutions will change over time * Solutions: http://dbpedia.org/class/yago/Communicator109610660 (length 1, depth 1) @@ -40,7 +41,7 @@ //predefined filter (1 = YAGO based learning) // 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter -sparql.predefinedFilter = 5; +sparql.predefinedFilter = 1; sparql.predefinedEndpoint = 1; Modified: trunk/examples/sparql/difference/DifferenceDBPediaYAGO_hillary_vs_angela.conf =================================================================== --- trunk/examples/sparql/difference/DifferenceDBPediaYAGO_hillary_vs_angela.conf 2008-02-18 10:32:27 UTC (rev 597) +++ trunk/examples/sparql/difference/DifferenceDBPediaYAGO_hillary_vs_angela.conf 2008-02-18 12:32:36 UTC (rev 598) @@ -1,4 +1,5 @@ /** +Note: DBpedia is always subject to change, solutions will change over time * Solutions: http://dbpedia.org/class/yago/Achiever109762821 (length 1, depth 1) @@ -13,7 +14,7 @@ //predefined filter (1 = YAGO based learning) // 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter -sparql.predefinedFilter = 5; +sparql.predefinedFilter = 1; sparql.predefinedEndpoint = 1; Modified: trunk/examples/sparql/difference/DifferenceDBPediaYAGO_hillary_vs_angela_ignoredConcepts.conf =================================================================== --- trunk/examples/sparql/difference/DifferenceDBPediaYAGO_hillary_vs_angela_ignoredConcepts.conf 2008-02-18 10:32:27 UTC (rev 597) +++ trunk/examples/sparql/difference/DifferenceDBPediaYAGO_hillary_vs_angela_ignoredConcepts.conf 2008-02-18 12:32:36 UTC (rev 598) @@ -1,4 +1,5 @@ /** +Note: DBpedia is always subject to change, solutions will change over time * Solutions: http://dbpedia.org/class/yago/Achiever109762821 (length 1, depth 1) @@ -52,7 +53,7 @@ //predefined filter (1 = YAGO based learning) // 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter -sparql.predefinedFilter = 5; +sparql.predefinedFilter = 1; sparql.predefinedEndpoint = 1; Modified: trunk/examples/sparql/hierarchy/Hierarchy0DBPediaYAGOChanBrit_monarch.conf =================================================================== --- trunk/examples/sparql/hierarchy/Hierarchy0DBPediaYAGOChanBrit_monarch.conf 2008-02-18 10:32:27 UTC (rev 597) +++ trunk/examples/sparql/hierarchy/Hierarchy0DBPediaYAGOChanBrit_monarch.conf 2008-02-18 12:32:36 UTC (rev 598) @@ -1,4 +1,5 @@ /* + Note: DBpedia is always subject to change, solutions will change over time solutions: EXISTS http://dbpedia.org/property/monarch.TOP (length 3, depth 2) @@ -19,9 +20,7 @@ // SPARQL options -import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL2"); - refinement.useAllConstructor = false; //refinement.useExistsConstructor = true; refinement.useNegation = false; @@ -32,7 +31,7 @@ //predefined filter (1 = YAGO based learning) // 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter -sparql.predefinedFilter = 5; +sparql.predefinedFilter = 1; sparql.predefinedEndpoint = 1; Modified: trunk/examples/sparql/hierarchy/Hierarchy1DBPediaYAGOChanBrit_pred_Knight.conf =================================================================== --- trunk/examples/sparql/hierarchy/Hierarchy1DBPediaYAGOChanBrit_pred_Knight.conf 2008-02-18 10:32:27 UTC (rev 597) +++ trunk/examples/sparql/hierarchy/Hierarchy1DBPediaYAGOChanBrit_pred_Knight.conf 2008-02-18 12:32:36 UTC (rev 598) @@ -1,4 +1,5 @@ /* +Note: DBpedia is always subject to change, solutions will change over time @@ -7,8 +8,6 @@ // SPARQL options -import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL2"); - refinement.heuristic = flexible; refinement.useAllConstructor = false; @@ -23,7 +22,7 @@ //predefined filter (1 = YAGO based learning) // 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter -sparql.predefinedFilter = 5; +sparql.predefinedFilter = 1; sparql.predefinedEndpoint = 1; import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL"); Modified: trunk/examples/sparql/navigation/Navigation0DBPediaYAGOAristotle.conf =================================================================== --- trunk/examples/sparql/navigation/Navigation0DBPediaYAGOAristotle.conf 2008-02-18 10:32:27 UTC (rev 597) +++ trunk/examples/sparql/navigation/Navigation0DBPediaYAGOAristotle.conf 2008-02-18 12:32:36 UTC (rev 598) @@ -1,6 +1,7 @@ /** * Some people from Greece. - * + * Note: DBpedia is always subject to change, solutions will change over time + solutions: http://dbpedia.org/class/yago/Mathematician110301261 (length 1, depth 1) horizontal expansion: 0 to 1 @@ -25,7 +26,7 @@ //predefined filter (1 = YAGO based learning) // 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter -sparql.predefinedFilter = 5; +sparql.predefinedFilter = 1; sparql.predefinedEndpoint = 1; Modified: trunk/examples/sparql/navigation/Navigation1DBPediaYAGOAristotle.conf =================================================================== --- trunk/examples/sparql/navigation/Navigation1DBPediaYAGOAristotle.conf 2008-02-18 10:32:27 UTC (rev 597) +++ trunk/examples/sparql/navigation/Navigation1DBPediaYAGOAristotle.conf 2008-02-18 12:32:36 UTC (rev 598) @@ -1,6 +1,7 @@ /** * Some people from Greece. - * + * Note: DBpedia is always subject to change, solutions will change over time + solutions: (http://dbpedia.org/class/yago/Theorist110706812 OR (http://dbpedia.org/class/yago/Mathematician110301261 AND http://dbpedia.org/class/yago/Physicist110428004)) (length 5, depth 3) horizontal expansion: 3 to 5 @@ -24,7 +25,7 @@ //predefined filter (1 = YAGO based learning) // 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter -sparql.predefinedFilter = 5; +sparql.predefinedFilter = 1; sparql.predefinedEndpoint = 1; Modified: trunk/examples/sparql/navigation/Navigation2DBPediaYAGOAristotle.conf =================================================================== --- trunk/examples/sparql/navigation/Navigation2DBPediaYAGOAristotle.conf 2008-02-18 10:32:27 UTC (rev 597) +++ trunk/examples/sparql/navigation/Navigation2DBPediaYAGOAristotle.conf 2008-02-18 12:32:36 UTC (rev 598) @@ -1,6 +1,7 @@ /** * Some people from Greece. - * + * Note: DBpedia is always subject to change, solutions will change over time + * Possible Solution: * (http://dbpedia.org/class/yago/Theorist110706812 OR (http://dbpedia.org/class/yago/Mathematician110301261 AND http://dbpedia.org/class/yago/Physicist110428004)) * @@ -13,7 +14,7 @@ //predefined filter (1 = YAGO based learning) // 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter -sparql.predefinedFilter = 5; +sparql.predefinedFilter = 1; sparql.predefinedEndpoint = 1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |