-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
dlite.Instance.from_dict()
to correctly parse ref-type properti…
…es (#983) Make it possible to correctly parse YAML files with ref-type properties. * Parse ref-type in yaml files * Update bindings/python/tests/test_ref_type.py * Only test ref-type for yaml if yaml is installed --------- Co-authored-by: Francesca L. Bleken <[email protected]>
- Loading branch information
1 parent
0764dca
commit f716ad0
Showing
3 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
http://onto-ns.com/meta/0.2/Middle: | ||
description: Middle-level nested data structure. | ||
dimensions: [] | ||
properties: | ||
- name: name | ||
type: string | ||
description: Value of this structure. | ||
- name: leaf | ||
type: ref | ||
$ref: http://onto-ns.com/meta/0.1/Leaf | ||
description: Reference to low-level structure. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters