Class SPARQLEndpointAccess

  • All Implemented Interfaces:
    Access

    public class SPARQLEndpointAccess
    extends Object
    implements Access
    This class represents the access to a SPARQL endpoint.
    • Constructor Detail

      • SPARQLEndpointAccess

        public SPARQLEndpointAccess​(String contentType,
                                    String endpoint,
                                    String query)
        This constructor takes a content type, url of the endpoint, and a SPARQL query as arguments.
        Parameters:
        contentType - the content type of the results.
        endpoint - the url of the SPARQL endpoint.
        query - the SPARQL query used on the endpoint.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getDataTypes

        public Map<String,​String> getDataTypes()
        This methods returns the datatypes of the results of the SPARQL query. This method always returns null at the moment.
        Specified by:
        getDataTypes in interface Access
        Returns:
        the datatypes of the results of the SPARQL query.
      • getContentType

        public String getContentType()
        This method returns the content type of the results.
        Returns:
        the content type of the results.
      • getEndpoint

        public String getEndpoint()
        This method returns the url of the endpoint.
        Returns:
        the url of the endpoint.
      • getQuery

        public String getQuery()
        This method returns the SPARQL query that is used to get the results.
        Returns:
        the SPARQL query that is used to get the results.