From: <lor...@us...> - 2012-05-11 07:03:57
|
Revision: 3703 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=3703&view=rev Author: lorenz_b Date: 2012-05-11 07:03:50 +0000 (Fri, 11 May 2012) Log Message: ----------- Small bugfix. Modified Paths: -------------- trunk/components-core/src/main/java/org/dllearner/algorithms/properties/ObjectPropertyDomainAxiomLearner.java trunk/components-core/src/main/java/org/dllearner/algorithms/properties/ObjectPropertyRangeAxiomLearner.java Modified: trunk/components-core/src/main/java/org/dllearner/algorithms/properties/ObjectPropertyDomainAxiomLearner.java =================================================================== --- trunk/components-core/src/main/java/org/dllearner/algorithms/properties/ObjectPropertyDomainAxiomLearner.java 2012-05-11 05:49:23 UTC (rev 3702) +++ trunk/components-core/src/main/java/org/dllearner/algorithms/properties/ObjectPropertyDomainAxiomLearner.java 2012-05-11 07:03:50 UTC (rev 3703) @@ -190,14 +190,14 @@ ObjectPropertyDomainAxiomLearner l = new ObjectPropertyDomainAxiomLearner(ks); l.setReasoner(reasoner); - l.setPropertyToDescribe(new ObjectProperty("http://dbpedia.org/ontology/currency")); - l.setMaxExecutionTimeInSeconds(10); + l.setPropertyToDescribe(new ObjectProperty("http://dbpedia.org/ontology/creator")); + l.setMaxExecutionTimeInSeconds(40); l.addFilterNamespace("http://dbpedia.org/ontology/"); // l.setReturnOnlyNewAxioms(true); l.init(); l.start(); - System.out.println(l.getCurrentlyBestEvaluatedAxioms(10, 0.75)); + System.out.println(l.getCurrentlyBestEvaluatedAxioms(10, 0.3)); } } Modified: trunk/components-core/src/main/java/org/dllearner/algorithms/properties/ObjectPropertyRangeAxiomLearner.java =================================================================== --- trunk/components-core/src/main/java/org/dllearner/algorithms/properties/ObjectPropertyRangeAxiomLearner.java 2012-05-11 05:49:23 UTC (rev 3702) +++ trunk/components-core/src/main/java/org/dllearner/algorithms/properties/ObjectPropertyRangeAxiomLearner.java 2012-05-11 07:03:50 UTC (rev 3703) @@ -44,6 +44,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import com.hp.hpl.jena.query.ParameterizedSparqlString; import com.hp.hpl.jena.query.QuerySolution; import com.hp.hpl.jena.query.ResultSet; @@ -58,6 +59,7 @@ public ObjectPropertyRangeAxiomLearner(SparqlEndpointKS ks){ this.ks = ks; + super.iterativeQueryTemplate = new ParameterizedSparqlString("SELECT DISTINCT ?ind ?type WHERE {?s ?p ?ind. ?ind a ?type.}"); } public ObjectProperty getPropertyToDescribe() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |