How to get a subgraph using SPARQL query in Python

Knowledge Graph is one of the most common forms of Factual Knowledge. Many researches have combined pretrained language model with knowledge graph to improve its performance on NLU tasks. Before injecting the knowledge into the model, we should go through the tagging (named entity recognition), entity grounding (entity linking), and retrieving (e.g. SPARQL)process. This blog is talking about how to get a specific subgraph by SPARQL queries.

Posted on Knowledge Graph