Fix graph query in Cassandra (#168)

This commit is contained in:
cybermaggedon 2024-11-21 18:02:49 +00:00 committed by GitHub
parent dc0f54f236
commit 7a64385a57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ def to_value(x):
if x.startswith("http:") or x.startswith("https:"):
return Value(value=x, is_uri=True)
else:
return Value(value=x, is_uri=True)
return Value(value=x, is_uri=False)
def to_subgraph(x):
return [

View file

@ -97,7 +97,7 @@ class TrustGraph:
def get_po(self, p, o, limit=10):
return self.session.execute(
f"select s from {self.table} where p = %s and o = %s allow filtering limit {limit}",
f"select s from {self.table} where p = %s and o = %s limit {limit} allow filtering",
(p, o)
)