Revision: 3517
http://dl-learner.svn.sourceforge.net/dl-learner/?rev=3517&view=rev
Author: lorenz_b
Date: 2011-12-30 10:04:59 +0000 (Fri, 30 Dec 2011)
Log Message:
-----------
small change in score.
Modified Paths:
--------------
trunk/components-core/src/main/java/org/dllearner/algorithms/properties/EquivalentObjectPropertyAxiomLearner.java
Modified: trunk/components-core/src/main/java/org/dllearner/algorithms/properties/EquivalentObjectPropertyAxiomLearner.java
===================================================================
--- trunk/components-core/src/main/java/org/dllearner/algorithms/properties/EquivalentObjectPropertyAxiomLearner.java 2011-12-28 11:21:46 UTC (rev 3516)
+++ trunk/components-core/src/main/java/org/dllearner/algorithms/properties/EquivalentObjectPropertyAxiomLearner.java 2011-12-30 10:04:59 UTC (rev 3517)
@@ -130,7 +130,7 @@
//get subjects with types
int limit = 1000;
int offset = 0;
- String queryTemplate = "SELECT ?p COUNT(?s) AS ?count WHERE {?s ?p ?o." +
+ String queryTemplate = "SELECT ?p (COUNT(?s) AS ?count) WHERE {?s ?p ?o." +
"{SELECT ?s ?o WHERE {?s <%s> ?o.} LIMIT %d OFFSET %d}" +
"}";
String query;
@@ -178,7 +178,7 @@
properties.add(entry.getKey());
int popularity = reasoner.getPropertyCount(entry.getKey());
int total = popularity;//Math.max(popularity, all);
- int success = entry.getValue();//System.out.println(entry.getKey());System.out.println(total);System.out.println(success);
+ int success = entry.getValue();//System.out.println(entry.getKey());System.out.println(entry.getKey());System.out.println(total);System.out.println(success);
Score score = computeScore(total, success);
evalAxiom = new EvaluatedAxiom(new EquivalentObjectPropertiesAxiom(properties),score);
axioms.add(evalAxiom);
@@ -191,7 +191,7 @@
public static void main(String[] args) throws Exception{
EquivalentObjectPropertyAxiomLearner l = new EquivalentObjectPropertyAxiomLearner(new SparqlEndpointKS(new SparqlEndpoint(
new URL("http://dbpedia.aksw.org:8902/sparql"), Collections.singletonList("http://dbpedia.org"), Collections.<String>emptyList())));//.getEndpointDBpediaLiveAKSW()));
- l.setPropertyToDescribe(new ObjectProperty("http://dbpedia.org/ontology/thirdDriverCountry"));
+ l.setPropertyToDescribe(new ObjectProperty("http://dbpedia.org/ontology/state"));
l.setMaxExecutionTimeInSeconds(10);
l.init();
l.start();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|