(profile, graph, uri, mimeType, callback)
| 1 | import $rdf from 'rdflib' |
| 2 | |
| 3 | export default function parse (profile, graph, uri, mimeType, callback) { |
| 4 | try { |
| 5 | $rdf.parse(profile, graph, uri, mimeType) |
| 6 | return callback(null, graph) |
| 7 | } catch (e) { |
| 8 | return callback(new Error('Could not load/parse profile data: ' + e)) |
| 9 | } |
| 10 | } |