299 | | if ( linkedClassURI == null ){ |
300 | | return ""; |
301 | | } |
302 | | for ( int i = 0 ; i < classes.length; i++ ){ |
303 | | if ( linkedClassURI.equals(classes[i].getClassURI()) ){ |
304 | | Label[] labels = classes[i].getLabels(); |
305 | | for ( int j = 0 ; j < labels.length; j++ ){ |
306 | | if ( labels[j].getLanguage() == null ){ |
307 | | return labels[j].getLabel(); |
308 | | }else if ( labels[j].getLanguage().equals("en") ){ |
309 | | return labels[j].getLabel(); |
310 | | } |
311 | | } |
312 | | break; |
313 | | } |
314 | | } |
315 | | String[] url = linkedClassURI.split("/"); |
316 | | String tmplabel = url[url.length-1]; |
317 | | String[] tmplabel2 = tmplabel.split("#"); |
318 | | String label = tmplabel2[tmplabel2.length-1]; |
319 | | return label; |
| 299 | return QueryPathGenerator.getClassLabel(linkedClassURI, classes); |