Skip to content
Snippets Groups Projects
Verified Commit 4ead9298 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

DOC: Documentation improved a bit.

parent 49fe3f0c
No related branches found
No related tags found
2 merge requests!39Release 0.4.0,!37F extern name
...@@ -25,8 +25,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -25,8 +25,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### ### Fixed ###
- CaosDB internal properties `name` and `unit` can now be used via the `extern` - CaosDB internal properties `name`, `unit` and `description` can now be used via the `extern`
keyword in yaml datamodel specifications. keyword in YAML datamodel specifications.
### Security ### ### Security ###
......
...@@ -57,10 +57,11 @@ then ...@@ -57,10 +57,11 @@ then
exit 1 exit 1
fi fi
set -e set -e
echo "undo changes" echo "Undoing previous changes to extroot content..."
cd extroot cd extroot
egrep -liRZ 'A description of this example' . | xargs -0 -l sed -i -e 's/A description of this example/A description of another example/g' egrep -liRZ 'A description of this example' . | xargs -0 -l sed -i -e 's/A description of this example/A description of another example/g'
cd .. cd ..
echo "Done."
python3 test_table.py python3 test_table.py
# TODO the following test deletes lots of the data inserted by the crawler # TODO the following test deletes lots of the data inserted by the crawler
echo "Testing im and export" echo "Testing im and export"
......
...@@ -50,7 +50,7 @@ This example defines 3 ``RecordType``s: ...@@ -50,7 +50,7 @@ This example defines 3 ``RecordType``s:
- A Person with a ``firstName`` and a ``lastName`` (as recommended properties) - A Person with a ``firstName`` and a ``lastName`` (as recommended properties)
- A ``LabbookEntry`` with multiple recommended properties of different data types - A ``LabbookEntry`` with multiple recommended properties of different data types
- It is assumed that the server knows a RecordType or Property with the name - It is assumed that the server knows a RecordType or Property with the name
"Textfile". ``Textfile``.
One major advantage of using this interface (in contrast to the standard python interface) is that properties can be defined and added to record types "on-the-fly". E.g. the three lines for ``firstName`` as sub entries of ``Person`` have two effects on CaosDB: One major advantage of using this interface (in contrast to the standard python interface) is that properties can be defined and added to record types "on-the-fly". E.g. the three lines for ``firstName`` as sub entries of ``Person`` have two effects on CaosDB:
...@@ -66,7 +66,8 @@ Note the difference between the three property declarations of ``LabbookEntry``: ...@@ -66,7 +66,8 @@ Note the difference between the three property declarations of ``LabbookEntry``:
- ``responsible``: This defines and adds a property with name "responsible" to ``LabbookEntry`, which has a datatype ``Person``. ``Person`` is defined above. - ``responsible``: This defines and adds a property with name "responsible" to ``LabbookEntry`, which has a datatype ``Person``. ``Person`` is defined above.
- ``firstName``: This defines and adds a property with the standard data type ``TEXT`` to record type ``Person``. - ``firstName``: This defines and adds a property with the standard data type ``TEXT`` to record type ``Person``.
If the data model depends on already existing parts, those can be added using the ``extern`` keyword. If the data model depends on record types or properties which already exist in CaosDB, those can be
added using the ``extern`` keyword: ``extern`` takes a list of previously defined names.
Datatypes Datatypes
--------- ---------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment