Skip to content

Commit

Permalink
docs: improve example providing schema
Browse files Browse the repository at this point in the history
Example provided in the description of the "Basic idea" [1] was missing
the applicable schema to be able to test the example.
This commit provides the minimal schema required to run the example.

[1]: https://linkml.io/linkml-map/##basic-idea

Signed-off-by: Silvano Cirujano Cuesta <[email protected]>
  • Loading branch information
Silvanoc committed Jul 25, 2024
1 parent f72cbc9 commit 9258957
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,36 @@ Not all parts of the model are implemented in the reference Python framework.

## Basic idea

Given an object that conforms to a LinkML schema,e.g.:
Given the LinkML schema

```yaml
id: https://w3id.org/linkml/examples/personinfo
name: personinfo
prefixes:
linkml: https://w3id.org/linkml/
personinfo: https://w3id.org/linkml/examples/personinfo
imports:
- linkml:types
default_range: string
default_prefix: personinfo

classes:
Person:
attributes:
id:
given_name:
family_name:
aliases:
multivalued: true
height_in_cm:
range: float
unit:
ucum_code: cm
age_in_years:
range: integer
```
and an object that conforms to it, e.g.:
```yaml
given_name: Jane
Expand Down

0 comments on commit 9258957

Please sign in to comment.