mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-26 00:46:22 +02:00
tg-put-kg-core command (#369)
This commit is contained in:
parent
8080b54328
commit
f7123ac57f
7 changed files with 298 additions and 22 deletions
|
|
@ -7,7 +7,7 @@ from . metadata import Metadata
|
|||
from . documents import Document, TextDocument
|
||||
from . graph import Triples, GraphEmbeddings
|
||||
|
||||
# fetch-kg-core
|
||||
# get-kg-core
|
||||
# -> (???)
|
||||
# <- ()
|
||||
# <- (error)
|
||||
|
|
@ -24,15 +24,19 @@ from . graph import Triples, GraphEmbeddings
|
|||
|
||||
class KnowledgeRequest(Record):
|
||||
|
||||
# fetch-kg-core, delete-kg-core, list-kg-cores
|
||||
# get-kg-core, delete-kg-core, list-kg-cores, put-kg-core
|
||||
operation = String()
|
||||
|
||||
# list-kg-cores, delete-kg-core
|
||||
# list-kg-cores, delete-kg-core, put-kg-core
|
||||
user = String()
|
||||
|
||||
# fetch-kg-core, list-kg-cores, delete-kg-core
|
||||
# get-kg-core, list-kg-cores, delete-kg-core, put-kg-core
|
||||
id = String()
|
||||
|
||||
# put-kg-core
|
||||
triples = Triples()
|
||||
graph_embeddings = GraphEmbeddings()
|
||||
|
||||
class KnowledgeResponse(Record):
|
||||
error = Error()
|
||||
ids = Array(String())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue