def index_rdf (self, endpoint, query): # download (part of) graph from endpoint to temporary rdf file rdffilename = download_rdf_from_sparql_endpoint(endpoint=endpoint, query=query) parameters=self.config.copy() # import the triples of rdf graph by RDF plugin enhancer = enhance_rdf() enhancer.etl_graph_file(docid=endpoint, filename=rdffilename, parameters=parameters) os.remove(rdffilename)
def index(self, endpoint, query): # download (part of) graph from endpoint to temporary rdf file rdffilename = download_rdf_from_sparql_endpoint(endpoint=endpoint, query=query) parameters = self.config.copy() # import the triples of rdf graph by RDF plugin enhancer = enhance_rdf() enhancer.etl_graph_file(docid=endpoint, filename=rdffilename, parameters=parameters) os.remove(rdffilename)