Skip to end of metadata
Go to start of metadata

Downloading an Ontology's Structure Graph

Allows downloading of an Ontology's StructureGraph as a JSON or XML document.

Prototype

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

Examples

Determine which StructureGraphs are associated with reference atlas Ontologies:

http://api.brain-map.org/api/v2/data/StructureGraph/query.xml?criteria=ontology[has_atlas$eqtrue]
&tabular=ontologies.name+as+ontology_name,ontologies.id+as+ontology_id,structure_graphs.id+as+structure_graph_id

Download the Mouse Brain Atlas Ontology's StructureGraph:

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

Download the Human Brain Atlas Ontology's StructureGraph:

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

  • No labels