Skip to content

Commit

Permalink
Merge pull request #124 from psychoinformatics-de/ddist
Browse files Browse the repository at this point in the history
Explore possibilities re influence classes
  • Loading branch information
mih authored Mar 26, 2024
2 parents 2b0ce87 + a0f3a3c commit 80be70f
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/examples/data-distribution/AgentInfluence-std.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"had_role": [
"marcrel:aut"
],
"agent": "https://orcid.org/0000-0001-6398-6370",
"@type": "AgentInfluence"
}
4 changes: 4 additions & 0 deletions src/examples/data-distribution/AgentInfluence-std.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Declare a person identified by an ORCID to have had the role of an author
agent: https://orcid.org/0000-0001-6398-6370
had_role:
- marcrel:aut
7 changes: 7 additions & 0 deletions src/examples/data-distribution/EntityInfluence-std.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"had_role": [
"dlco:is_about"
],
"entity": "https://en.wikipedia.org/wiki/Vulcan_(Star_Trek)#Mind_melds",
"@type": "EntityInfluence"
}
4 changes: 4 additions & 0 deletions src/examples/data-distribution/EntityInfluence-std.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Declare the topic of a subject to be Vulcan mind melds
entity: https://en.wikipedia.org/wiki/Vulcan_(Star_Trek)#Mind_melds
had_role:
- dlco:is_about
12 changes: 10 additions & 2 deletions src/linkml/schemas/data-distribution.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ slots:

agent:
slot_uri: dlco:agent
is_a: influencer
description: >-
References an agent which influenced an entity.
range: Agent
Expand Down Expand Up @@ -218,6 +219,7 @@ slots:

entity:
slot_uri: dlco:entity
is_a: influencer
description: >-
References an entity which influenced an entity.
range: Entity
Expand Down Expand Up @@ -441,8 +443,6 @@ slots:
range: string

type:
#slot_uri: dlco:type
#slot_uri: http://www.w3.org/1999/02/22-rdf-syntax-ns#type
slot_uri: RDF:type
designates_type: true
description: >-
Expand Down Expand Up @@ -740,6 +740,12 @@ classes:
slot_usage:
had_role:
multivalued: true
required: true
influencer:
# we cannot make it required. The equals_expression of,
# e.g. `AgentInfluence` does not kick in for value inference
# before validation errors out
#required: true
exact_mappings:
- prov:Influence

Expand All @@ -753,6 +759,7 @@ classes:
- agent
slot_usage:
agent:
required: true
equals_expression: "{influencer}"
todos:
- Ideally this would be a structured_alias to `influencer`. However, this does not seem to work at all in the way that it is described.
Expand Down Expand Up @@ -780,6 +787,7 @@ classes:
- entity
slot_usage:
entity:
required: true
equals_expression: "{influencer}"
todos:
- Ideally this would be a structured_alias to `influencer`. However, this does not seem to work at all in the way that it is described.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
schema: src/linkml/schemas/data-distribution.yaml
target_class: AgentInfluence
data_sources:
- src/examples/data-distribution/AgentInfluence-std.yaml
plugins:
JsonschemaValidationPlugin:
closed: true
include_range_class_descendants: false
RecommendedSlotsPlugin:
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
schema: src/linkml/schemas/data-distribution.yaml
target_class: EntityInfluence
data_sources:
- src/examples/data-distribution/EntityInfluence-std.yaml
plugins:
JsonschemaValidationPlugin:
closed: true
include_range_class_descendants: false
RecommendedSlotsPlugin:

0 comments on commit 80be70f

Please sign in to comment.