Skip to content
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
Binary file modified project/excel/sssom_schema.xlsx
Binary file not shown.
1 change: 1 addition & 0 deletions project/graphql/sssom_schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ type MappingSet
objectSourceVersion: String
mappingProvider: Uri
mappingTool: String
mappingToolVersion: String
mappingDate: Date
subjectMatchField: [EntityReference]
objectMatchField: [EntityReference]
Expand Down
6 changes: 5 additions & 1 deletion project/jsonld/sssom_schema.context.jsonld
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"_comments": "Auto generated from sssom_schema.yaml by jsonldcontextgen.py version: 0.1.1\n Generation date: 2023-06-19T15:06:30\n Schema: sssom\n metamodel version: 1.7.0\n model version: None\n \n id: https://w3id.org/sssom/schema/\n description: Datamodel for Simple Standard for Sharing Ontological Mappings (SSSOM)\n license: https://creativecommons.org/publicdomain/zero/1.0/\n ",
"comments": {
"description": "Auto generated by LinkML jsonld context generator",
"generation_date": "2023-07-25T09:55:30",
"source": "sssom_schema.yaml"
},
"@context": {
"dc": "http://purl.org/dc/terms/",
"dcterms": "http://purl.org/dc/terms/",
Expand Down
8 changes: 5 additions & 3 deletions project/jsonld/sssom_schema.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,7 @@
"slot_uri": "https://w3id.org/sssom/mapping_tool_version",
"owner": "Mapping",
"domain_of": [
"MappingSet",
"Mapping"
],
"range": "string",
Expand Down Expand Up @@ -1707,6 +1708,7 @@
"object_source_version",
"mapping_provider",
"mapping_tool",
"mapping_tool_version",
"mapping_date",
"subject_match_field",
"object_match_field",
Expand Down Expand Up @@ -1814,9 +1816,9 @@
],
"metamodel_version": "1.7.0",
"source_file": "sssom_schema.yaml",
"source_file_date": "2023-06-19T14:51:37",
"source_file_size": 25627,
"generation_date": "2023-06-19T15:06:31",
"source_file_date": "2023-07-25T09:52:38",
"source_file_size": 25654,
"generation_date": "2023-07-25T09:55:31",
"@type": "SchemaDefinition",
"@context": [
"project/jsonld/sssom_schema.context.jsonld",
Expand Down
531 changes: 530 additions & 1 deletion project/jsonschema/sssom_schema.schema.json

Large diffs are not rendered by default.

457 changes: 206 additions & 251 deletions project/owl/sssom_schema.owl.ttl

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions project/protobuf/sssom_schema.proto
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ message MappingSet
string objectSourceVersion = 0
uri mappingProvider = 0
string mappingTool = 0
string mappingToolVersion = 0
date mappingDate = 0
repeated entityReference subjectMatchField = 0
repeated entityReference objectMatchField = 0
Expand Down
387 changes: 196 additions & 191 deletions project/shacl/sssom_schema.shacl.ttl

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion project/shex/sssom_schema.shex
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
BASE <https://w3id.org/sssom/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX linkml: <https://w3id.org/linkml/>
PREFIX pav: <http://purl.org/pav/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX dcterms: <http://purl.org/dc/terms/>


Expand Down Expand Up @@ -128,6 +128,7 @@ linkml:Sparqlpath xsd:string
<object_source_version> @linkml:String ? ;
<mapping_provider> @linkml:Uri ? ;
<mapping_tool> @linkml:String ? ;
<mapping_tool_version> @linkml:String ? ;
pav:authoredOn @linkml:Date ? ;
<subject_match_field> @<EntityReference> * ;
<object_match_field> @<EntityReference> * ;
Expand Down
3 changes: 2 additions & 1 deletion project/sqlschema/sssom_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ CREATE TABLE mapping_set (
object_source_version TEXT,
mapping_provider TEXT,
mapping_tool TEXT,
mapping_tool_version TEXT,
mapping_date DATE,
subject_match_field TEXT,
object_match_field TEXT,
Expand All @@ -83,7 +84,7 @@ CREATE TABLE mapping_set (
see_also TEXT,
other TEXT,
comment TEXT,
PRIMARY KEY (mappings, mapping_set_id, mapping_set_version, mapping_set_source, mapping_set_title, mapping_set_description, creator_id, creator_label, license, subject_type, subject_source, subject_source_version, object_type, object_source, object_source_version, mapping_provider, mapping_tool, mapping_date, subject_match_field, object_match_field, subject_preprocessing, object_preprocessing, see_also, other, comment)
PRIMARY KEY (mappings, mapping_set_id, mapping_set_version, mapping_set_source, mapping_set_title, mapping_set_description, creator_id, creator_label, license, subject_type, subject_source, subject_source_version, object_type, object_source, object_source_version, mapping_provider, mapping_tool, mapping_tool_version, mapping_date, subject_match_field, object_match_field, subject_preprocessing, object_preprocessing, see_also, other, comment)
);

CREATE TABLE mapping_set_reference (
Expand Down
6 changes: 5 additions & 1 deletion src/sssom_schema/context/sssom_schema.context.jsonld
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"_comments": "Auto generated from sssom_schema.yaml by jsonldcontextgen.py version: 0.1.1\n Generation date: 2023-06-19T15:06:30\n Schema: sssom\n metamodel version: 1.7.0\n model version: None\n \n id: https://w3id.org/sssom/schema/\n description: Datamodel for Simple Standard for Sharing Ontological Mappings (SSSOM)\n license: https://creativecommons.org/publicdomain/zero/1.0/\n ",
"comments": {
"description": "Auto generated by LinkML jsonld context generator",
"generation_date": "2023-07-25T09:55:30",
"source": "sssom_schema.yaml"
},
"@context": {
"dc": "http://purl.org/dc/terms/",
"dcterms": "http://purl.org/dc/terms/",
Expand Down
8 changes: 5 additions & 3 deletions src/sssom_schema/context/sssom_schema.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,7 @@
"slot_uri": "https://w3id.org/sssom/mapping_tool_version",
"owner": "Mapping",
"domain_of": [
"MappingSet",
"Mapping"
],
"range": "string",
Expand Down Expand Up @@ -1707,6 +1708,7 @@
"object_source_version",
"mapping_provider",
"mapping_tool",
"mapping_tool_version",
"mapping_date",
"subject_match_field",
"object_match_field",
Expand Down Expand Up @@ -1814,9 +1816,9 @@
],
"metamodel_version": "1.7.0",
"source_file": "sssom_schema.yaml",
"source_file_date": "2023-06-19T14:51:37",
"source_file_size": 25627,
"generation_date": "2023-06-19T15:06:31",
"source_file_date": "2023-07-25T09:52:38",
"source_file_size": 25654,
"generation_date": "2023-07-25T09:55:31",
"@type": "SchemaDefinition",
"@context": [
"project/jsonld/sssom_schema.context.jsonld",
Expand Down
6 changes: 5 additions & 1 deletion src/sssom_schema/datamodel/sssom_schema.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Auto generated from sssom_schema.yaml by pythongen.py version: 0.9.0
# Generation date: 2023-06-19T15:06:37
# Generation date: 2023-07-25T09:55:38
# Schema: sssom
#
# id: https://w3id.org/sssom/schema/
Expand Down Expand Up @@ -89,6 +89,7 @@ class MappingSet(YAMLRoot):
object_source_version: Optional[str] = None
mapping_provider: Optional[Union[str, URI]] = None
mapping_tool: Optional[str] = None
mapping_tool_version: Optional[str] = None
mapping_date: Optional[Union[str, XSDDate]] = None
subject_match_field: Optional[Union[Union[str, EntityReference], List[Union[str, EntityReference]]]] = empty_list()
object_match_field: Optional[Union[Union[str, EntityReference], List[Union[str, EntityReference]]]] = empty_list()
Expand Down Expand Up @@ -158,6 +159,9 @@ def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self.mapping_tool is not None and not isinstance(self.mapping_tool, str):
self.mapping_tool = str(self.mapping_tool)

if self.mapping_tool_version is not None and not isinstance(self.mapping_tool_version, str):
self.mapping_tool_version = str(self.mapping_tool_version)

if self.mapping_date is not None and not isinstance(self.mapping_date, XSDDate):
self.mapping_date = XSDDate(self.mapping_date)

Expand Down