Package be.ugent.rml.access
Class SPARQLEndpointAccess
- java.lang.Object
-
- be.ugent.rml.access.SPARQLEndpointAccess
-
-
Constructor Summary
Constructors Constructor Description SPARQLEndpointAccess(String contentType, String endpoint, String query)This constructor takes a content type, url of the endpoint, and a SPARQL query as arguments.
-
Method Summary
Modifier and Type Method Description booleanequals(Object o)StringgetContentType()This method returns the content type of the results.Map<String,String>getDataTypes()This methods returns the datatypes of the results of the SPARQL query.StringgetEndpoint()This method returns the url of the endpoint.InputStreamgetInputStream()This method returns an InputStream of the results of the SPARQL endpoint.StringgetQuery()This method returns the SPARQL query that is used to get the results.inthashCode()
-
-
-
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
-
getInputStream
public InputStream getInputStream() throws IOException
This method returns an InputStream of the results of the SPARQL endpoint.- Specified by:
getInputStreamin interfaceAccess- Returns:
- an InputStream.
- Throws:
IOException
-
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:
getDataTypesin interfaceAccess- 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.
-
-