Revision: 326
http://dl-learner.svn.sourceforge.net/dl-learner/?rev=326&view=rev
Author: kurzum
Date: 2007-12-05 04:45:39 -0800 (Wed, 05 Dec 2007)
Log Message:
-----------
difference between Angela Merkel and gerhard Schr?\195?\182der
Added Paths:
-----------
trunk/examples/sparql/simpleSKOS_angela.conf
trunk/examples/sparql/simpleSKOS_gerhard.conf
Added: trunk/examples/sparql/simpleSKOS_angela.conf
===================================================================
--- trunk/examples/sparql/simpleSKOS_angela.conf (rev 0)
+++ trunk/examples/sparql/simpleSKOS_angela.conf 2007-12-05 12:45:39 UTC (rev 326)
@@ -0,0 +1,95 @@
+/**
+ * Simple example for using a SPARQL Endpoint as background
+ * knowledge.
+ * Solutions:
+ http://dbpedia.org/resource/Category:Business (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Business_executives (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Businesspeople (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Categories (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Christians_by_occupation%7CPoliticans (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Cities (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Cities_by_country%7CGermany (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Cities_in_Germany%7C (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Determinants_of_health (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Employment (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Former_countries_by_continent%7CEurope%2C_Former_countries_in (length 1, depth 1)
+ http://dbpedia.org/resource/Category:German_people_by_occupation%7CScientists (length 1, depth 1)
+ http://dbpedia.org/resource/Category:German_people_by_state%7CHamburg (length 1, depth 1)
+ http://dbpedia.org/resource/Category:German_politicians_by_party%7CChristian_Democrat (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Guilds (length 1, depth 1)
+ http://dbpedia.org/resource/Category:History_of_Europe%7C (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Human_resource_management (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Humans (length 1, depth 1)
+ http://dbpedia.org/resource/Category:International_trade_organizations (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Late_Middle_Ages (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Lutherans_by_profession%7CPoliticians (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Monopolies (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Municipalities_of_Germany (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Occupations%7C_People_by_occupation (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Organizations (length 1, depth 1)
+ http://dbpedia.org/resource/Category:People%7COccupations (length 1, depth 1)
+ http://dbpedia.org/resource/Category:People_by_city_in_Germany%7CHamburg (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Political_movements%7CParties (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Political_office-holders%7C%2ARole (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Political_organizations%7CParties (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Politicians_by_religion (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Politics%7CParties (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Positions_of_authority (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Protestants_by_occupation%7CPoliticians (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Science_and_technology_in_Germany%7CScientists (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Settlements_in_Germany (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Social_groups (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Social_institutions (length 1, depth 1)
+ http://dbpedia.org/resource/Category:States_of_Germany%7C (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Titles%7C (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Women_by_occupation%7CPolitics (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Women_rulers%7CHeads_of_government%2C_female (length 1, depth 1)
+
+ */
+
+// recursion depth of extraction algorithm
+sparql2.recursionDepth = 2;
+
+// list of ignored roles
+sparql2.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
+sparql2.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"};
+
+// replace skos with owl properties
+sparql2.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
+// greatly influences the amount of answers retrieved
+sparql2.breakSuperClassRetrievalAfter=300;
+
+
+// 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/Gerhard_Schr%C3%B6der"
+};
+
+sparql2.example = [(a,b),(c,d)];
+
+/** examples **/
++"http://dbpedia.org/resource/Angela_Merkel"
+-"http://dbpedia.org/resource/Gerhard_Schr%C3%B6der"
Added: trunk/examples/sparql/simpleSKOS_gerhard.conf
===================================================================
--- trunk/examples/sparql/simpleSKOS_gerhard.conf (rev 0)
+++ trunk/examples/sparql/simpleSKOS_gerhard.conf 2007-12-05 12:45:39 UTC (rev 326)
@@ -0,0 +1,95 @@
+/**
+ * Simple example for using a SPARQL Endpoint as background
+ * knowledge.
+ * Solutions:
+ with 500 classes
+ http://dbpedia.org/resource/Category:Ancient_Roman_allies%7CGermanic (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Ancient_Roman_enemies%7CGermanic (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Ancient_Roman_enemies_and_allies%7C_Allies (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Ancient_Roman_enemies_and_allies%7C_Enemies (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Ancient_history%7CGermanic_peoples (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Ancient_peoples%7CGermanic (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Award_winners%7CStar_of_Romania (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Awards_and_decorations_of_Romania%7CMilitary_decorations (length 1, depth 1)
+ http://dbpedia.org/resource/Category:German_people%7CAdoptive_parents (length 1, depth 1)
+ http://dbpedia.org/resource/Category:German_people_by_state%7CNorth_Rhine-Westphalia (length 1, depth 1)
+ http://dbpedia.org/resource/Category:German_politicians_by_party%7CSocial_Democratic_Party (length 1, depth 1)
+ http://dbpedia.org/resource/Category:German_socialists%7CSocial_Democrat (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Germanic_peoples (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Germany%7CHistory (length 1, depth 1)
+ http://dbpedia.org/resource/Category:History_by_country%7CGermany (length 1, depth 1)
+ http://dbpedia.org/resource/Category:History_by_country%7CUnited_Kingdom (length 1, depth 1)
+ http://dbpedia.org/resource/Category:History_by_ethnic_group (length 1, depth 1)
+ http://dbpedia.org/resource/Category:History_of_Europe%7CGermanic (length 1, depth 1)
+ http://dbpedia.org/resource/Category:History_of_Europe%7CGermany (length 1, depth 1)
+ http://dbpedia.org/resource/Category:History_of_Europe%7CUnited_Kingdom (length 1, depth 1)
+ http://dbpedia.org/resource/Category:History_of_German_states%7CLower_Saxony (length 1, depth 1)
+ http://dbpedia.org/resource/Category:History_of_the_Germanic_peoples%7C (length 1, depth 1)
+ http://dbpedia.org/resource/Category:History_of_the_Netherlands (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Iron_Age_Europe%7CGermanic_peoples (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Migration_Period%7CGermanic (length 1, depth 1)
+ http://dbpedia.org/resource/Category:People_from_Lower_Saxony%7C (length 1, depth 1)
+ http://dbpedia.org/resource/Category:People_from_Saxony%7C (length 1, depth 1)
+ http://dbpedia.org/resource/Category:People_from_Saxony-Anhalt%7C (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Romanian_society%7CDecorations (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Social_democrats%7CPoliticians_of_the_Social_Democratic_Party_of_Germany (length 1, depth 1)
+ http://dbpedia.org/resource/Category:United_Kingdom (length 1, depth 1)pth 1)
+
+with 200 classes
+http://dbpedia.org/resource/Category:Award_winners%7CStar_of_Romania (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Awards_and_decorations_of_Romania%7CMilitary_decorations (length 1, depth 1)
+ http://dbpedia.org/resource/Category:German_people%7CAdoptive_parents (length 1, depth 1)
+ http://dbpedia.org/resource/Category:German_people_by_state%7CNorth_Rhine-Westphalia (length 1, depth 1)
+ http://dbpedia.org/resource/Category:German_politicians_by_party%7CSocial_Democratic_Party (length 1, depth 1)
+ http://dbpedia.org/resource/Category:German_socialists%7CSocial_Democrat (length 1, depth 1)
+ http://dbpedia.org/resource/Category:History_of_German_states%7CLower_Saxony (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Romanian_society%7CDecorations (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Saxons (length 1, depth 1)
+ http://dbpedia.org/resource/Category:Social_democrats%7CPoliticians_of_the_Social_Democratic_Party_of_Germany (length 1, depth 1)
+ */
+
+// recursion depth of extraction algorithm
+sparql2.recursionDepth = 2;
+
+// list of ignored roles
+sparql2.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
+sparql2.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"};
+
+// replace skos with owl properties
+sparql2.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
+sparql2.breakSuperClassRetrievalAfter=200;
+
+
+// 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/Gerhard_Schr%C3%B6der"
+};
+
+sparql2.example = [(a,b),(c,d)];
+
+/** examples **/
+-"http://dbpedia.org/resource/Angela_Merkel"
++"http://dbpedia.org/resource/Gerhard_Schr%C3%B6der"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|