radial sugiyama positioning integration
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package main
|
||||
|
||||
import selectionqueries "visualizador_instanciados/backend_go/selection_queries"
|
||||
|
||||
type ErrorResponse struct {
|
||||
Detail string `json:"detail"`
|
||||
}
|
||||
@@ -18,28 +20,42 @@ type Node struct {
|
||||
}
|
||||
|
||||
type Edge struct {
|
||||
Source uint32 `json:"source"`
|
||||
Target uint32 `json:"target"`
|
||||
Source uint32 `json:"source"`
|
||||
Target uint32 `json:"target"`
|
||||
PredicateID uint32 `json:"predicate_id"`
|
||||
}
|
||||
|
||||
type RoutePoint struct {
|
||||
X float64 `json:"x"`
|
||||
Y float64 `json:"y"`
|
||||
}
|
||||
|
||||
type RouteSegment struct {
|
||||
EdgeIndex int `json:"edge_index"`
|
||||
Kind string `json:"kind"`
|
||||
Points []RoutePoint `json:"points"`
|
||||
}
|
||||
|
||||
type GraphMeta struct {
|
||||
Backend string `json:"backend"`
|
||||
TTLPath *string `json:"ttl_path"`
|
||||
SparqlEndpoint string `json:"sparql_endpoint"`
|
||||
IncludeBNodes bool `json:"include_bnodes"`
|
||||
GraphQueryID string `json:"graph_query_id"`
|
||||
Backend string `json:"backend"`
|
||||
TTLPath *string `json:"ttl_path"`
|
||||
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"`
|
||||
Edges int `json:"edges"`
|
||||
NodeLimit int `json:"node_limit"`
|
||||
EdgeLimit int `json:"edge_limit"`
|
||||
Nodes int `json:"nodes"`
|
||||
Edges int `json:"edges"`
|
||||
LayoutEngine string `json:"layout_engine,omitempty"`
|
||||
LayoutRootIRI *string `json:"layout_root_iri,omitempty"`
|
||||
}
|
||||
|
||||
type GraphResponse struct {
|
||||
Nodes []Node `json:"nodes"`
|
||||
Edges []Edge `json:"edges"`
|
||||
Meta *GraphMeta `json:"meta"`
|
||||
Nodes []Node `json:"nodes"`
|
||||
Edges []Edge `json:"edges"`
|
||||
RouteSegments []RouteSegment `json:"route_segments,omitempty"`
|
||||
Meta *GraphMeta `json:"meta"`
|
||||
}
|
||||
|
||||
type StatsResponse struct {
|
||||
@@ -80,3 +96,9 @@ type SelectionQueryResponse struct {
|
||||
SelectedIDs []uint32 `json:"selected_ids"`
|
||||
NeighborIDs []uint32 `json:"neighbor_ids"`
|
||||
}
|
||||
|
||||
type SelectionTriplesResponse struct {
|
||||
QueryID string `json:"query_id"`
|
||||
SelectedIDs []uint32 `json:"selected_ids"`
|
||||
Triples []selectionqueries.Triple `json:"triples"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user