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

prov update #193

Merged
merged 1 commit into from
Dec 16, 2024
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
34 changes: 3 additions & 31 deletions src/distribution/unreleased.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ prefixes:
dlthing: https://concepts.datalad.org/s/thing/unreleased/
dpv: https://w3id.org/dpv#
foaf: http://xmlns.com/foaf/0.1/
# custom prefix to use Git's SHA identifiers as schema identifiers
gitsha: https://concepts.datalad.org/ns/gitsha/
linkml: https://w3id.org/linkml/
obo: http://purl.obolibrary.org/obo/
owl: http://www.w3.org/2002/07/owl#
Expand Down Expand Up @@ -97,6 +99,7 @@ emit_prefixes:
- CiTO
- dcat
- dldist
- gitsha
- licenses
- marcrel
- obo
Expand Down Expand Up @@ -442,37 +445,6 @@ slots:


classes:
#
# agents
#
Person:
class_uri: dldist:Person
is_a: Agent
description: >-
Person agents are people.
slots:
- address
- affiliation
- email
slot_usage:
affiliation:
multivalued: true
exact_mappings:
- foaf:Person
- prov:Person

Organization:
class_uri: dldist:Organization
is_a: Agent
description: >-
A social or legal instititution such as a company, a society,
or a university.
slots:
- address
exact_mappings:
- foaf:Organization
- prov:Organization

#
# entities
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"object": "obo:NCIT_C95650",
"had_roles": [
"obo:NCIT_C42645"
],
"schema_type": "dlprov:EntityInfluence"
]
}
],
"@type": "Distribution"
Expand Down
33 changes: 17 additions & 16 deletions src/distribution/unreleased/examples/Resource-gitcommit.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
{
"id": "https://concepts.datalad.org/ns/gitsha/8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f",
"id": "gitsha:8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f",
"relations": [
{
"id": "https://concepts.datalad.org/ns/gitsha/8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#authoring",
"id": "gitsha:8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#authoring",
"schema_type": "dlprov:Activity",
"type": "obo:NCIT_C25625",
"qualified_association": [
"ended_at": "2001-02-28T18:27:04+02:00",
"qualified_relations": [
{
"object": "exthisds:#gituser_doe@example.com",
"had_roles": [
"marcrel:aut"
]
}
],
"ended_at": "2001-02-28T18:27:04+02:00"
]
},
{
"id": "https://concepts.datalad.org/ns/gitsha/8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#committing",
"id": "gitsha:8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#committing",
"schema_type": "dlprov:Activity",
"type": "obo:NCIT_C42882",
"qualified_association": [
"ended_at": "2002-05-30T09:30:10+06:00",
"qualified_relations": [
{
"object": "exthisds:#gituser_doe@example.com",
"had_roles": [
Expand All @@ -28,9 +29,8 @@
}
],
"was_informed_by": [
"https://concepts.datalad.org/ns/gitsha/8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#authoring"
],
"ended_at": "2002-05-30T09:30:10+06:00"
"gitsha:8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#authoring"
]
}
],
"has_attributes": [
Expand Down Expand Up @@ -65,18 +65,19 @@
}
],
"schema_type": "dldist:Resource",
"qualified_derivation": [
"qualified_relations": [
{
"object": "https://concepts.datalad.org/ns/gitsha/a52963ce19a3e3628e9976555ffc8c422b29f054",
"object": "gitsha:a52963ce19a3e3628e9976555ffc8c422b29f054",
"had_roles": [
"owl:priorVersion"
],
"schema_type": "dlprov:Derivation",
"had_activity": "obo:NCIT_C25446"
]
}
],
"was_derived_from": [
"gitsha:a52963ce19a3e3628e9976555ffc8c422b29f054"
],
"was_generated_by": [
"https://concepts.datalad.org/ns/gitsha/8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#committing"
"gitsha:8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#committing"
],
"is_version_of": "https://concepts.datalad.org/ns/dataset-uuid/cec1da92-0dbd-4df3-8602-7c72b2d12854",
"version": "8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f",
Expand Down
26 changes: 11 additions & 15 deletions src/distribution/unreleased/examples/Resource-gitcommit.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
id: https://concepts.datalad.org/ns/gitsha/8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f
id: gitsha:8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f
# link to datalad dataset
is_version_of: https://concepts.datalad.org/ns/dataset-uuid/cec1da92-0dbd-4df3-8602-7c72b2d12854
has_attributes:
Expand All @@ -24,45 +24,41 @@ has_attributes:
# this only *single* version label we can have without making additional
# assumptions is the commit gitsha
version: 8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f
qualified_derivation:
was_derived_from:
- gitsha:a52963ce19a3e3628e9976555ffc8c422b29f054
qualified_relations:
# parent commit(s)
- object: https://concepts.datalad.org/ns/gitsha/a52963ce19a3e3628e9976555ffc8c422b29f054
# "change", ie. unknown what was done
# there are plenty of terms to drill down on the nature
# of the derivation
# - obo:NCIT_C64266: merge
# - obo:NCIT_C64911: add
had_activity: obo:NCIT_C25446
- object: gitsha:a52963ce19a3e3628e9976555ffc8c422b29f054
had_roles:
- owl:priorVersion
relations:
# author activity
# this is modeled as a dedicated action so that the
# author time can be captured as an independent property.
# otherwise the author role could be added above
- id: https://concepts.datalad.org/ns/gitsha/8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#authoring
- id: gitsha:8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#authoring
schema_type: dlprov:Activity
# "preparation"
type: obo:NCIT_C25625
ended_at: "2001-02-28T18:27:04+02:00"
qualified_association:
qualified_relations:
# author of the commit
- object: exthisds:#gituser_doe@example.com
had_roles:
- marcrel:aut
# commit activity
- id: https://concepts.datalad.org/ns/gitsha/8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#committing
- id: gitsha:8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#committing
schema_type: dlprov:Activity
# go for activity type: "release", but could also be
# "label as such" (obo:NCIT_C64662)
type: obo:NCIT_C42882
ended_at: "2002-05-30T09:30:10+06:00"
qualified_association:
qualified_relations:
# creator of the commit
- object: exthisds:#gituser_doe@example.com
had_roles:
- marcrel:cre
was_informed_by:
- https://concepts.datalad.org/ns/gitsha/8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#authoring
- gitsha:8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#authoring
was_generated_by:
- https://concepts.datalad.org/ns/gitsha/8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#committing
- gitsha:8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#committing
2 changes: 1 addition & 1 deletion src/distribution/unreleased/examples/Resource-study.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
],
"schema_type": "dlprov:Activity",
"type": "obo:NCIT_C71104",
"qualified_association": [
"qualified_relations": [
{
"object": "exthisds:#s001",
"had_roles": [
Expand Down
2 changes: 1 addition & 1 deletion src/distribution/unreleased/examples/Resource-study.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ relations:
value: https://eudract.ema.europa.eu
# registered clinical trial
type: obo:NCIT_C71104
qualified_association:
qualified_relations:
- object: exthisds:#s001
had_roles:
# study participant
Expand Down
Loading
Loading