diff --git a/src/fr/inrialpes/exmo/ontowrap/jena25/JENAOntology.java b/src/fr/inrialpes/exmo/ontowrap/jena25/JENAOntology.java index abf90c7aa471d00aae69ef729e32945742de3d0c..08aa16b6827cab86e12eb1af3ce5941fcc20b33d 100644 --- a/src/fr/inrialpes/exmo/ontowrap/jena25/JENAOntology.java +++ b/src/fr/inrialpes/exmo/ontowrap/jena25/JENAOntology.java @@ -93,8 +93,8 @@ public class JENAOntology extends BasicOntology<OntModel> implements HeavyLoaded Literal l =obj.as(Literal.class); annots.add(new Annotation(l.getLexicalForm(),l.getLanguage())); } - else if (obj.isResource()) { - getEntityAnnotations(obj, annots); + else if (obj.isResource() && !obj.equals(st.getSubject())) { + getEntityAnnotations(obj, annots); } } }