From 14799e787e0ac2624bfc9279a27925b1886908b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr> Date: Sat, 19 Nov 2011 15:44:55 +0000 Subject: [PATCH] - added comments --- src/fr/inrialpes/exmo/ontowrap/LoadedOntology.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/fr/inrialpes/exmo/ontowrap/LoadedOntology.java b/src/fr/inrialpes/exmo/ontowrap/LoadedOntology.java index b1ee5e5b..72e2304b 100644 --- a/src/fr/inrialpes/exmo/ontowrap/LoadedOntology.java +++ b/src/fr/inrialpes/exmo/ontowrap/LoadedOntology.java @@ -28,8 +28,21 @@ import fr.inrialpes.exmo.ontowrap.util.FilteredSet; public interface LoadedOntology<O> extends Ontology<O> { + /** + * returns the entity corresponding to the given URI + * If no such entity exists, may return null or raise an exception + * @param u an URI + * @return the corresponding entity in the ontology or null + * @throws OntowrapException when an exception has been caught + */ public Object getEntity( URI u ) throws OntowrapException; + /** + * returns the URI of an entity in the ontology + * @param o the entity + * @return its URI if it exists or null + * @throws OntowrapException when an exception has been caught + */ public URI getEntityURI( Object o ) throws OntowrapException; /** -- GitLab