Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CaosDB Crawler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Crawler
Commits
d43d85db
Commit
d43d85db
authored
11 months ago
by
Alexander Schlemmer
Browse files
Options
Downloads
Patches
Plain Diff
DOC: clarified dfeinition of reference mappings
parent
21da31c2
No related branches found
No related tags found
2 merge requests
!178
FIX: #96 Better error output for crawl.py script.
,
!167
Sync Graph
Pipeline
#51488
passed with warnings
11 months ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/caoscrawler/sync_graph.py
+8
-6
8 additions, 6 deletions
src/caoscrawler/sync_graph.py
with
8 additions
and
6 deletions
src/caoscrawler/sync_graph.py
+
8
−
6
View file @
d43d85db
...
...
@@ -158,12 +158,12 @@ class SyncGraph():
# initialize reference mappings (see _create_reference_mapping)
(
self
.
forward_references
,
self
.
backward_references
,
self
.
forward_references_id_props
,
self
.
backward_references_id_props
,
self
.
forward_references_backref
,
self
.
backward_references_backref
,
self
.
forward_references
,
# full set of reference properties of the entity
self
.
backward_references
,
# full set of reference properties (of other entities) that reference the entity
self
.
forward_references_id_props
,
# subset of the reference properties that are part of identifiables
self
.
backward_references_id_props
,
# subset of the backward references that are part of identifiables
self
.
forward_references_backref
,
# subset of the reference properties that are part of identifiables as "referenced_by" properties
self
.
backward_references_backref
,
# same for backward references
)
=
self
.
_create_reference_mapping
(
self
.
nodes
)
# remove entities with path or ID from unchecked list
...
...
@@ -247,6 +247,8 @@ class SyncGraph():
"""
If a record for which it could not yet be verified whether it exists in LA or not is part
of the identifying properties, this returns True, otherwise False
Last review by Alexander Schlemmer on 2024-05-27.
"""
return
any
([
id
(
ent
)
not
in
self
.
_missing
and
id
(
ent
)
not
in
self
.
_existing
...
...
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