Skip to content

Commit 81fe996

Browse files
Damien Goutte-Gattatmatentzn
andauthored
Add curie_map to the model (#376)
This commit makes the `curie_map` a _bona fide_ slot of the `MappingSet` class, that exists independently of the serialisation format. --------- Co-authored-by: Nico Matentzoglu <[email protected]>
1 parent bd03f7b commit 81fe996

File tree

18 files changed

+956
-1939
lines changed

18 files changed

+956
-1939
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Next
44

55
- Add the concept of "propagatable slots".
6+
- Add the `curie_map` to the model (instead of it being a specificity of the SSSOM/TSV format).
67
- Add the concept of "extension slots".
78
- Add the entity reference `sssom:NoTermFound` to express the concept of an "unmapped entity" ([issue](https://github.com/mapping-commons/sssom/issues/28))
89
- Replace `semantic_similarity_score` with `similarity_score` and `semantic_similarity_measure` with `similarity_measure` in the data model ([issue](https://github.com/mapping-commons/sssom/issues/385))
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#curie_map:
2+
# HP: http://purl.obolibrary.org/obo/HP_
3+
# MP: http://purl.obolibrary.org/obo/MP_
4+
# orcid: https://orcid.org/
5+
#mapping_set_id: https://w3id.org/sssom/commons/examples/curie_map.sssom.tsv
6+
#license: "https://creativecommons.org/publicdomain/zero/1.0/"
7+
#creator_id:
8+
# - orcid:0000-0002-7356-1779
9+
#mapping_provider: "https://w3id.org/sssom/core_team"
10+
#comment: This is an example file for the SSSOM for illustration only. Its contents are entirely fabricated.
11+
subject_id predicate_id object_id mapping_justification
12+
HP:0009124 skos:exactMatch MP:0000003 semapv:ManualMappingCuration
13+
HP:0008551 skos:exactMatch MP:0000018 semapv:ManualMappingCuration
14+
HP:0000411 skos:exactMatch MP:0000021 semapv:ManualMappingCuration

project/excel/sssom_schema.xlsx

-123 Bytes
Binary file not shown.

project/graphql/sssom_schema.graphql

Lines changed: 13 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5,47 +5,6 @@ type ExtensionDefinition
55
typeHint: Uriorcurie
66
}
77

8-
type LiteralMapping
9-
{
10-
literal: String!
11-
literalDatatype: Uri
12-
predicateId: EntityReference!
13-
predicateLabel: String
14-
predicateModifier: PredicateModifierEnum
15-
objectId: EntityReference!
16-
objectLabel: String
17-
objectCategory: String
18-
mappingJustification: EntityReference!
19-
authorId: [EntityReference]
20-
authorLabel: [String]
21-
reviewerId: [EntityReference]
22-
reviewerLabel: [String]
23-
creatorId: [EntityReference]
24-
creatorLabel: [String]
25-
license: Uri
26-
literalSource: EntityReference
27-
literalSourceVersion: String
28-
objectType: EntityTypeEnum
29-
objectSource: EntityReference
30-
objectSourceVersion: String
31-
mappingProvider: Uri
32-
mappingSource: EntityReference
33-
mappingCardinality: MappingCardinalityEnum
34-
mappingTool: String
35-
mappingToolVersion: String
36-
mappingDate: Date
37-
confidence: Double
38-
objectMatchField: [EntityReference]
39-
matchString: [String]
40-
literalPreprocessing: [EntityReference]
41-
objectPreprocessing: [EntityReference]
42-
similarityScore: Double
43-
similarityMeasure: String
44-
seeAlso: [String]
45-
other: String
46-
comment: String
47-
}
48-
498
type Mapping
509
{
5110
subjectId: EntityReference!
@@ -86,8 +45,8 @@ type Mapping
8645
matchString: [String]
8746
subjectPreprocessing: [EntityReference]
8847
objectPreprocessing: [EntityReference]
89-
semanticSimilarityScore: Double
90-
semanticSimilarityMeasure: String
48+
similarityScore: Double
49+
similarityMeasure: String
9150
seeAlso: [String]
9251
issueTrackerItem: EntityReference
9352
other: String
@@ -108,6 +67,7 @@ type MappingRegistry
10867

10968
type MappingSet
11069
{
70+
curieMap: [Prefix]
11171
mappings: [Mapping]
11272
mappingSetId: Uri!
11373
mappingSetVersion: String
@@ -149,6 +109,16 @@ type MappingSetReference
149109
localName: String
150110
}
151111

112+
type NoTermFound
113+
{
114+
}
115+
116+
type Prefix
117+
{
118+
prefixName: Ncname!
119+
prefixUrl: Uri
120+
}
121+
152122
type Propagatable
153123
{
154124
propagated: Boolean

project/jsonld/sssom_schema.context.jsonld

Lines changed: 18 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"comments": {
33
"description": "Auto generated by LinkML jsonld context generator",
4-
"generation_date": "2024-08-05T10:18:22",
4+
"generation_date": "2024-08-06T18:58:48",
55
"source": "sssom_schema.yaml"
66
},
77
"@context": {
@@ -46,6 +46,10 @@
4646
"curation_rule_text": {
4747
"@id": "curation_rule_text"
4848
},
49+
"curie_map": {
50+
"@type": "@id",
51+
"@id": "curie_map"
52+
},
4953
"documentation": {
5054
"@type": "@id",
5155
"@id": "documentation"
@@ -89,24 +93,6 @@
8993
"@type": "@id",
9094
"@id": "dcterms:license"
9195
},
92-
"literal": {
93-
"@id": "owl:annotatedTarget"
94-
},
95-
"literal_datatype": {
96-
"@type": "@id",
97-
"@id": "rdf:datatype"
98-
},
99-
"literal_preprocessing": {
100-
"@type": "rdfs:Resource",
101-
"@id": "literal_preprocessing"
102-
},
103-
"literal_source": {
104-
"@type": "rdfs:Resource",
105-
"@id": "literal_source"
106-
},
107-
"literal_source_version": {
108-
"@id": "literal_source_version"
109-
},
11096
"local_name": {
11197
"@id": "local_name"
11298
},
@@ -248,6 +234,13 @@
248234
},
249235
"@id": "predicate_type"
250236
},
237+
"prefix_name": {
238+
"@id": "prefix_name"
239+
},
240+
"prefix_url": {
241+
"@type": "@id",
242+
"@id": "prefix_url"
243+
},
251244
"propagated": {
252245
"@type": "xsd:boolean",
253246
"@id": "propagated"
@@ -270,13 +263,6 @@
270263
"see_also": {
271264
"@id": "rdfs:seeAlso"
272265
},
273-
"semantic_similarity_measure": {
274-
"@id": "semantic_similarity_measure"
275-
},
276-
"semantic_similarity_score": {
277-
"@type": "xsd:double",
278-
"@id": "semantic_similarity_score"
279-
},
280266
"similarity_measure": {
281267
"@id": "similarity_measure"
282268
},
@@ -321,9 +307,6 @@
321307
"ExtensionDefinition": {
322308
"@id": "ExtensionDefinition"
323309
},
324-
"LiteralMapping": {
325-
"@id": "owl:Axiom"
326-
},
327310
"Mapping": {
328311
"@id": "owl:Axiom"
329312
},
@@ -336,6 +319,12 @@
336319
"MappingSetReference": {
337320
"@id": "MappingSetReference"
338321
},
322+
"NoTermFound": {
323+
"@id": "NoTermFound"
324+
},
325+
"Prefix": {
326+
"@id": "Prefix"
327+
},
339328
"Propagatable": {
340329
"@id": "Propagatable"
341330
}

0 commit comments

Comments
 (0)