Mentions légales du service

Skip to content
Snippets Groups Projects
Commit d241c66b authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- implemented getEntityName

parent 954f09fc
No related branches found
No related tags found
No related merge requests found
...@@ -78,8 +78,14 @@ public class JENAOntology extends BasicOntology<OntModel> implements LoadedOntol ...@@ -78,8 +78,14 @@ public class JENAOntology extends BasicOntology<OntModel> implements LoadedOntol
public String getEntityName(Object o) throws AlignmentException { public String getEntityName(Object o) throws AlignmentException {
// TODO Auto-generated method stub try {
return null; // Try to get labels first... (done in the OWLAPI way)
URI u = new URI(((OntResource) o).getURI());
if ( u != null ) return u.getFragment();
else return "";
} catch (Exception oex) {
return null;
}
} }
public Set<String> getEntityNames(Object o, String lang) throws AlignmentException { public Set<String> getEntityNames(Object o, String lang) throws AlignmentException {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment