Appearance
parse
Ogma static toolbox for data imports
parse.gexf(content)
Parse a GEXF string and return the raw graph.
Arguments
- content
string
Returns
-
Promise<RawGraph>
parse.gexfFromUrl(url)
Fetch and parse a GEXF file and return the raw graph.
Arguments
- url
string
Returns
-
Promise<RawGraph>
parse.graphmlFromUrl(url)
Fetch and parse a GraphML file and return the raw graph.
Arguments
- url
string
Returns
-
Promise<RawGraph>
parse.janus(content)
Parse the result of a JanusGraph query into an Ogma graph.
Arguments
- content
object
Response of the gremlin-client library ("gremlin-client")
Returns
-
Promise<RawGraph>
parse.jsonFromUrl(url[, transform])
Fetch and parse a JSON file and return the raw graph.
Arguments
- url
string
- transform(optional)
function(json: object | unknown[]): RawGraph
Function to transform custom JSON format into Ogma'sRawGraph
Returns
-
Promise<RawGraph>
parse.mtx(content)
Parse a Matrix Market file (.mtx)
Arguments
- content
string
Returns
-
Promise<RawGraph>
parse.mtxFromUrl(url)
Loads and parses a Matrix Market file (.mtx)
Arguments
- url
string
Returns
-
Promise<RawGraph>
parse.neo4j(content)
Arguments
- content
object
Response of the Neo4j Bolt driver ("neo4j-javascript-driver")
Returns
-
Promise<RawGraph>