From: <ku...@us...> - 2007-08-29 09:23:22
|
Revision: 104 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=104&view=rev Author: kurzum Date: 2007-08-29 02:23:17 -0700 (Wed, 29 Aug 2007) Log Message: ----------- sparql module.txt updated dbpedia examples Modified Paths: -------------- trunk/doc/sparqlModule.txt trunk/examples/dbpedia/SilentBob.conf trunk/examples/dbpedia/SilentBobWorking1.conf trunk/examples/dbpedia/SilentBobWorking2.conf Modified: trunk/doc/sparqlModule.txt =================================================================== --- trunk/doc/sparqlModule.txt 2007-08-29 09:15:29 UTC (rev 103) +++ trunk/doc/sparqlModule.txt 2007-08-29 09:23:17 UTC (rev 104) @@ -1,5 +1,70 @@ +SPARQL-module +The SPARQL module is integrated into the DL-Learner and cannot be run alone any more. +You can just ignore the second part of this file, although it might describe some things +in more detail. + +Here are some things that have to be included in the .conf file +to get a working example: + +loadJarFile("lib/modules/sparqlModule.jar"); +runPreprocessingModule("org.dllearner.modules.SparqlModule"); + +Options: +======== + +sparqlModule.numberOfRecursion = 2; +(range: 1-3) +Influences how deep the Ontology will be cut out +Default: not sure 2 at the moment +1: means only the selected individuals are loaded +2: adds classes of the individuals and properties +3: adds classes of properties of individuals and superclasses of classes + + +sparqlModule.filterMode = 0; +(range 0-2) +These are presets for SPARQL filters (see below for configurations) +0 only yago classes +1 only categories +2 skos and categories + + +With the next options SPARQL filters can be configured in more detail. +USE EITHER THIS or the filtermode above. + +sparqlModule.sparqlPredicateFilterList={"http://www.w3.org/2004/02/skos/core", + "http://xmlns.com/foaf/0.1/", + "http://dbpedia.org/property/wikipage-", + "http://www.w3.org/2002/07/owl#sameAs", + "http://dbpedia.org/property/reference"}; + +sparqlModule.sparqlObjectFilterList={"http://dbpedia.org/resource/Category:Articles_", + "http://dbpedia.org/resource/Category:Wikipedia_", + "http://xmlns.com/foaf/0.1/", + "http://dbpedia.org/resource/Category", + "http://dbpedia.org/resource/Template", + "http://upload.wikimedia.org/wikipedia/commons"}; + + +With the next option you can state namespaces that shall be typed as classes: +sparqlModule.classList={"http://dbpedia.org/class/yago", + "http://dbpedia.org/resource/Category:", + "http://dbpedia.org/resource/Template:", + "http://www.w3.org/2004/02/skos/core", + "http://dbpedia.org/class/"}; + +Hint: You can maybe export the ontology with the help of kaon2 in rdf format using: +export("file.owl"); +But it is untested. + + + +Attention******************************************* +below is a description of how to run the sparql module as a standalone application +this was disabled though and does NOT work at the moment + Algorithm: ========= Modified: trunk/examples/dbpedia/SilentBob.conf =================================================================== --- trunk/examples/dbpedia/SilentBob.conf 2007-08-29 09:15:29 UTC (rev 103) +++ trunk/examples/dbpedia/SilentBob.conf 2007-08-29 09:23:17 UTC (rev 104) @@ -39,10 +39,10 @@ 12 Klassen f�r objects und properties of objects 13 Klassen f�r properties of objects und superklassen von klassen **/ -gp.numberOfIndividuals = 13; +sparqlModule.numberOfRecursion = 3; // nur yago =0 , nur category = 1 // sollte nicht mit aufgenommen werden eher 3 listen mit uris -gp.crossoverPercent = 1; +sparqlModule.filterMode = 1; Modified: trunk/examples/dbpedia/SilentBobWorking1.conf =================================================================== --- trunk/examples/dbpedia/SilentBobWorking1.conf 2007-08-29 09:15:29 UTC (rev 103) +++ trunk/examples/dbpedia/SilentBobWorking1.conf 2007-08-29 09:23:17 UTC (rev 104) @@ -37,10 +37,10 @@ 12 Klassen fr objects und properties of objects 13 Klassen fr properties of objects und superklassen von klassen **/ -gp.numberOfIndividuals = 13; +sparqlModule.numberOfRecursion = 3; // nur yago =0 , nur category = 1 nur skos+cat =2 // sollte nicht mit aufgenommen werden eher 3 listen mit uris -gp.crossoverPercent = 0; +sparqlModule.filterMode = 0; // 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 Modified: trunk/examples/dbpedia/SilentBobWorking2.conf =================================================================== --- trunk/examples/dbpedia/SilentBobWorking2.conf 2007-08-29 09:15:29 UTC (rev 103) +++ trunk/examples/dbpedia/SilentBobWorking2.conf 2007-08-29 09:23:17 UTC (rev 104) @@ -37,10 +37,10 @@ 12 Klassen f�r objects und properties of objects 13 Klassen f�r properties of objects und superklassen von klassen **/ -gp.numberOfIndividuals = 13; +sparqlModule.numberOfRecursion = 3; // nur yago =0 , nur category = 1 nur skos+cat =2 // sollte nicht mit aufgenommen werden eher 3 listen mit uris -gp.crossoverPercent = 2; +sparqlModule.filterMode = 2; // hier sind alternativen zum ausklammern This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |