Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-advanced-user-tools
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-advanced-user-tools
Merge requests
!57
FIX: if multiple updates for one entity exist, the retrieve would result in an...
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
FIX: if multiple updates for one entity exist, the retrieve would result in an...
f-reuse-yaml-doc
into
dev
Overview
1
Commits
3
Pipelines
2
Changes
1
Merged
Alexander Schlemmer
requested to merge
f-reuse-yaml-doc
into
dev
2 years ago
Overview
1
Commits
3
Pipelines
2
Changes
1
External MR:
https://gitlab.com/caosdb/caosdb-advanced-user-tools/-/merge_requests/92
0
0
Merge request reports
Compare
dev
version 2
0908c2dc
2 years ago
version 1
0908c2dc
2 years ago
dev (base)
and
latest version
latest version
7fa244c8
3 commits,
1 year ago
version 2
0908c2dc
2 commits,
2 years ago
version 1
0908c2dc
52 commits,
2 years ago
1 file
+
35
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/doc/yaml_interface.rst
+
35
−
0
View file @ 7fa244c8
Edit in single-file editor
Open in Web IDE
Show full file
@@ -86,6 +86,41 @@ list of previously defined names of Properties and/or RecordTypes. Note that if
recommended_properties:
Author:
Reusing Properties
==================
Properties defined once (either as a property of a Record or as a separate Property) can be reused
later in the yaml file. That requires that after the first occurrence of the property, the
attributes have to be empty. Otherwise the reuse of the property would be conflicting with its
original definition.
Example:
--------
.. code-block:: yaml
Project:
obligatory_properties:
projectId:
datatype: INTEGER
description: 'UID of this project'
date:
datetype: DATETIME
description: Date of a project or an experiment
Experiment:
obligatory_properties:
experimentId:
datatype: INTEGER
description: 'UID of this experiment'
date: # no further attributes here, since property was defined above in 'Project'!
The above example defines two Records: Project and Experiment
The property ``date`` is defined upon its first occurrence as a property of ``Project``.
Later, the same property is also added to ``Experiment`` where no additional attributes are
allowed to specify.
Datatypes
=========
Loading