Changed schema for Value -> Term, majorly breaking change (#622)

* Changed schema for Value -> Term, majorly breaking change

* Following the schema change, Value -> Term into all processing

* Updated Cassandra for g, p, s, o index patterns (7 indexes)

* Reviewed and updated all tests

* Neo4j, Memgraph and FalkorDB remain broken, will look at once settled down
This commit is contained in:
cybermaggedon 2026-01-27 13:48:08 +00:00 committed by GitHub
parent e061f2c633
commit cf0daedefa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
86 changed files with 2458 additions and 1764 deletions

View file

@ -1,6 +1,6 @@
from dataclasses import dataclass
from ..core.primitives import Error, Value, Triple
from ..core.primitives import Error, Term, Triple
from ..core.topic import topic
from ..core.metadata import Metadata

View file

@ -1,6 +1,6 @@
from dataclasses import dataclass, field
from ..core.primitives import Error, Value, Triple
from ..core.primitives import Error, Term, Triple
from ..core.topic import topic
############################################################################
@ -17,7 +17,7 @@ class GraphEmbeddingsRequest:
@dataclass
class GraphEmbeddingsResponse:
error: Error | None = None
entities: list[Value] = field(default_factory=list)
entities: list[Term] = field(default_factory=list)
############################################################################
@ -27,9 +27,10 @@ class GraphEmbeddingsResponse:
class TriplesQueryRequest:
user: str = ""
collection: str = ""
s: Value | None = None
p: Value | None = None
o: Value | None = None
s: Term | None = None
p: Term | None = None
o: Term | None = None
g: str | None = None # Graph IRI. None=default graph, "*"=all graphs
limit: int = 0
@dataclass

View file

@ -1,6 +1,6 @@
from dataclasses import dataclass
from ..core.topic import topic
from ..core.primitives import Error, Value
from ..core.primitives import Error, Term
############################################################################