From: <ku...@us...> - 2008-01-30 16:10:03
|
Revision: 473 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=473&view=rev Author: kurzum Date: 2008-01-30 08:09:28 -0800 (Wed, 30 Jan 2008) Log Message: ----------- added remaining examples Added Paths: ----------- 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 Added: trunk/examples/sparql/Aristotle.conf =================================================================== --- trunk/examples/sparql/Aristotle.conf (rev 0) +++ trunk/examples/sparql/Aristotle.conf 2008-01-30 16:09:28 UTC (rev 473) @@ -0,0 +1,35 @@ +/** + * Some people from Greece. + * + * Possible Solution: + * Theorist OR (Mathematician AND Physicist) + * + */ + +// SPARQL options +sparql.recursionDepth = 1; + +//predefined filter (1 = YAGO based learning) +sparql.predefinedFilter = 5; + +sparql.predefinedEndpoint = 1; + +import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL"); + +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" +}; + ++"http://dbpedia.org/resource/Pythagoras" ++"http://dbpedia.org/resource/Philolaus" ++"http://dbpedia.org/resource/Archytas" +-"http://dbpedia.org/resource/Socrates" +-"http://dbpedia.org/resource/Plato" +-"http://dbpedia.org/resource/Zeno_of_Elea" +-"http://dbpedia.org/resource/Democritus" Added: trunk/examples/sparql/DBPediaYAGOWomanInPolitics.conf =================================================================== --- trunk/examples/sparql/DBPediaYAGOWomanInPolitics.conf (rev 0) +++ trunk/examples/sparql/DBPediaYAGOWomanInPolitics.conf 2008-01-30 16:09:28 UTC (rev 473) @@ -0,0 +1,43 @@ + /* + * Some woman, that are Politicians + Solution + http://dbpedia.org/class/yago/Executive110069645 (length 1, depth 1) + http://dbpedia.org/class/yago/CorporateExecutive109966255 (length 1, depth 1) + http://dbpedia.org/class/yago/President110468559 (length 1, depth 1) + */ + +// SPARQL options + + + +// SPARQL options +//necessary: +sparql.recursionDepth = 1; + + +//predefined filter (1 = YAGO based learning) +// 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter +sparql.predefinedFilter = 5; + +sparql.predefinedEndpoint = 1; + + +import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL"); + +sparql.instances = { +"http://dbpedia.org/resource/Indira_Gandhi", +"http://dbpedia.org/resource/Sonia_Gandhi", +"http://dbpedia.org/resource/Hillary_Rodham_Clinton", +"http://dbpedia.org/resource/Princess_Leia_Organa", +"http://dbpedia.org/resource/Angela_Merkel", +"http://dbpedia.org/resource/Christine_Todd_Whitman"}; + + + +/** examples **/ ++"http://dbpedia.org/resource/Indira_Gandhi" ++"http://dbpedia.org/resource/Sonia_Gandhi" +-"http://dbpedia.org/resource/Hillary_Rodham_Clinton" +-"http://dbpedia.org/resource/Princess_Leia_Organa" +-"http://dbpedia.org/resource/Angela_Merkel" +-"http://dbpedia.org/resource/Christine_Todd_Whitman" \ No newline at end of file Added: trunk/examples/sparql/SilentBobWorking1.conf =================================================================== --- trunk/examples/sparql/SilentBobWorking1.conf (rev 0) +++ trunk/examples/sparql/SilentBobWorking1.conf 2008-01-30 16:09:28 UTC (rev 473) @@ -0,0 +1,43 @@ + +refinement.useAllConstructor = false; +refinement.useExistsConstructor = true; +refinement.useNegation = false; + + +// recursion depth of extraction algorithm +sparql.recursionDepth = 1; + + +//predefined filter (1 = YAGO based learning) +// 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter +sparql.predefinedFilter = 5; + +sparql.predefinedEndpoint = 1; + + +// use DBpedia endpoint +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) +sparql.instances = { +"http://dbpedia.org/resource/Matt_Stone", +"http://dbpedia.org/resource/Sarah_Silverman", +"http://dbpedia.org/resource/Jim_Carrey", +"http://dbpedia.org/resource/Jason_Mewes", +"http://dbpedia.org/resource/Kevin_Smith", +"http://dbpedia.org/resource/Trey_Parker", +"http://dbpedia.org/resource/Adam_Sandler"}; + + + +// http://dbpedia.org/class/yago/agnostic OR http://dbpedia.org/class/yago/artist +// http://dbpedia.org/class/yago/agnostic OR http://dbpedia.org/class/yago/teetotaler + ++"http://dbpedia.org/resource/Matt_Stone" ++"http://dbpedia.org/resource/Sarah_Silverman" +-"http://dbpedia.org/resource/Jim_Carrey" +-"http://dbpedia.org/resource/Jason_Mewes" +-"http://dbpedia.org/resource/Kevin_Smith" +-"http://dbpedia.org/resource/Trey_Parker" +-"http://dbpedia.org/resource/Adam_Sandler" \ No newline at end of file Added: trunk/examples/sparql/SilentBobWorking2.conf =================================================================== --- trunk/examples/sparql/SilentBobWorking2.conf (rev 0) +++ trunk/examples/sparql/SilentBobWorking2.conf 2008-01-30 16:09:28 UTC (rev 473) @@ -0,0 +1,51 @@ + + +refinement.useAllConstructor = false; +refinement.useExistsConstructor = true; +refinement.useNegation = false; + + +// recursion depth of extraction algorithm +sparql.recursionDepth = 1; + + +//predefined filter (1 = YAGO based learning) +// 2 = SKOS, more Options are needed then though. replacePredicate, breakSuperClassRetrievalAfter +sparql.predefinedFilter = 5; + +sparql.predefinedEndpoint = 1; + + +// use DBpedia endpoint +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) +sparql.instances = { + "http://dbpedia.org/resource/Matt_Stone", +"http://dbpedia.org/resource/Sarah_Silverman", +"http://dbpedia.org/resource/Kevin_Smith", + +"http://dbpedia.org/resource/Jason_Mewes", +"http://dbpedia.org/resource/Jim_Carrey", +"http://dbpedia.org/resource/Trey_Parker", +"http://dbpedia.org/resource/Adam_Sandler" + +}; + + +/* +Category:1970s AND Category:Religion_in_the_United_States +Category:Actors AND Category:Religion_in_the_United_States +*/ + ++"http://dbpedia.org/resource/Matt_Stone" ++"http://dbpedia.org/resource/Sarah_Silverman" ++"http://dbpedia.org/resource/Kevin_Smith" + +-"http://dbpedia.org/resource/Jason_Mewes" +-"http://dbpedia.org/resource/Jim_Carrey" +-"http://dbpedia.org/resource/Trey_Parker" +-"http://dbpedia.org/resource/Adam_Sandler" + + Added: trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf =================================================================== --- trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf (rev 0) +++ trunk/examples/sparql/difference/DBPediaSKOS_kohl_vs_angela.conf 2008-01-30 16:09:28 UTC (rev 473) @@ -0,0 +1,88 @@ +/** + * 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) + http://dbpedia.org/resource/Category:British_knights%7CGrand_Cross_of_the_Order_of_St_Michael_and_St_George%2C_Knights (length 1, depth 1) + http://dbpedia.org/resource/Category:Categories_named_after_politicians%7C_Cold_War_leaders (length 1, depth 1) + http://dbpedia.org/resource/Category:Christian_politicians%7CRoman_Catholic (length 1, depth 1) + http://dbpedia.org/resource/Category:Christianity_in_Germany (length 1, depth 1) + http://dbpedia.org/resource/Category:Christians_by_nationality%7C_Roman_Catholics (length 1, depth 1) + http://dbpedia.org/resource/Category:Cold_War%7CLeaders (length 1, depth 1) + http://dbpedia.org/resource/Category:German_Christians%7CRoman_Catholics (length 1, depth 1) + http://dbpedia.org/resource/Category:Order_of_St_Michael_and_St_George (length 1, depth 1) + http://dbpedia.org/resource/Category:People (length 1, depth 1) + http://dbpedia.org/resource/Category:People_associated_with_war%7C (length 1, depth 1) + http://dbpedia.org/resource/Category:Roman_Catholic_Church_by_country%7CGermany (length 1, depth 1) + http://dbpedia.org/resource/Category:Roman_Catholic_Church_in_Europe%7CGermany (length 1, depth 1) + http://dbpedia.org/resource/Category:Roman_Catholics%7C_Nationality (length 1, depth 1) + http://dbpedia.org/resource/Category:Roman_Catholics_by_occupation%7CPoliticians (length 1, depth 1) + http://dbpedia.org/resource/Category:Wars%7C_People (length 1, depth 1) + + These are the original direct results from dbpedia: +skos:subject [http] :Category:1930_births [http] - +skos:subject [http] :Category:Chancellors_of_Germany [http] - +skos:subject [http] :Category:Cold_War_leaders [http] - +skos:subject [http] :Category:German_Christian_Democrat_politicians [http] - +skos:subject [http] :Category:German_Roman_Catholics [http] - +skos:subject [http] :Category:Knights_Grand_Cross_of_the_Order_of_St_Michael_and_St_George [http] - +skos:subject [http] :Category:Living_people [http] - +skos:subject [http] :Category:Presidential_Medal_of_Freedom_recipients [http] - +skos:subject [http] :Category:Roman_Catholic_politicians [http] + + */ + + + +// recursion depth of extraction algorithm +sparql.recursionDepth = 1; + +// list of ignored roles +sparql.predList = { "http://www.w3.org/2004/02/skos/core#narrower", + "http://www.w3.org/2002/07/owl#sameAs", + "http://xmlns.com/foaf/0.1/", + "http://dbpedia.org/property/reference", + "http://dbpedia.org/property/website", + "http://dbpedia.org/property/wikipage", + "http://dbpedia.org/property/wikiPageUsesTemplate"}; + +// list of ignored objects +sparql.objList = { "http://xmlns.com/foaf/0.1/", + "http://upload.wikimedia.org/wikipedia/commons", + "http://upload.wikimedia.org/wikipedia", + "http://www.geonames.org", + "http://www.w3.org/2006/03/wn/wn20/instances/synset", + "http://www4.wiwiss.fu-berlin.de/flickrwrappr", + "http://dbpedia.org/class/yago", + "http://dbpedia.org/resource/Template"}; + +//*********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; + +sparql.predefinedEndpoint = 1; + +// use DBpedia endpoint +import("http://dbpedia.openlinksw.com:8890/sparql","SPARQL2); + +// the set of objects as starting point for fragment selection +// (should be identical to the set of examples) +sparql2.instances = { + "http://dbpedia.org/resource/Angela_Merkel", + "http://dbpedia.org/resource/Helmut_Kohl" +}; + + +/** examples **/ ++"http://dbpedia.org/resource/Helmut_Kohl" +-"http://dbpedia.org/resource/Angela_Merkel" + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |