Manta Developers
GitHub
Menu

@manta-eu/react/screens/graph

Reference for @manta-eu/react/screens/graph as it is on main.

Type Aliases

GraphCanvasProps

GraphCanvasProps = object

Properties

company

company: string

graph

graph: KnowledgeGraph

litIds

litIds: ReadonlySet<string>

reducedMotion

reducedMotion: boolean

selectedId

selectedId: string | undefined

visibleLayers

visibleLayers: ReadonlySet<GraphLayer>


GraphClassInput

GraphClassInput = object

Properties

description?

optional description?: string

href

href: string

iri

iri: string

label

label: string

records

records: number

vocabulary

vocabulary: boolean


GraphEdge

GraphEdge = object

Properties

from

from: string

label

label: string

to

to: string


GraphLayer

GraphLayer = "source" | "business" | "plan" | "vocabulary"


GraphLimits

GraphLimits = object

Properties

classes

classes: number

plans

plans: number

vocabulary

vocabulary: number


GraphNeighbor

GraphNeighbor = object

Properties

incoming

incoming: boolean

node

node: GraphNode

relationship

relationship: string


GraphNode

GraphNode = object

Properties

accounts?

optional accounts?: number

connected?

optional connected?: boolean

count?

optional count?: number

description?

optional description?: string

href

href: string

id

id: string

kind

kind: string

label

label: string

layer

layer: GraphLayer


GraphPlanInput

GraphPlanInput = object

Properties

description?

optional description?: string

href

href: string

iri

iri: string

name

name: string

system?

optional system?: string


GraphScreenProps

GraphScreenProps = object

Properties

renderCanvas?

optional renderCanvas?: (props) => ReactNode

Parameters
props

GraphCanvasProps

Returns

ReactNode


GraphSystemInput

GraphSystemInput = object

Properties

accounts

accounts: number

classIris

classIris: readonly string[]

href

href: string

key

key: string

label

label: string


KnowledgeGraph

KnowledgeGraph = object

Properties

edges

edges: GraphEdge[]

nodes

nodes: GraphNode[]

totals

totals: object

layers

layers: Record<GraphLayer, number>

plans

plans: number

records

records: number

sources

sources: number


KnowledgeGraphInput

KnowledgeGraphInput = object

Properties

classes

classes: readonly GraphClassInput[]

planCount

planCount: number

plans

plans: readonly GraphPlanInput[]

records

records: number

systems

systems: readonly GraphSystemInput[]


KnowledgeGraphState

KnowledgeGraphState = object

Properties

error

error: string | undefined

graph

graph: KnowledgeGraph

isLoading

isLoading: boolean

Variables

defaultGraphLayers

const defaultGraphLayers: readonly GraphLayer[]


defaultGraphLimits

const defaultGraphLimits: GraphLimits


graphLayerNames

const graphLayerNames: Record<GraphLayer, string>


graphLayers

const graphLayers: readonly GraphLayer[]


graphNavId

const graphNavId: "nav-graph" = "nav-graph"


graphPath

const graphPath: "/graph" = "/graph"

Functions

classNodeId()

classNodeId(iri): string

Parameters

iri

string

Returns

string


findNodes()

findNodes(graph, query): GraphNode[]

Parameters

graph

KnowledgeGraph

query

string

Returns

GraphNode[]


graphDatastoreRoutes()

graphDatastoreRoutes(props?): ReactNode

Parameters

props?

GraphScreenProps = {}

Returns

ReactNode


graphNavExtras()

graphNavExtras(): NavExtra[]

Returns

NavExtra[]


graphNodePath()

graphNodePath(nodeId): string

Parameters

nodeId

string

Returns

string


GraphScreen()

GraphScreen(props): Element

Parameters

props

GraphScreenProps

Returns

Element


isGraphPath()

isGraphPath(pathname): boolean

Parameters

pathname

string

Returns

boolean


knowledgeGraph()

knowledgeGraph(input, limits?): KnowledgeGraph

Parameters

input

KnowledgeGraphInput

limits?

GraphLimits = defaultGraphLimits

Returns

KnowledgeGraph


neighborhoodOf()

neighborhoodOf(graph, nodeId): Set<string>

Parameters

graph

KnowledgeGraph

nodeId

string | undefined

Returns

Set<string>


neighborsOf()

neighborsOf(graph, nodeId): GraphNeighbor[]

Parameters

graph

KnowledgeGraph

nodeId

string

Returns

GraphNeighbor[]


planNodeId()

planNodeId(iri): string

Parameters

iri

string

Returns

string


recordsWords()

recordsWords(count): string

Parameters

count

number

Returns

string


sourceNodeId()

sourceNodeId(key): string

Parameters

key

string

Returns

string


useKnowledgeGraph()

useKnowledgeGraph(): KnowledgeGraphState

Returns

KnowledgeGraphState