Schema2DF¶
- class Schema2DF(get_as_ids=False)[source]
Methods
|
Constructor for schema to dataframe converter |
|
Takes a HedSchema object and returns it in the inherited form(mediawiki, xml, etc) |
Attributes
- Schema2DF.__init__(get_as_ids=False)[source]¶
Constructor for schema to dataframe converter
- Parameters:
get_as_ids (bool) – If true, return the hedId rather than name in most places This is mostly relevant for creating an ontology.
- Schema2DF.process_schema(hed_schema, save_merged=False)¶
Takes a HedSchema object and returns it in the inherited form(mediawiki, xml, etc)
- Parameters:
hed_schema (HedSchema) –
save_merged (bool) – If True, this will save the schema as a merged schema if it is a “withStandard” schema. If it is not a “withStandard” schema, this setting has no effect.
- Returns:
converted_output – Varies based on inherited class
- Return type:
Any