Mentions légales du service

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

when no ontology element and no default namespace are defined then it use the...

when no ontology element and no default namespace are defined then it use the ontology URL as ontology URI.
parent bf3fc6e2
No related branches found
No related tags found
No related merge requests found
......@@ -91,8 +91,10 @@ public class JENAOntologyFactory extends OntologyFactory {
try {
onto.setURI(new URI(m.listOntologies().next().getURI()));
} catch (NoSuchElementException nse) {
onto.setURI(new URI(m.getNsPrefixURI("")));
//onto.setFile(uri);
if (m.getNsPrefixURI("")!=null)
onto.setURI(new URI(m.getNsPrefixURI("")));
else
onto.setURI(uri);
}
//onto.setURI(new URI(m.listOntologies()getOntology(null).getURI()));
onto.setOntology(m);
......
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