mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-05 13:22:37 +02:00
release/v2.4 -> master (#844)
This commit is contained in:
parent
a24df8e990
commit
89cabee1b4
386 changed files with 7202 additions and 5741 deletions
|
|
@ -115,7 +115,7 @@ class TestCassandraIntegration:
|
|||
|
||||
# Create test message
|
||||
storage_message = Triples(
|
||||
metadata=Metadata(user="testuser", collection="testcol"),
|
||||
metadata=Metadata(collection="testcol"),
|
||||
triples=[
|
||||
Triple(
|
||||
s=Term(type=IRI, iri="http://example.org/person1"),
|
||||
|
|
@ -178,7 +178,7 @@ class TestCassandraIntegration:
|
|||
|
||||
# Store test data for querying
|
||||
query_test_message = Triples(
|
||||
metadata=Metadata(user="testuser", collection="testcol"),
|
||||
metadata=Metadata(collection="testcol"),
|
||||
triples=[
|
||||
Triple(
|
||||
s=Term(type=IRI, iri="http://example.org/alice"),
|
||||
|
|
@ -212,7 +212,6 @@ class TestCassandraIntegration:
|
|||
p=None, # None for wildcard
|
||||
o=None, # None for wildcard
|
||||
limit=10,
|
||||
user="testuser",
|
||||
collection="testcol"
|
||||
)
|
||||
s_results = await query_processor.query_triples(s_query)
|
||||
|
|
@ -232,7 +231,6 @@ class TestCassandraIntegration:
|
|||
p=Term(type=IRI, iri="http://example.org/knows"),
|
||||
o=None, # None for wildcard
|
||||
limit=10,
|
||||
user="testuser",
|
||||
collection="testcol"
|
||||
)
|
||||
p_results = await query_processor.query_triples(p_query)
|
||||
|
|
@ -259,7 +257,7 @@ class TestCassandraIntegration:
|
|||
# Create multiple coroutines for concurrent storage
|
||||
async def store_person_data(person_id, name, age, department):
|
||||
message = Triples(
|
||||
metadata=Metadata(user="concurrent_test", collection="people"),
|
||||
metadata=Metadata(collection="people"),
|
||||
triples=[
|
||||
Triple(
|
||||
s=Term(type=IRI, iri=f"http://example.org/{person_id}"),
|
||||
|
|
@ -329,7 +327,7 @@ class TestCassandraIntegration:
|
|||
|
||||
# Create a knowledge graph about a company
|
||||
company_graph = Triples(
|
||||
metadata=Metadata(user="integration_test", collection="company"),
|
||||
metadata=Metadata(collection="company"),
|
||||
triples=[
|
||||
# People and their types
|
||||
Triple(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue