Skip to content

Commit 851ad59

Browse files
committed
First draft schema
1 parent 5510c81 commit 851ad59

File tree

1 file changed

+75
-60
lines changed

1 file changed

+75
-60
lines changed

src/fair_mappings_schema/schema/fair_mappings_schema.yaml

Lines changed: 75 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: https://w3id.org/mapping-commons/fair-mappings-schema
33
name: fair-mappings-schema
44
title: fair-mappings-schema
55
description: |-
6-
A basic metadata schema for FAIR mapping specifications
6+
A minimal metadata schema for FAIR mapping specifications
77
license: Apache-2.0
88
see_also:
99
- https://mapping-commons.github.io/fair-mappings-schema
@@ -23,74 +23,89 @@ imports:
2323

2424
classes:
2525

26-
NamedThing:
27-
description: >-
28-
A generic grouping for any identifiable entity
26+
Agent:
27+
description: An entity that can create or contribute to a digital object, such as an author or creator.
2928
slots:
3029
- id
31-
- name
32-
- description
33-
class_uri: schema:Thing
34-
35-
Person:
36-
is_a: NamedThing
30+
- label
31+
32+
Source:
3733
description: >-
38-
Represents a Person
34+
A data source from which entities are drawn, such as a database, ontology, or vocabulary.
3935
slots:
40-
- primary_email
41-
- birth_date
42-
- age_in_years
43-
- vital_status
44-
slot_usage:
45-
primary_email:
46-
pattern: "^\\S+@[\\S+\\.]+\\S+"
36+
- name
37+
- version
38+
- type
39+
- documentation
40+
- content
41+
- content_type
42+
- metadata
43+
- metadata_type
4744

48-
PersonCollection:
49-
tree_root: true
45+
MappingSpecification:
5046
description: >-
51-
A holder for Person objects
52-
attributes:
53-
entries:
54-
range: Person
55-
multivalued: true
56-
inlined_as_list: true
47+
A formal description of correspondences between entities in a source and a target, expressed as rules, functions, or mapping statements.
48+
slots:
49+
- author
50+
- creator
51+
- publication_date
52+
- license
53+
- version
54+
- description
55+
- mapping_specification_type
56+
- mapping_method
57+
- documentation
58+
- mapping_content
59+
- subject_source
60+
- object_source
5761

5862
slots:
5963
id:
64+
description: Identifier for the information entity
6065
identifier: true
61-
slot_uri: schema:identifier
62-
range: uriorcurie
63-
description: A unique identifier for a thing
66+
range: string
6467
name:
65-
slot_uri: schema:name
66-
description: A human-readable name for a thing
68+
description: Name of the information entity
69+
range: string
70+
required: true
71+
creator:
72+
description: Creator of the mapping specification
73+
range: Agent
74+
author:
75+
description: Author of the mapping specification
76+
range: Agent
77+
required: true
78+
publication_date:
79+
description: Date of publication of the mapping specification
80+
range: string
81+
format: date
82+
license:
83+
description: License under which the mapping specification is released
84+
range: string
85+
version:
86+
description: Version of the digital object
87+
range: string
6788
description:
68-
slot_uri: schema:description
69-
description: A human-readable description for a thing
70-
primary_email:
71-
slot_uri: schema:email
72-
description: The main email address of a person
73-
birth_date:
74-
slot_uri: schema:birthDate
75-
range: date
76-
description: Date on which a person is born
77-
age_in_years:
78-
range: integer
79-
description: Number of years since birth
80-
vital_status:
81-
range: PersonStatus
82-
description: living or dead status
83-
84-
enums:
85-
PersonStatus:
86-
permissible_values:
87-
ALIVE:
88-
description: the person is living
89-
meaning: PATO:0001421
90-
DEAD:
91-
description: the person is deceased
92-
meaning: PATO:0001422
93-
UNKNOWN:
94-
description: the vital status is not known
95-
todos:
96-
- map this to an ontology
89+
description: A brief description of the mapping specification
90+
range: string
91+
mapping_specification_type:
92+
description: Type of the mapping specification
93+
range: string
94+
mapping_method:
95+
description: Method used to create the mapping specification
96+
range: string
97+
documentation:
98+
description: URL or reference to documentation for the mapping specification
99+
range: string
100+
mapping_content:
101+
description: The actual content of the mapping specification, such as mapping rules or statements
102+
range: string
103+
required: true
104+
subject_source:
105+
description: The source from which the subject entities are drawn
106+
range: Source
107+
required: true
108+
object_source:
109+
description: The source from which the object entities are drawn
110+
range: Source
111+
required: true

0 commit comments

Comments
 (0)