From: <and...@us...> - 2013-09-04 15:59:49
|
Revision: 4070 http://sourceforge.net/p/dl-learner/code/4070 Author: andremelo Date: 2013-09-04 15:59:46 +0000 (Wed, 04 Sep 2013) Log Message: ----------- Adding OWLOntology parameter to getRelevantText at AnnotationEntityTextRetriever and updating interface to include it Modified Paths: -------------- trunk/components-core/src/main/java/org/dllearner/algorithms/isle/textretrieval/AnnotationEntityTextRetriever.java trunk/components-core/src/main/java/org/dllearner/algorithms/isle/textretrieval/EntityTextRetriever.java trunk/protege/pom.xml Modified: trunk/components-core/src/main/java/org/dllearner/algorithms/isle/textretrieval/AnnotationEntityTextRetriever.java =================================================================== --- trunk/components-core/src/main/java/org/dllearner/algorithms/isle/textretrieval/AnnotationEntityTextRetriever.java 2013-09-04 15:58:20 UTC (rev 4069) +++ trunk/components-core/src/main/java/org/dllearner/algorithms/isle/textretrieval/AnnotationEntityTextRetriever.java 2013-09-04 15:59:46 UTC (rev 4070) @@ -96,7 +96,8 @@ * Returns for each entity in the ontology all relevant text, i.e. eitherthe annotations or the short form of the IRI as fallback. * @return */ - public Map<Entity, Set<String>> getRelevantText() { + @Override + public Map<Entity, Set<String>> getRelevantText(OWLOntology ontology) { Map<Entity, Set<String>> entity2RelevantText = new HashMap<Entity, Set<String>>(); Set<OWLEntity> schemaEntities = new HashSet<OWLEntity>(); Modified: trunk/components-core/src/main/java/org/dllearner/algorithms/isle/textretrieval/EntityTextRetriever.java =================================================================== --- trunk/components-core/src/main/java/org/dllearner/algorithms/isle/textretrieval/EntityTextRetriever.java 2013-09-04 15:58:20 UTC (rev 4069) +++ trunk/components-core/src/main/java/org/dllearner/algorithms/isle/textretrieval/EntityTextRetriever.java 2013-09-04 15:59:46 UTC (rev 4070) @@ -20,8 +20,10 @@ package org.dllearner.algorithms.isle.textretrieval; import java.util.Map; +import java.util.Set; import org.dllearner.core.owl.Entity; +import org.semanticweb.owlapi.model.OWLOntology; /** * Interface for methods, which retrieve relevant texts given an entity @@ -45,4 +47,6 @@ */ public Map<String, Double> getRelevantText(Entity entity); + public Map<Entity, Set<String>> getRelevantText(OWLOntology ontology); + } Modified: trunk/protege/pom.xml =================================================================== --- trunk/protege/pom.xml 2013-09-04 15:58:20 UTC (rev 4069) +++ trunk/protege/pom.xml 2013-09-04 15:59:46 UTC (rev 4070) @@ -164,5 +164,42 @@ </executions> </plugin> </plugins> + <pluginManagement> + <plugins> + <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> + <plugin> + <groupId>org.eclipse.m2e</groupId> + <artifactId>lifecycle-mapping</artifactId> + <version>1.0.0</version> + <configuration> + <lifecycleMappingMetadata> + <pluginExecutions> + <pluginExecution> + <pluginExecutionFilter> + <groupId> + org.apache.maven.plugins + </groupId> + <artifactId> + maven-dependency-plugin + </artifactId> + <versionRange> + [2.4,) + </versionRange> + <goals> + <goal> + copy-dependencies + </goal> + </goals> + </pluginExecutionFilter> + <action> + <ignore></ignore> + </action> + </pluginExecution> + </pluginExecutions> + </lifecycleMappingMetadata> + </configuration> + </plugin> + </plugins> + </pluginManagement> </build> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |