gpml2pvjson
Version:
convert GPML (XML) to pvjson (json)
34 lines (33 loc) • 890 B
JavaScript
var cxml = require("@wikipathways/cxml");
var Primitive = require('../../xml-primitives');
var rdf = require('../../www.w3.org/1999/02/22-rdf-syntax-ns');
cxml.register('http://www.biopax.org/release/biopax-level3.owl#', exports, [
[Primitive, ['number', 'string'], []],
[rdf, [], ['ID', 'datatype']]
], [
'IntegerElementType',
'OpenControlledVocabularyType',
'PublicationXrefType',
'StringElementType'
], [
[0, 0, [[3, 0], [4, 0]], []],
[1, 1, [], [[2, 1]]],
[0, 0, [[7, 0], [9, 0], [11, 0]], []],
[0, 0, [[5, 2], [6, 0], [8, 0], [10, 0], [12, 0], [13, 0]], [[1, 0, '$ID']]],
[1, 2, [], [[2, 1]]],
[3, 2, [], []],
[3, 2, [], []],
[3, 2, [], []]
], [
["openControlledVocabulary",[4],0],
["PublicationXref",[5],0],
["AUTHORS",[6],0],
["DB",[6],0],
["ID",[7],0],
["ID",[6],0],
["Ontology",[8],0],
["SOURCE",[6],0],
["TERM",[9],0],
["TITLE",[6],0],
["YEAR",[3],0]
]);