Class: Resource
Resource published or curated by a single agent.
URI: dldist:Resource
erDiagram
Resource {
W3CISO8601 date_modified
W3CISO8601 date_published
stringList keyword
uri landing_page
string version
uriorcurie id
uriorcurie schema_type
uriorcurie type
}
Statement {
}
Property {
uriorcurie id
uriorcurie schema_type
uriorcurie type
}
Thing {
uriorcurie id
uriorcurie schema_type
uriorcurie type
}
AttributeSpecification {
uriorcurie schema_type
uriorcurie type
uriorcurie range
string value
}
Activity {
W3CISO8601 ended_at
W3CISO8601 started_at
uriorcurie id
uriorcurie schema_type
uriorcurie type
}
Agent {
uriorcurie id
uriorcurie schema_type
uriorcurie type
}
Relationship {
}
Identifier {
uriorcurie creator
string notation
string schema_agency
}
Location {
uriorcurie id
uriorcurie schema_type
uriorcurie type
}
Entity {
uriorcurie id
uriorcurie schema_type
uriorcurie type
}
Resource ||--|o Agent : "contact_point"
Resource ||--|o Resource : "is_part_of"
Resource ||--|o Resource : "is_version_of"
Resource ||--}o Identifier : "identifiers"
Resource ||--}o Relationship : "qualified_relations"
Resource ||--}o Agent : "was_attributed_to"
Resource ||--}o Entity : "was_derived_from"
Resource ||--}o Activity : "was_generated_by"
Resource ||--}o Thing : "relations"
Resource ||--}o AttributeSpecification : "has_attributes"
Resource ||--}o Statement : "is_characterized_by"
Statement ||--|| Thing : "object"
Statement ||--|| Property : "predicate"
Property ||--}o Thing : "relations"
Property ||--}o AttributeSpecification : "has_attributes"
Property ||--}o Statement : "is_characterized_by"
Thing ||--}o Thing : "relations"
Thing ||--}o AttributeSpecification : "has_attributes"
Thing ||--}o Statement : "is_characterized_by"
AttributeSpecification ||--|| Property : "predicate"
AttributeSpecification ||--}o AttributeSpecification : "has_attributes"
AttributeSpecification ||--}o Statement : "is_characterized_by"
Activity ||--|o Location : "at_location"
Activity ||--}o Identifier : "identifiers"
Activity ||--}o Relationship : "qualified_relations"
Activity ||--}o Agent : "was_associated_with"
Activity ||--}o Activity : "was_informed_by"
Activity ||--}o Thing : "relations"
Activity ||--}o AttributeSpecification : "has_attributes"
Activity ||--}o Statement : "is_characterized_by"
Agent ||--}o Agent : "acted_on_behalf_of"
Agent ||--|o Location : "at_location"
Agent ||--}o Identifier : "identifiers"
Agent ||--}o Relationship : "qualified_relations"
Agent ||--}o Thing : "relations"
Agent ||--}o AttributeSpecification : "has_attributes"
Agent ||--}o Statement : "is_characterized_by"
Relationship ||--|| Thing : "object"
Relationship ||--}| Role : "had_roles"
Location ||--}o Identifier : "identifiers"
Location ||--}o Relationship : "qualified_relations"
Location ||--}o Thing : "relations"
Location ||--}o AttributeSpecification : "has_attributes"
Location ||--}o Statement : "is_characterized_by"
Entity ||--}o Identifier : "identifiers"
Entity ||--}o Relationship : "qualified_relations"
Entity ||--}o Agent : "was_attributed_to"
Entity ||--}o Entity : "was_derived_from"
Entity ||--}o Activity : "was_generated_by"
Entity ||--}o Thing : "relations"
Entity ||--}o AttributeSpecification : "has_attributes"
Entity ||--}o Statement : "is_characterized_by"
Inheritance
- Thing [ ThingMixin]
- Entity
- Resource
- Entity
Slots
Name | Cardinality and Range | Description | Inheritance |
---|---|---|---|
contact_point | 0..1 Agent |
Relevant contact information for the subject | direct |
date_modified | 0..1 W3CISO8601 |
Date on which the resource was (last) changed, updated or modified | direct |
date_published | 0..1 W3CISO8601 |
Date on which the resource was (last) changed, updated or modified | direct |
is_part_of | 0..1 Resource |
A related resource that is included either physically or logically in the des... | direct |
is_version_of | 0..1 Resource |
A related resource of which the described resource is a version | direct |
keyword | * String |
One or more keywords or tags describing the resource | direct |
landing_page | 0..1 Uri |
A Web page that can be navigated to in a Web browser to gain access to a reso... | direct |
version | 0..1 String |
Version indicator (name or identifier) of a resource | direct |
identifiers | * Identifier |
An unambiguous reference to the subject within a given context | Entity |
qualified_relations | * Relationship |
Characterizes the relationship or role of an entity with respect to the subje... | Entity |
was_attributed_to | * Agent |
Attribution is the ascribing of an entity to an agent | Entity |
was_derived_from | * Entity |
Derivation is a transformation of an entity into another, an update of an ent... | Entity |
was_generated_by | * Activity |
Generation is the completion of production of a new entity by an activity | Entity |
id | 1 Uriorcurie |
Globally unique identifier of a metadata object, such as a Thing |
Thing |
relations | * Thing |
Declares an unqualified relation of the subject Thing to another Thing |
Thing |
has_attributes | * AttributeSpecification |
Declares a relation that associates a Thing (or another attribute) with an ... |
ThingMixin |
is_characterized_by | * Statement |
Qualifies relationships between a subject Thing and an object Thing with ... |
ThingMixin |
schema_type | 0..1 Uriorcurie |
Type designator of a schema element for validation and schema structure handl... | ThingMixin |
type | 0..1 Uriorcurie |
State that the subject is an instance of a particular RDF class | ThingMixin |
Usages
used by | used in | type | used |
---|---|---|---|
Distribution | is_distribution_of | range | Resource |
Resource | is_part_of | range | Resource |
Resource | is_version_of | range | Resource |
DataService | is_part_of | range | Resource |
DataService | is_version_of | range | Resource |
Identifier and Mapping Information
Schema Source
- from schema: https://concepts.datalad.org/s/distribution/unreleased
Mappings
Mapping Type | Mapped Value |
---|---|
self | dldist:Resource |
native | dldist:Resource |
exact | dcat:Resource |
Examples
Example: Resource-study
id: exthisdsver:#
relations:
# study participants (role assigned below)
exthisds:#s001:
schema_type: dlprov:Agent
has_attributes:
- predicate: foaf:name
value: s001
is_characterized_by:
# handedness
- predicate: obo:PATO_0002201
# ambidextrous
object: obo:PATO_0002204
exthisds:#s002:
schema_type: dlprov:Agent
is_characterized_by:
# biological sex
- predicate: obo:PATO_0000047
# male
object: obo:PATO_0000384
has_attributes:
- predicate: foaf:name
value: s002
# age in years
# length of a person's life, stated in years since birth
- predicate: obo:NCIT_C37908
value: "36"
has_attributes:
- predicate: foaf:name
value: "age (years)"
is_characterized_by:
# unit
- predicate: obo:UO_0000000
object: obo:UO_0000036
# study activity
exthisds:#study_2005-004406-93:
schema_type: dlprov:Activity
has_attributes:
- predicate: dcterms:title
value: "Study about the effectiveness of a disease treatment"
- predicate: ADMS:identifier
has_attributes:
- predicate: skos:notation
value: 2005-004406-93
- predicate: ADMS:schema_agency
value: https://eudract.ema.europa.eu
# registered clinical trial
type: obo:NCIT_C71104
qualified_relations:
- object: exthisds:#s001
had_roles:
# study participant
- obo:NCIT_C142710
# healthy control
- obo:NCIT_C94342
- object: exthisds:#s002
had_roles:
- obo:NCIT_C142710
# subject Assigned to Protocol Treatment Arm
- obo:NCIT_C173188
was_generated_by:
- exthisds:#study_2005-004406-93
Example: Resource-dataladdataset
id: https://concepts.datalad.org/ns/dataset-uuid/cec1da92-0dbd-4df3-8602-7c72b2d12854
# we need a definition for a DataLad dataset
#type: ...
has_attributes:
- predicate: dcterms:identifier
type: ADMS:Identifier
has_attributes:
- predicate: skos:notation
value: cec1da92-0dbd-4df3-8602-7c72b2d12854
- predicate: ADMS:schemaAgency
value: https://datalad.org
# here could be any additional properties or linked resources
# that are related to the dataset in general and not just to a particular
# version
#is_about: ...
Example: Resource-gitcommit
id: gitsha:8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f
# link to datalad dataset
is_version_of: https://concepts.datalad.org/ns/dataset-uuid/cec1da92-0dbd-4df3-8602-7c72b2d12854
has_attributes:
# two git-tags associated with the commit
# they must be unique across all commits in the repo, hence we
# use the context entity for the version-less dataset as the
# agency/scope
- predicate: dcterms:identifier
value: final2
has_attributes:
- predicate: ADMS:schemaAgency
value: exthisds:#
- predicate: dcterms:identifier
value: latest
has_attributes:
- predicate: ADMS:schemaAgency
value: exthisds:#
# commit message
- predicate: dcterms:description
value: >
This message describes the changes done for this particular
Dataset version.
# this only *single* version label we can have without making additional
# assumptions is the commit gitsha
version: 8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f
was_derived_from:
- gitsha:a52963ce19a3e3628e9976555ffc8c422b29f054
qualified_relations:
# parent commit(s)
- 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
gitsha:8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#authoring:
schema_type: dlprov:Activity
# "preparation"
type: obo:NCIT_C25625
ended_at: "2001-02-28T18:27:04+02:00"
qualified_relations:
# author of the commit
- object: exthisds:#gituser_doe@example.com
had_roles:
- marcrel:aut
# commit activity
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_relations:
# creator of the commit
- object: exthisds:#gituser_doe@example.com
had_roles:
- marcrel:cre
was_informed_by:
- gitsha:8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#authoring
was_generated_by:
- gitsha:8d6f033bb2a6109b2c4d64d6f27b0feb181e4d0f#committing
LinkML Source
Direct
name: Resource
description: Resource published or curated by a single agent.
notes:
- Try to make having specific subtypes of this class unnecessary
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- dcat:Resource
is_a: Entity
slots:
- contact_point
- date_modified
- date_published
- is_part_of
- is_version_of
- keyword
- landing_page
- version
slot_usage:
is_part_of:
name: is_part_of
range: Resource
is_version_of:
name: is_version_of
range: Resource
class_uri: dldist:Resource
Induced
name: Resource
description: Resource published or curated by a single agent.
notes:
- Try to make having specific subtypes of this class unnecessary
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- dcat:Resource
is_a: Entity
slot_usage:
is_part_of:
name: is_part_of
range: Resource
is_version_of:
name: is_version_of
range: Resource
attributes:
contact_point:
name: contact_point
description: Relevant contact information for the subject.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- dcat:contactPoint
rank: 1000
slot_uri: dldist:contact_point
alias: contact_point
owner: Resource
domain_of:
- Resource
range: Agent
date_modified:
name: date_modified
description: Date on which the resource was (last) changed, updated or modified.
notes:
- successful validation with `datetime` as a range and linkml-jsonschema-validate`
depends on a patched linkml, see https://github.com/linkml/linkml/issues/1806
- a related problem also exists for `linkml-validate`, we cannot have a more specific
range right now
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- dcterms:modified
rank: 1000
slot_uri: dldist:date_modified
alias: date_modified
owner: Resource
domain_of:
- Distribution
- Resource
range: W3CISO8601
date_published:
name: date_published
description: Date on which the resource was (last) changed, updated or modified.
notes:
- successful validation with `datetime` as a range and linkml-jsonschema-validate`
depends on a patched linkml, see https://github.com/linkml/linkml/issues/1806
- a related problem also exists for `linkml-validate`, we cannot have a more specific
range right now
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- schema:datePublished
rank: 1000
slot_uri: dldist:date_published
alias: date_published
owner: Resource
domain_of:
- Distribution
- Resource
range: W3CISO8601
is_part_of:
name: is_part_of
description: A related resource that is included either physically or logically
in the described resource.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- dcterms:isPartOf
rank: 1000
slot_uri: dldist:is_part_of
alias: is_part_of
owner: Resource
domain_of:
- Resource
range: Resource
is_version_of:
name: is_version_of
description: A related resource of which the described resource is a version.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- dcat:isVersionOf
rank: 1000
slot_uri: dldist:is_version_of
alias: is_version_of
owner: Resource
domain_of:
- Resource
range: Resource
keyword:
name: keyword
description: One or more keywords or tags describing the resource.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- dcat:keyword
- schema:keywords
rank: 1000
slot_uri: dldist:keyword
alias: keyword
owner: Resource
domain_of:
- Resource
range: string
multivalued: true
landing_page:
name: landing_page
description: A Web page that can be navigated to in a Web browser to gain access
to a resource, its distributions and/or additional information.
comments:
- If the distribution(s) are accessible only through a landing page (i.e., direct
download URLs are not known), then the landing page link SHOULD be duplicated
as `dldist:access_url` on a distribution.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
see_also:
- https://www.w3.org/TR/vocab-dcat-3/#example-landing-page
exact_mappings:
- dcat:landingPage
- foaf:page
rank: 1000
slot_uri: dldist:landing_page
alias: landing_page
owner: Resource
domain_of:
- Resource
range: uri
version:
name: version
description: Version indicator (name or identifier) of a resource.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- dcat:version
- pav:version
rank: 1000
slot_uri: dldist:version
alias: version
owner: Resource
domain_of:
- Resource
range: string
identifiers:
name: identifiers
description: An unambiguous reference to the subject within a given context.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- dcterms:identifier
- schema:identifier
- ADMS:identifier
rank: 1000
slot_uri: dlidentifiers:identifier
alias: identifiers
owner: Resource
domain_of:
- Location
- InstanteneousEvent
- Agent
- Activity
- Entity
range: Identifier
multivalued: true
inlined: true
inlined_as_list: true
qualified_relations:
name: qualified_relations
description: Characterizes the relationship or role of an entity with respect
to the subject entity.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- dcat:qualifiedRelation
rank: 1000
domain: Thing
slot_uri: dlroles:qualified_relation
alias: qualified_relations
owner: Resource
domain_of:
- Location
- InstanteneousEvent
- Agent
- Activity
- Entity
range: Relationship
multivalued: true
inlined: true
inlined_as_list: true
was_attributed_to:
name: was_attributed_to
description: Attribution is the ascribing of an entity to an agent.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- prov:wasAttributedTo
rank: 1000
domain: Entity
slot_uri: dlprov:was_attributed_to
alias: was_attributed_to
owner: Resource
domain_of:
- Entity
range: Agent
multivalued: true
inlined: false
was_derived_from:
name: was_derived_from
description: Derivation is a transformation of an entity into another, an update
of an entity resulting in a new one, or the construction of a new entity based
on a pre-existing entity.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- prov:wasDerivedFrom
rank: 1000
domain: Entity
slot_uri: dlprov:was_derived_from
alias: was_derived_from
owner: Resource
domain_of:
- Entity
range: Entity
multivalued: true
inlined: false
was_generated_by:
name: was_generated_by
description: Generation is the completion of production of a new entity by an
activity. This entity did not exist before generation and becomes available
for usage after this generation.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- prov:wasAttributedTo
rank: 1000
domain: Entity
slot_uri: dlprov:was_generated_by
alias: was_generated_by
owner: Resource
domain_of:
- Entity
range: Activity
multivalued: true
inlined: false
id:
name: id
description: Globally unique identifier of a metadata object, such as a `Thing`.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- dcterms:identifier
- schema:identifier
- ADMS:identifier
rank: 1000
slot_uri: dlthings:id
identifier: true
alias: id
owner: Resource
domain_of:
- Thing
range: uriorcurie
required: true
relations:
name: relations
description: Declares an unqualified relation of the subject `Thing` to another
`Thing`. This schema slot is used to define related things inline. If such a
definition is not needed. A qualified relationship can be declared directly
using the `is_characterized_by` slot.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- dcat:relation
- dcterms:relation
rank: 1000
domain: Thing
slot_uri: dlthings:relation
alias: relations
owner: Resource
domain_of:
- Thing
symmetric: true
relational_role: OBJECT
range: Thing
multivalued: true
inlined: true
inlined_as_list: false
has_attributes:
name: has_attributes
description: Declares a relation that associates a `Thing` (or another attribute)
with an attribute, where an attribute is an intrinsic characteristic, such as
a quality, capability, disposition, function, or is an externally derived attribute
determined from some descriptor (e.g. a quantity, position, label/identifier).
Technically, this declaration is done via an `AttributeSpecification` that combines
a `predicate` with a value declaration and the attribute-related slots of a
`Thing`. Importantly, such attributes are declared inline, because they do not
have a unique identifier. If an identifier is available, a `Thing` declaration
(see `relation`), and a qualification of that relationship via a `Statement`
(see `is_characterized_by`) should be preferred.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- sio:SIO_000008
rank: 1000
slot_uri: dlthings:has_attributes
alias: has_attributes
owner: Resource
domain_of:
- ThingMixin
range: AttributeSpecification
multivalued: true
inlined: true
inlined_as_list: true
is_characterized_by:
name: is_characterized_by
description: Qualifies relationships between a subject `Thing` and an object `Thing`
with a `Statement` declaring a `predicate` on the nature of the relationship.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- obo:RO_0000053
rank: 1000
slot_uri: dlthings:is_characterized_by
alias: is_characterized_by
owner: Resource
domain_of:
- ThingMixin
range: Statement
multivalued: true
inlined: true
inlined_as_list: true
schema_type:
name: schema_type
annotations:
sh:path:
tag: sh:path
value: dlthings:schema_type
description: Type designator of a schema element for validation and schema structure
handling purposes. This is used to indicate specialized schema classes for properties
that accept a hierarchy of classes as their range.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- dcterms:type
rank: 1000
slot_uri: rdf:type
designates_type: true
alias: schema_type
owner: Resource
domain_of:
- ThingMixin
range: uriorcurie
type:
name: type
description: State that the subject is an instance of a particular RDF class.
from_schema: https://concepts.datalad.org/s/distribution/unreleased
exact_mappings:
- dcterms:type
rank: 1000
slot_uri: rdf:type
alias: type
owner: Resource
domain_of:
- ThingMixin
range: uriorcurie
class_uri: dldist:Resource