From be1b7d257bcff4863f664e139ad83cbd1af75bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20David?= <Jerome.David@univ-grenoble-alpes.fr> Date: Tue, 25 Nov 2008 14:45:46 +0000 Subject: [PATCH] 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. --- src/fr/inrialpes/exmo/align/onto/owlapi10/OWLAPIOntology.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/inrialpes/exmo/align/onto/owlapi10/OWLAPIOntology.java b/src/fr/inrialpes/exmo/align/onto/owlapi10/OWLAPIOntology.java index 05af7d13..8eee9c6a 100644 --- a/src/fr/inrialpes/exmo/align/onto/owlapi10/OWLAPIOntology.java +++ b/src/fr/inrialpes/exmo/align/onto/owlapi10/OWLAPIOntology.java @@ -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); } } -- GitLab