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 10 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
42 changes: 40 additions & 2 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 @@ -45,10 +45,15 @@ enums:
meaning: rdfs:Class
rdfs literal:
meaning: rdfs:Literal
description: "'rdfs literal' used in SSSOM files to express that an entity is represented by a literal."
matentzn marked this conversation as resolved.
Show resolved Hide resolved
see_also:
- https://mapping-commons.github.io/sssom/sssom-profiles/
- https://github.com/mapping-commons/sssom/issues/234
rdfs datatype:
meaning: rdfs:Datatype
rdf property:
meaning: rdf:Property

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,7 +123,6 @@ slots:
subject_id:
description: The ID of the subject of the mapping.
range: EntityReference
required: true
mappings:
- owl:annotatedSource
slot_uri: owl:annotatedSource
Expand Down Expand Up @@ -217,7 +221,6 @@ slots:
mappings:
- owl:annotatedTarget
range: EntityReference
required: true
slot_uri: owl:annotatedTarget
examples:
- value: HP:0009894
Expand Down Expand Up @@ -674,6 +677,41 @@ classes:
- other
- comment
class_uri: owl:Axiom
rules:
matentzn marked this conversation as resolved.
Show resolved Hide resolved
- preconditions:
slot_conditions:
subject_type:
equals_string: "rdfs literal"
postconditions:
slot_conditions:
subject_label:
required: true
- preconditions:
slot_conditions:
subject_type:
none_of:
equals_string: "rdfs literal"
postconditions:
slot_conditions:
subject_id:
required: true
- preconditions:
slot_conditions:
object_type:
equals_string: "rdfs literal"
postconditions:
slot_conditions:
object_label:
required: true
- preconditions:
slot_conditions:
object_type:
none_of:
equals_string: "rdfs literal"
postconditions:
slot_conditions:
object_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