Skip to content

Commit

Permalink
Merge branch 'libpitt/606-grabbing-activity-props-key-collision' into…
Browse files Browse the repository at this point in the history
… libpitt/606-grabbing-activity-props
  • Loading branch information
libpitt committed Feb 13, 2025
2 parents 9095a46 + b0cbe9e commit 1a5f08d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/schema/schema_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,16 @@ def load_provenance_schema(valid_yaml_file):


def group_schema_properties_by_name():
"""
This formats the entities schema properties using property names as key.
Then within various buckets, has a set containing entity names which the property belongs to.
This allows for constant time access when filtering responses by property names.
Returns
-------
dict
"""
global _schema

schema_properties_by_name = {}
Expand Down Expand Up @@ -424,8 +434,10 @@ def rearrange_datasets(results, entity_type = 'Dataset'):


def group_verify_properties_list(normalized_class='All', properties=[]):
""" Separates neo4j properties from transient ones. Will also gather specific property dependencies via a
`dependency_properties` list setting in the schema yaml. Also filters out any unknown properties.
""" Separates neo4j properties from transient ones. More over, buckets neo4j properties that are
either json_string or list to allow them to be handled via apoc.convert.* functions.
Will also gather specific property dependencies via a `dependency_properties` list setting in the schema yaml.
Also filters out any unknown properties.
Parameters
----------
Expand Down

0 comments on commit 1a5f08d

Please sign in to comment.