Downloading an Ontology's Structure Graph

Allows downloading of an Ontology's StructureGraph as a JSON or XML document. Review the list of Atlas Drawings and Ontologies to determine the relevant StructureGraph's ID.

Prototype

http://api.brain-map.org/api/v2/structure_graph_download/[StructureGraph.id].[xml|json]

Examples

Download the Mouse Brain Atlas Ontology's StructureGraph (StructureGraph id=1):

http://api.brain-map.org/api/v2/structure_graph_download/1.json

Download the Human Brain Atlas Ontology's StructureGraph (StructureGraph id=10):

http://api.brain-map.org/api/v2/structure_graph_download/10.json

Parameters

filename

Integer

StructureGraph.id

file extension

String

.xml or .json format.

Returns

A hierarchical XML or JSON document containing each of the Structures in the requested StructureGraph with the following:

parent_id

ID of the parent Structure.

children

1..n descendants of the Structure