Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

DOWNLOADING AN ONTOLOGY'S STRUCTURE GRAPH

Table of Contents

...

maxLevel3

...

minLevel

...

2
classtoc-style

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

No Format

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

...

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

No Format

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

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

No Format

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