let namespaces : seq<string[]> =
[|"rdf"; "http://www.w3.org/1999/02/22-rdf-syntax-ns#"|]
[|"metabolite"; "https://metabolon.com/metabolite#"|]
[|"base"; "https://metabolon.com/schema#"|]
[|"owl"; "http://www.w3.org/2002/07/owl#"|]
[|"nlm"; "https://www.nlm.nih.gov/databases/nlm#"|]
let nsmgr = XmlNamespaceManager(xdoc.NameTable)
namespaces |> Seq.iter nsmgr.AddNamespace