Visualizando todo grafo com anzograph

This commit is contained in:
Oxy8
2026-03-10 17:21:47 -03:00
parent a0c5bec19f
commit 5badcd8d6f
17 changed files with 482 additions and 106 deletions

View File

@@ -20,7 +20,7 @@ type Node struct {
type Edge struct {
Source uint32 `json:"source"`
Target uint32 `json:"target"`
Predicate string `json:"predicate"`
PredicateID uint32 `json:"predicate_id"`
}
type GraphMeta struct {
@@ -29,6 +29,7 @@ type GraphMeta struct {
SparqlEndpoint string `json:"sparql_endpoint"`
IncludeBNodes bool `json:"include_bnodes"`
GraphQueryID string `json:"graph_query_id"`
Predicates []string `json:"predicates,omitempty"` // index = predicate_id
NodeLimit int `json:"node_limit"`
EdgeLimit int `json:"edge_limit"`
Nodes int `json:"nodes"`