Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to add mapping_cardinality enum #52

Merged
merged 7 commits into from
Jun 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions schema/sssom-docs/Mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Represents an individual mapping between a pair of entities
URI: [sssom:Mapping](http://w3id.org/sssom/Mapping)


![img](http://yuml.me/diagram/nofunky;dir:TB/class/[Entity]<object_match_field%200..1-%20[Mapping&#124;subject_label:string%20%3F;subject_category:string%20%3F;predicate_label:string%20%3F;object_label:string%20%3F;object_category:string%20%3F;match_type:string%20%3F;creator_label:string%20%3F;license:string%20%3F;subject_source:string%20%3F;subject_source_version:string%20%3F;object_source:string%20%3F;object_source_version:string%20%3F;mapping_provider:string%20%3F;mapping_cardinality:string%20%3F;mapping_tool:string%20%3F;mapping_date:string%20%3F;confidence:double%20%3F;match_string:string%20%3F;subject_preprocessing:string%20%3F;object_preprocessing:string%20%3F;match_term_type:string%20%3F;semantic_similarity_score:double%20%3F;information_content_mica_score:double%20%3F;see_also:string%20%3F;other:string%20%3F;comment:string%20%3F],[Entity]<subject_match_field%200..1-%20[Mapping],[Entity]<creator_id%200..1-%20[Mapping],[Entity]<object_id%200..1-%20[Mapping],[Entity]<predicate_id%200..1-%20[Mapping],[Entity]<subject_id%200..1-%20[Mapping],[MappingSet]++-%20mappings%200..*>[Mapping],[MappingSet],[Entity])
![img](http://yuml.me/diagram/nofunky;dir:TB/class/[Entity]<object_match_field%200..1-%20[Mapping&#124;subject_label:string%20%3F;subject_category:string%20%3F;predicate_label:string%20%3F;object_label:string%20%3F;object_category:string%20%3F;match_type:string%20%3F;creator_label:string%20%3F;license:string%20%3F;subject_source:string%20%3F;subject_source_version:string%20%3F;object_source:string%20%3F;object_source_version:string%20%3F;mapping_provider:string%20%3F;mapping_cardinality:mapping_cardinality_enum%20%3F;mapping_tool:string%20%3F;mapping_date:string%20%3F;confidence:double%20%3F;match_string:string%20%3F;subject_preprocessing:string%20%3F;object_preprocessing:string%20%3F;match_term_type:string%20%3F;semantic_similarity_score:double%20%3F;information_content_mica_score:double%20%3F;see_also:string%20%3F;other:string%20%3F;comment:string%20%3F],[Entity]<subject_match_field%200..1-%20[Mapping],[Entity]<creator_id%200..1-%20[Mapping],[Entity]<object_id%200..1-%20[Mapping],[Entity]<predicate_id%200..1-%20[Mapping],[Entity]<subject_id%200..1-%20[Mapping],[MappingSet]++-%20mappings%200..*>[Mapping],[MappingSet],[Entity])

## Referenced by class

Expand Down Expand Up @@ -38,7 +38,7 @@ URI: [sssom:Mapping](http://w3id.org/sssom/Mapping)
* range: [String](types/String.md)
* [mapping_cardinality](mapping_cardinality.md) <sub>OPT</sub>
* Description: A string indicating whether this mapping is from a 1:1 (the subject_id maps to a single object_id), 1:n (the subject maps to more than one object_id), n:1, 1:0, 0:1 or n:n group. Note that this is a convenience field that should be derivable from the mapping set.
* range: [String](types/String.md)
* range:
* [mapping_date](mapping_date.md) <sub>OPT</sub>
* Description: The date the mapping was computed
* range: [String](types/String.md)
Expand Down
11 changes: 10 additions & 1 deletion schema/sssom.context.jsonld
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"_comments": "Auto generated from sssom.yaml by jsonldcontextgen.py version: 0.1.1\n Generation date: 2021-06-17 16:27\n Schema: sssom\n \n id: http://w3id.org/sssom/schema/\n description: Datamodel for Simple Standard for Sharing Ontology Mappings (SSSOM)\n license: https://creativecommons.org/publicdomain/zero/1.0/\n ",
"_comments": "Auto generated from sssom.yaml by jsonldcontextgen.py version: 0.1.1\n Generation date: 2021-06-22 10:25\n Schema: sssom\n \n id: http://w3id.org/sssom/schema/\n description: Datamodel for Simple Standard for Sharing Ontology Mappings (SSSOM)\n license: https://creativecommons.org/publicdomain/zero/1.0/\n ",
"@context": {
"dc": "http://purl.org/dc/terms/",
"dcterms": "http://purl.org/dc/terms/",
Expand All @@ -8,6 +8,7 @@
"owl": "http://www.w3.org/2002/07/owl#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"skos": "http://www.w3.org/2004/02/skos/core#",
"sssom": "http://w3id.org/sssom/",
"@vocab": "http://w3id.org/sssom/",
"confidence": {
Expand All @@ -20,6 +21,14 @@
"information_content_mica_score": {
"@type": "xsd:double"
},
"mapping_cardinality": {
"@context": {
"@vocab": "@null",
"text": "skos:notation",
"description": "skos:prefLabel",
"meaning": "@id"
}
},
"mapping_set_id": {
"@type": "@id"
},
Expand Down
1 change: 1 addition & 0 deletions schema/sssom.external.context.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,7 @@
"wb": "https://www.wormbase.org/get?name=",
"wb.rnai": "https://www.wormbase.org/species/c_elegans/rnai/",
"wd": "http://www.wikidata.org/entity/",
"webelements": "https://www.webelements.com/",
"wgs84": "http://www.w3.org/2003/01/geo/wgs84_pos#",
"wikidata": "http://www.wikidata.org/entity/",
"wikidata.property": "https://www.wikidata.org/wiki/Property:",
Expand Down
2 changes: 1 addition & 1 deletion schema/sssom.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type Mapping
objectSource: String
objectSourceVersion: String
mappingProvider: String
mappingCardinality: String
mappingCardinality: MappingCardinalityEnum
mappingTool: String
mappingDate: String
confidence: Double
Expand Down
Loading