Revision: 17141
http://sourceforge.net/p/gate/code/17141
Author: valyt
Date: 2013-11-29 15:39:42 +0000 (Fri, 29 Nov 2013)
Log Message:
-----------
If the NS separator is "/" then we'd want the last occurrence, not the first.
Modified Paths:
--------------
mimir/trunk/mimir-core/src/gate/mimir/util/OntologyMentionDescriber.java
Modified:
mimir/trunk/mimir-core/src/gate/mimir/util/OntologyMentionDescriber.java
===================================================================
--- mimir/trunk/mimir-core/src/gate/mimir/util/OntologyMentionDescriber.java
2013-11-29 15:33:16 UTC (rev 17140)
+++ mimir/trunk/mimir-core/src/gate/mimir/util/OntologyMentionDescriber.java
2013-11-29 15:39:42 UTC (rev 17141)
@@ -119,7 +119,7 @@
protected String getName(String uri) {
if(localNamesOnly) {
// we need to shorten the full name
- int pos = uri.indexOf(nameSpaceSeparator);
+ int pos = uri.lastIndexOf(nameSpaceSeparator);
return pos < 0 ? uri : uri.substring(pos + nameSpaceSeparator.length());
} else {
return uri;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs