Mentions légales du service

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

Correction of method protected Set<?> getEntities(Class<? extends OWLEntity>...

Correction of method protected Set<?> getEntities(Class<? extends OWLEntity> c) throws OWLException; Now it allows to return entities having an URI which does not contain the Ontology URI.
parent 606c9071
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,7 @@ public class OWLAPIOntology extends BasicOntology<OWLOntology> implements HeavyL
Set<Object> entities = new HashSet<Object>();
for (Object obj : ec.entities()) {
// JD: OWLEntitytCollector seems to return anonymous entities :&& ((OWLEntity)obj).getURI()!=null
if (c.isInstance(obj) && ((OWLEntity) obj).getURI()!=null &&((OWLEntity) obj).getURI().toString().startsWith(onto.getURI().toString()) ){
if (c.isInstance(obj) && ((OWLEntity) obj).getURI()!=null) { // &&((OWLEntity) obj).getURI().toString().startsWith(onto.getURI().toString()) ){
entities.add(obj);
}
}
......
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