plugins_dataConverter
perfect-graph / Modules / plugins/dataConverter
#
Module: plugins/dataConverter#
Table of contents#
Functions#
Functions#
convertJSONLDToGraphDataâ–¸ Const
convertJSONLDToGraphData(jsonLDList
, graph?
): Object
#
ParametersName | Type |
---|---|
jsonLDList | Record <string , any >[] |
graph | Object |
graph.edges | Object |
graph.nodes | Object |
#
ReturnsObject
Name | Type |
---|---|
edges | { source : string ; target : string }[] |
nodes | unknown [] |
#
Defined inplugins/dataConverter/index.ts:164
#
convertRDFToGraphDataâ–¸ Const
convertRDFToGraphData(): Promise
<{ edges
: { source
: string
; target
: string
}[] ; nodes
: unknown
[] = nodeList }>
#
ReturnsPromise
<{ edges
: { source
: string
; target
: string
}[] ; nodes
: unknown
[] = nodeList }>
#
Defined inplugins/dataConverter/index.ts:328
#
convertToJSONLDâ–¸ Const
convertToJSONLD(text
): Promise
<Record
<string
, any
>[]>
#
ParametersName | Type |
---|---|
text | string |
#
ReturnsPromise
<Record
<string
, any
>[]>
#
Defined inplugins/dataConverter/index.ts:57
#
filterEdgesâ–¸ Const
filterEdges(nodes
): (edges
: { source
: string
; target
: string
}[]) => { source
: string
; target
: string
}[]
#
ParametersName | Type |
---|---|
nodes | { id : string }[] |
#
Returnsfn
â–¸ (edges
): { source
: string
; target
: string
}[]
#
ParametersName | Type |
---|---|
edges | { source : string ; target : string }[] |
#
Returns{ source
: string
; target
: string
}[]
#
Defined inplugins/dataConverter/index.ts:228
#
sparqlResultToRDFâ–¸ Const
sparqlResultToRDF(sparqlResult
): string
#
ParametersName | Type |
---|---|
sparqlResult | any |
#
Returnsstring