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

Add new "literal profile" solution based on "subject_label" and "object_label" #384

Merged
merged 16 commits into from
Aug 9, 2024
Merged
Changes from 6 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
110 changes: 24 additions & 86 deletions src/sssom_schema/schema/sssom_schema.yaml
gouttegd marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ enums:
meaning: rdfs:Datatype
rdf property:
meaning: rdf:Property
sssom literal:
matentzn marked this conversation as resolved.
Show resolved Hide resolved
gouttegd marked this conversation as resolved.
Show resolved Hide resolved
gouttegd marked this conversation as resolved.
Show resolved Hide resolved
description: A special type of literal that is used in SSSOM files to express that the subject_id is not an entity reference.
see_also:
- https://mapping-commons.github.io/sssom/sssom-profiles/
- https://github.com/mapping-commons/sssom/issues/234
predicate_modifier_enum:
permissible_values:
Not: Negating the mapping predicate. The meaning of the triple becomes subject_id is not a predicate_id match to object_id.
Expand Down Expand Up @@ -118,33 +123,12 @@ slots:
subject_id:
description: The ID of the subject of the mapping.
range: EntityReference
required: true
mappings:
- owl:annotatedSource
slot_uri: owl:annotatedSource
examples:
- value: HP:0009894
description: The CURIE denoting the Human Phenotype Ontology concept of 'Thickened ears'
literal:
description: The literal being mapped
range: string
required: true
mappings:
- owl:annotatedSource
slot_uri: owl:annotatedTarget
examples:
- value: "Alzheimer"
description: A string referring to some thing.
literal_datatype:
description: The datatype of the literal being mapped
range: uri
required: false
mappings:
- rdf:datatype
slot_uri: rdf:datatype
examples:
- value: xsd:string
description: A string referring to some thing.
subject_label:
description: The label of subject of the mapping
range: string
Expand Down Expand Up @@ -235,7 +219,6 @@ slots:
mappings:
- owl:annotatedTarget
range: EntityReference
required: true
slot_uri: owl:annotatedTarget
examples:
- value: HP:0009894
Expand Down Expand Up @@ -386,20 +369,6 @@ slots:
examples:
- value: http://purl.obolibrary.org/obo/mondo/releases/2021-01-30/mondo.owl
description: (A persistent Version IRI pointing to the Mondo version '2021-01-30')
literal_source:
description: URI of ontology source for the literal.
range: EntityReference
examples:
- value: obo:mondo.owl
description: A persistent OBO CURIE pointing to the latest version of the Mondo ontology.
- value: wikidata:Q7876491
description: A Wikidata identifier for the Uberon ontology resource.
literal_source_version:
description: Version IRI or version string of the source of the literal.
range: string
examples:
- value: http://purl.obolibrary.org/obo/mondo/releases/2021-01-30/mondo.owl
description: (A persistent Version IRI pointing to the Mondo version '2021-01-30')
object_source:
description: URI of vocabulary or identifier source for the object.
range: EntityReference
Expand Down Expand Up @@ -526,13 +495,6 @@ slots:
examples:
- value: semapv:Stemming
- value: semapv:StopWordRemoval
literal_preprocessing:
description: Method of preprocessing applied to the literal.
range: EntityReference
multivalued: true
examples:
- value: semapv:Stemming
- value: semapv:StopWordRemoval
curation_rule:
description: A curation rule is a (potentially) complex condition executed by an agent that led to the establishment of a mapping.
Curation rules often involve complex domain-specific considerations, which are hard to capture in an automated fashion. The curation
Expand Down Expand Up @@ -698,55 +660,31 @@ classes:
- object_preprocessing
- semantic_similarity_score
- semantic_similarity_measure
- see_also
- issue_tracker_item
- other
- comment
class_uri: owl:Axiom
literal mapping:
description: Represents an individual mapping between a literal and an entity.
Note that this schema has been created on 01.08.2023 and is subject to change.
see_also:
- https://mapping-commons.github.io/sssom/sssom-profiles/
slots:
- literal
- literal_datatype
- predicate_id
- predicate_label
- predicate_modifier
- object_id
- object_label
- object_category
- mapping_justification
- author_id
- author_label
- reviewer_id
- reviewer_label
- creator_id
- creator_label
- license
- literal_source
- literal_source_version
- object_type
- object_source
- object_source_version
- mapping_provider
- mapping_source
- mapping_cardinality
- mapping_tool
- mapping_tool_version
- mapping_date
- confidence
- object_match_field
- match_string
- literal_preprocessing
- object_preprocessing
- similarity_score
- similarity_measure
matentzn marked this conversation as resolved.
Show resolved Hide resolved
- see_also
- issue_tracker_item
- other
- comment
class_uri: owl:Axiom
rules:
matentzn marked this conversation as resolved.
Show resolved Hide resolved
- preconditions:
slot_conditions:
subject_type:
equals_string: "sssom literal"
postconditions:
slot_conditions:
subject_label:
required: true
- preconditions:
slot_conditions:
subject_type:
none_of:
equals_string: "sssom literal"
postconditions:
slot_conditions:
subject_id:
required: true
mapping registry:
description: A registry for managing mapping sets. It holds a set of
mapping set references, and can import other registries.
Expand Down
Loading