Class SemanticIndexURIMap
- java.lang.Object
-
- it.unibz.inf.ontop.si.repository.impl.SemanticIndexURIMap
-
- All Implemented Interfaces:
IRIDictionary
public class SemanticIndexURIMap extends Object implements IRIDictionary
-
-
Constructor Summary
Constructors Constructor Description SemanticIndexURIMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetId(String uri)We look for the ID in the list of IDs, if its not there, we return -2, which we know will never appear on the DB.StringgetURI(Integer id)StringtoString()
-
-
-
Method Detail
-
getId
public int getId(String uri)
We look for the ID in the list of IDs, if its not there, we return -2, which we know will never appear on the DB. This is correct because if a constant appears in a query, and that constant was never inserted in the DB, the query must be empty (that atom), by putting -2 as id, we will enforce that.- Specified by:
getIdin interfaceIRIDictionary- Parameters:
uri-- Returns:
-
getURI
public String getURI(Integer id)
- Specified by:
getURIin interfaceIRIDictionary
-
-