dump-things-pyclient/dump_things_pyclient/tests/assets/pyclient_testschema.yaml
Christian Monch b412498267 add tests for post-records and get-records
Add tests for post-records that check the
write-interface. Some tests use get-records
to fetch records for validation.

Add the `Document`-class to test schema.
2026-03-10 01:49:04 +01:00

123 lines
2.8 KiB
YAML

name: demo-research-information-schema
description: |
A minimal schema that is compatible with concepts.datalad.org's type
definitions and annotations.
id: https://concepts.datalad.org/s/test-schemas/dump-things-pyclient/unreleased
version: UNRELEASED
license: MIT
prefixes:
rdf:
prefix_prefix: rdf
prefix_reference: http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs:
prefix_prefix: rdfs
prefix_reference: http://www.w3.org/2000/01/rdf-schema#
xsd:
prefix_prefix: xsd
prefix_reference: http://www.w3.org/2001/XMLSchema#
test:
prefix_prefix: test
prefix_reference: http://www.example.org/test
emit_prefixes:
- xsd
- test
default_prefix: test
types:
string:
name: string
description: A character string
from_schema: https://w3id.org/linkml/types
base: str
uri: xsd:string
uriorcurie:
name: uriorcurie
description: a URI or a CURIE
notes:
- If you are authoring schemas in LinkML YAML, the type is referenced with the
lower case "uriorcurie".
from_schema: https://w3id.org/linkml/types
base: URIorCURIE
uri: xsd:anyURI
repr: str
NodeUriOrCurie:
name: NodeUriOrCurie
typeof: uriorcurie
base: str
uri: rdfs:Resource
slots:
family_name:
name: family_name
title: Family name
range: string
given_name:
name: given_name
title: Given name
range: string
annotations:
name: annotations
description: A record of properties of the metadata record on a subject, a collection
of tag/text tuples with the semantics of OWL Annotation.
title: Annotations
range: Annotation
multivalued: true
inlined: true
annotation_tag:
name: annotation_tag
description: A tag identifying an annotation.
title: Tag
range: Thing
annotation_value:
name: annotation_value
description: The actual annotation.
title: Value
range: string
pid:
name: pid
description: Persistent and globally unique identifier of a `Thing`.
title: Persistent identifier
identifier: true
range: uriorcurie
schema_type:
name: schema_type
slot_uri: rdf:type
designates_type: true
range: NodeUriOrCurie
title:
name: title
range: string
classes:
Person:
name: Person
description: Person agents are people, alive, dead, or fictional.
is_a: Thing
slots:
- family_name
- given_name
ThingMixin:
name: ThingMixin
mixin: true
slots:
- annotations
- schema_type
Thing:
name: Thing
mixins:
- ThingMixin
slots:
- pid
Annotation:
name: Annotation
slots:
- annotation_tag
- annotation_value
slot_usage:
annotation_tag:
name: annotation_tag
key: true
range: AnnotationTag
AnnotationTag:
is_a: Thing
Document:
is_a: Thing
slots:
- title