Package org.aksw.limes.core.io.config
Class KBInfo
- java.lang.Object
-
- org.aksw.limes.core.io.config.KBInfo
-
- All Implemented Interfaces:
Serializable
public class KBInfo extends Object implements Serializable
Contains the information necessary to access a knowledge base- Version:
- Jul 12, 2016
- Author:
- Mohamed Sherif (sherif@informatik.uni-leipzig.de)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringendpointprotected LinkedHashMap<String,Map<String,String>>functionsprotected Stringgraphprotected Stringidprotected intmaxoffsetprotected intminoffsetprotected List<String>optionalPropertiesprotected intpageSizeprotected Map<String,String>prefixesprotected List<String>propertiesprotected ArrayList<String>restrictionsprotected Stringtypeprotected Stringvar
-
Constructor Summary
Constructors Constructor Description KBInfo()ConstructorKBInfo(String var)KBInfo(String id, String endpoint, String graph, String var, List<String> properties, List<String> optionalProperties, ArrayList<String> restrictions, LinkedHashMap<String,Map<String,String>> functions, Map<String,String> prefixes, int pageSize, String type)KBInfo(String id, String endpoint, String graph, String var, List<String> properties, List<String> optionalProperties, ArrayList<String> restrictions, LinkedHashMap<String,Map<String,String>> functions, Map<String,String> prefixes, int pageSize, String type, int minoffset, int maxoffset)
-
Method Summary
-
-
-
Field Detail
-
id
protected String id
-
endpoint
protected String endpoint
-
graph
protected String graph
-
var
protected String var
-
functions
protected LinkedHashMap<String,Map<String,String>> functions
-
pageSize
protected int pageSize
-
type
protected String type
-
maxoffset
protected int maxoffset
-
minoffset
protected int minoffset
-
-
Constructor Detail
-
KBInfo
public KBInfo()
Constructor
-
KBInfo
public KBInfo(String var)
- Parameters:
var- variable name
-
KBInfo
public KBInfo(String id, String endpoint, String graph, String var, List<String> properties, List<String> optionalProperties, ArrayList<String> restrictions, LinkedHashMap<String,Map<String,String>> functions, Map<String,String> prefixes, int pageSize, String type)
-
KBInfo
public KBInfo(String id, String endpoint, String graph, String var, List<String> properties, List<String> optionalProperties, ArrayList<String> restrictions, LinkedHashMap<String,Map<String,String>> functions, Map<String,String> prefixes, int pageSize, String type, int minoffset, int maxoffset)
-
-
Method Detail
-
getId
public String getId()
-
setId
public void setId(String id)
-
getEndpoint
public String getEndpoint()
-
setEndpoint
public void setEndpoint(String endpoint)
-
getGraph
public String getGraph()
-
setGraph
public void setGraph(String graph)
-
getVar
public String getVar()
-
setVar
public void setVar(String var)
-
addRestriction
public void addRestriction(String restriction)
-
addProperty
public void addProperty(String property)
-
addOptionalProperty
public void addOptionalProperty(String optionalProperty)
-
getFunctions
public LinkedHashMap<String,Map<String,String>> getFunctions()
-
setFunctions
public void setFunctions(LinkedHashMap<String,Map<String,String>> functions)
-
getPageSize
public int getPageSize()
-
setPageSize
public void setPageSize(int pageSize)
-
getType
public String getType()
-
setType
public void setType(String type)
-
setMaxOffset
public void setMaxOffset(int maxoffset)
-
getMaxOffset
public int getMaxOffset()
-
setMinOffset
public void setMinOffset(int minoffset)
-
getMinOffset
public int getMinOffset()
-
toString
public String toString()
-
hashCode
public int hashCode()
Compute a hash code for the knowledge base encoded by this KBInfo. Allow the hybrid cache to cache and retrieve the content of remote knowledge bases on the hard drive for the user's convenience
-
getClassOfendpoint
public String getClassOfendpoint()
Returns the class contained in the restriction- Returns:
- Class label
-
getClassOfendpoint
public String getClassOfendpoint(boolean expanded)
Returns the class contained in the restriction- Parameters:
expanded- is expanded- Returns:
- Class label
-
getClassRestriction
public String getClassRestriction()
Returns class URI if restriction to a rdf:type exists- Returns:
- class restriction string
-
afterPropertiesSet
public void afterPropertiesSet()
-
-