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

Function abandon_rels

ToG/freebase_func.py:17–19  ·  view source on GitHub ↗
(relation)

Source from the content-addressed store, hash-verified

15 return any(s.endswith(word) for word in words)
16
17def abandon_rels(relation):
18 if relation == "type.object.type" or relation == "type.object.name" or relation.startswith("common.") or relation.startswith("freebase.") or "sameAs" in relation:
19 return True
20
21
22def execurte_sparql(sparql_query):

Callers 1

relation_search_pruneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected