Class 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
    • 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)
      • getProperties

        public List<String> getProperties()
      • setProperties

        public void setProperties​(List<String> properties)
      • getOptionalProperties

        public List<String> getOptionalProperties()
      • setOptionalProperties

        public void setOptionalProperties​(List<String> optionalProperties)
      • setRestrictions

        public void setRestrictions​(ArrayList<String> restrictions)
      • addRestriction

        public void addRestriction​(String restriction)
      • addProperty

        public void addProperty​(String property)
      • addOptionalProperty

        public void addOptionalProperty​(String optionalProperty)
      • setPrefixes

        public void setPrefixes​(Map<String,​String> prefixes)
      • 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()
        Overrides:
        toString in class Object
        Returns:
        String representation of knowledge base info
      • 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
        Overrides:
        hashCode in class Object
        Returns:
        The hash code of this KBInfo
      • 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()