extract_sparql#

langchain_community.chains.graph_qa.neptune_sparql.extract_sparql(query: str) str[source]#

Extract SPARQL code from a text.

Parameters:

query (str) – Text to extract SPARQL code from.

Returns:

SPARQL code extracted from the text.

Return type:

str