Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Data Harvesting
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Helmholtz Metadata Collaboration
HMC Public
unHIDE
Data Harvesting
Commits
95c2bf94
Commit
95c2bf94
authored
2 years ago
by
Jens Bröder
Browse files
Options
Downloads
Patches
Plain Diff
Correct docstring in data operation
parent
6909d119
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!11
Make release 1.0.0
,
!10
Release tag 1.0.0 to main
,
!4
Update OAI config
Pipeline
#204754
failed
2 years ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
data_mining/util/data_operation.py
+7
-6
7 additions, 6 deletions
data_mining/util/data_operation.py
with
7 additions
and
6 deletions
data_mining/util/data_operation.py
+
7
−
6
View file @
95c2bf94
...
...
@@ -56,12 +56,13 @@ def filter_json_data(identifiers: dict,
Since the openaire graph data is quite large (150 GB, with 200 Mio nodes), we do not load it into a DB and query it directly.
:param identifiers (dict): dictionary of identifiers with values to filter for
:param filepaths (list): list of paths to the files with the data, the files are expected to have one json object per line
:param do_validation (bool): validate each dataset found with the json schema given under schemafilepath
:param schemafilepath (str): path to the json schema file
:param verbose (bool): print additional information (Default True)
:returns filtered data (list): Only if not saved to a file, if saved to a file, None is returned
:param identifiers: dictionary of identifiers with values to filter for
:param filepaths: list of paths to the files with the data, the files are expected to have one json object per line
:param do_validation: validate each dataset found with the json schema given under schemafilepath
:param schemafilepath: path to the json schema file
:param schemafilepath: path to the json schema file
:param verbose: print additional information (Default True)
:returns filtered_data: Only if not saved to a file, if saved to a file, None is returned
"""
if
verbose
:
print
(
f
'
identifiers:
{
identifiers
}
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment