def getDatasetURIs(sparqlEndpoint, modifiedSince): """ Retrieve URIs of relevant datasets from @sparqlEndpoint based on SPARQL SELECT query configured in the queries/getDatasetURIs.tpl file. """ query = sparql.formatQuery("getDatasetURIs.tpl", params = { "modifiedSince" : modifiedSince, }) return sparql.select1binding(sparqlEndpoint, query)
def getDatasetMetadata(sparqlEndpoint, datasetURI): """ Retrieves description of dataset identified by @datasetURI from the @sparqlEndpoint. The return value corresponds to concise-bounded description. Note that non-Virtuoso SPARQL endpoints need to use queries/getDataset_simple.tpl instead. """ query = sparql.formatQuery("getDataset.tpl", params = { "datasetURI" : datasetURI, }) return sparql.construct(sparqlEndpoint, query)