MCPcopy Create free account
hub / github.com/DataArcTech/ToG / execurte_sparql

Function execurte_sparql

ToG/freebase_func.py:22–27  ·  view source on GitHub ↗
(sparql_query)

Source from the content-addressed store, hash-verified

20
21
22def execurte_sparql(sparql_query):
23 sparql = SPARQLWrapper(SPARQLPATH)
24 sparql.setQuery(sparql_query)
25 sparql.setReturnFormat(JSON)
26 results = sparql.query().convert()
27 return results["results"]["bindings"]
28
29
30def replace_relation_prefix(relations):

Callers 2

relation_search_pruneFunction · 0.85
entity_searchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected