|
From: <ku...@us...> - 2008-10-13 11:05:29
|
Revision: 1370
http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1370&view=rev
Author: kurzum
Date: 2008-10-13 11:05:08 +0000 (Mon, 13 Oct 2008)
Log Message:
-----------
small changes fixed lymphography
Modified Paths:
--------------
trunk/examples/lymphography/lymphography_Class1.conf
trunk/examples/lymphography/lymphography_Class2.conf
trunk/examples/lymphography/lymphography_Class3.conf
trunk/examples/lymphography/lymphography_Class4.conf
trunk/examples/sparql/README.txt
trunk/examples/sparql/SKOSTEST_local.conf
trunk/examples/sparql/scrobble.conf
trunk/src/dl-learner/org/dllearner/kb/extraction/InstanceNode.java
Property Changed:
----------------
trunk/examples/sparql/
Modified: trunk/examples/lymphography/lymphography_Class1.conf
===================================================================
--- trunk/examples/lymphography/lymphography_Class1.conf 2008-10-13 09:34:50 UTC (rev 1369)
+++ trunk/examples/lymphography/lymphography_Class1.conf 2008-10-13 11:05:08 UTC (rev 1370)
@@ -17,16 +17,17 @@
*/
-refinement.ignoredConcepts = {
+algorithm = refexamples;
+refexamples.ignoredConcepts = {
"http://www.example.org/lymphography#Target1_NormalFind",
"http://www.example.org/lymphography#Target2_Metastases",
"http://www.example.org/lymphography#Target3_MalignLymph",
"http://www.example.org/lymphography#Target4_Fibrosis"
};
-refinement.useAllConstructor = false;
-refinement.useExistsConstructor = true;
-refinement.useNegation = false;
+refexamples.useAllConstructor = false;
+refexamples.useExistsConstructor = true;
+refexamples.useNegation = false;
import("lymphography.owl");
/*Class1*/
Modified: trunk/examples/lymphography/lymphography_Class2.conf
===================================================================
--- trunk/examples/lymphography/lymphography_Class2.conf 2008-10-13 09:34:50 UTC (rev 1369)
+++ trunk/examples/lymphography/lymphography_Class2.conf 2008-10-13 11:05:08 UTC (rev 1370)
@@ -15,16 +15,18 @@
a new experimental version of the refinement algorithm)
*/
-refinement.ignoredConcepts = {
+algorithm = refexamples;
+refexamples.ignoredConcepts = {
"http://www.example.org/lymphography#Target1_NormalFind",
"http://www.example.org/lymphography#Target2_Metastases",
"http://www.example.org/lymphography#Target3_MalignLymph",
"http://www.example.org/lymphography#Target4_Fibrosis"
};
-refinement.useAllConstructor = false;
-refinement.useExistsConstructor = true;
-refinement.useNegation = false;
+refexamples.useAllConstructor = false;
+refexamples.useExistsConstructor = true;
+refexamples.useNegation = false;
+refexamples.noisePercentage = 13.0;
import("lymphography.owl");
Modified: trunk/examples/lymphography/lymphography_Class3.conf
===================================================================
--- trunk/examples/lymphography/lymphography_Class3.conf 2008-10-13 09:34:50 UTC (rev 1369)
+++ trunk/examples/lymphography/lymphography_Class3.conf 2008-10-13 11:05:08 UTC (rev 1370)
@@ -17,16 +17,18 @@
*/
-refinement.ignoredConcepts = {
+algorithm = refexamples;
+refexamples.ignoredConcepts = {
"http://www.example.org/lymphography#Target1_NormalFind",
"http://www.example.org/lymphography#Target2_Metastases",
"http://www.example.org/lymphography#Target3_MalignLymph",
"http://www.example.org/lymphography#Target4_Fibrosis"
};
-refinement.useAllConstructor = false;
-refinement.useExistsConstructor = true;
-refinement.useNegation = false;
+refexamples.useAllConstructor = false;
+refexamples.useExistsConstructor = true;
+refexamples.useNegation = false;
+refexamples.noisePercentage = 19.0;
import("lymphography.owl");
/*Class3*/
Modified: trunk/examples/lymphography/lymphography_Class4.conf
===================================================================
--- trunk/examples/lymphography/lymphography_Class4.conf 2008-10-13 09:34:50 UTC (rev 1369)
+++ trunk/examples/lymphography/lymphography_Class4.conf 2008-10-13 11:05:08 UTC (rev 1370)
@@ -15,6 +15,8 @@
a new experimental version of the refinement algorithm)
*/
+algorithm = refexamples;
+
refexamples.ignoredConcepts = {
"http://www.example.org/lymphography#Target1_NormalFind",
"http://www.example.org/lymphography#Target2_Metastases",
@@ -23,8 +25,8 @@
};
refexamples.useAllConstructor = false;
-refexamples.useExistsConstructor = false;
-refexamples.useNegation = true;
+refexamples.useExistsConstructor = true;
+refexamples.useNegation = false;
import("lymphography.owl");
Property changes on: trunk/examples/sparql
___________________________________________________________________
Added: svn:ignore
+ musicbrainz.conf
Modified: trunk/examples/sparql/README.txt
===================================================================
--- trunk/examples/sparql/README.txt 2008-10-13 09:34:50 UTC (rev 1369)
+++ trunk/examples/sparql/README.txt 2008-10-13 11:05:08 UTC (rev 1370)
@@ -3,3 +3,29 @@
When using the SPARQL component, files are written into the directory /cache to
avoid performing the same queries more than once.
+
+
+***predefined Filters
+all predefined filters remove references to hompage, etc during the extraction
+YAGO allows yago,
+SKOS allows skos,
+YAGOSKOS, allows yago and skos,
+YAGOONLY allows yago classes only, no skos , no umbel
+
+***predefined Endpoints
+List of values available for
+sparql.predefinedEndpoint("DBPEDIA"); (replace DBPEDIA)
+Most of them are not used in any examples, but are available.
+DBPEDIA the global DBpedia endpoint http://dbpedia.openlinksw.com:8890/sparql
+LOCALDBPEDIA a local mirror of DBpedia running at aksw.org http://139.18.2.37:8890/sparql
+LOCALJOSECKI a local joseki store, url pointing at "http://localhost:2020/books"
+LOCALJOSEKIBIBLE a local joseki store, url pointing at "http://localhost:2020/bible"
+GOVTRACK www.govtrack.us | sparql: http://www.rdfabout.com/sparql
+MUSICBRAINZ http://dbtune.org/musicbrainz/sparql
+SPARQLETTE
+SWCONFERENCE
+REVYU
+MYOPENLINK
+FACTBOOK
+DBLP
+
Modified: trunk/examples/sparql/SKOSTEST_local.conf
===================================================================
--- trunk/examples/sparql/SKOSTEST_local.conf 2008-10-13 09:34:50 UTC (rev 1369)
+++ trunk/examples/sparql/SKOSTEST_local.conf 2008-10-13 11:05:08 UTC (rev 1370)
@@ -1,16 +1,20 @@
/**
- * Some people from Greece.
+ * Some people which are/were Prime Ministers of the UK and some random negative Examples.
* Note: DBpedia is always subject to change, solutions will change over time
- * Possible Solution:
- * Theorist OR (Mathematician AND Physicist)
+ * Possible Solutions:
+
+1: (http://dbpedia.org/class/yago/PrimeMinistersOfTheUnitedKingdom OR EXISTS http://dbpedia.org/property/termStart.TOP) (length 5, depth 3)
+2: (http://dbpedia.org/class/yago/LeadersOfTheBritishConservativeParty OR EXISTS http://dbpedia.org/property/termStart.TOP) (length 5, depth 3)
+
*
*/
// SPARQL options
sparql.recursionDepth = 1;
-//predefined filter (1 = YAGO based learning)
+
+//for a list of predefined Filters and Endpoints see examples/sparql/README.txt
sparql.predefinedFilter = "YAGO";
sparql.predefinedEndpoint = "LOCALDBPEDIA";
@@ -65,4 +69,4 @@
+"http://dbpedia.org/resource/Anthony_Eden"
+"http://dbpedia.org/resource/Anthony_Eden_hat"
+"http://dbpedia.org/resource/Archibald_Primrose%2C_5th_Earl_of_Rosebery"
-+"http://dbpedia.org/resource/Arthur_Balfour"
\ No newline at end of file
++"http://dbpedia.org/resource/Arthur_Balfour"
Modified: trunk/examples/sparql/scrobble.conf
===================================================================
--- trunk/examples/sparql/scrobble.conf 2008-10-13 09:34:50 UTC (rev 1369)
+++ trunk/examples/sparql/scrobble.conf 2008-10-13 11:05:08 UTC (rev 1370)
@@ -18,6 +18,7 @@
sparql.recursionDepth = 3;
sparql.predefinedEndpoint = "MUSICBRAINZ";
+sparql.saveExtractedFragment = true;
algorithm = refexamples;
refexamples.useNegation = false;
Modified: trunk/src/dl-learner/org/dllearner/kb/extraction/InstanceNode.java
===================================================================
--- trunk/src/dl-learner/org/dllearner/kb/extraction/InstanceNode.java 2008-10-13 09:34:50 UTC (rev 1369)
+++ trunk/src/dl-learner/org/dllearner/kb/extraction/InstanceNode.java 2008-10-13 11:05:08 UTC (rev 1370)
@@ -90,7 +90,13 @@
}else if(tuple.b.isAnon()){
@SuppressWarnings("unused")
RDFBlankNode n = (RDFBlankNode) tuple.b;
- logger.warn("encountered Bnode in InstanceNode"+ this +"in tuple" + tuple);
+ if(tuple.a.toString().equals(OWLVocabulary.RDF_TYPE)){
+ logger.warn("blanknodes for instances not implemented yet (rare frequency). e.g. (instance rdf:type (A and B)"+" " + this+ " in tuple "+tuple);
+ }
+ else{
+ logger.warn("encountered Bnode in InstanceNode "+ this +" in tuple " + tuple);
+ logger.warn("In OWL-DL the subject of an object property assertion must be an instance (not a class). Triple will be ignored.");
+ }
return null;
// basically : if p is rdf:type then o is a class
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|