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

Extend custom properties to quantitative properties #127

Merged
merged 1 commit into from
Mar 27, 2024
Merged

Extend custom properties to quantitative properties #127

merged 1 commit into from
Mar 27, 2024

Conversation

mih
Copy link
Contributor

@mih mih commented Mar 27, 2024

Main changes:

  • step away from RDFS like pseudo-definition of properties -- this only looked good superficially
  • introduce has_property property to hold quantitative and qualitative properties via the established meta_type approach.
  • Property now uses is_about for specifying the purpose/topic of a property
  • Property now uses type to indicate the type of the value (pretty much for casting use cases, because value itself has a range of string)
  • Property now has is_defined_by to indicate the proper term that defined the value (string) or takes its place
  • QuantitativeProperty is a Property with a unit
  • Property.value is no longer multivalued -- no known use case. Given that a type declaration is needed already and casting must be performed by consumers, an array-like encoding of some kind (JSON?) could be chosen and indicated by a user without being enforced by the schema.

As a demo (for now) we also introduce initial structures to associate an Activity (like a study) with an entity (like a resource), and agents (like study participants) with an activity:

  • was_generated_by
  • was_associated_with
  • qualified_association

They follow the standard patterns already established for other relationships.

Closes #110

Main changes:

- step away from RDFS like pseudo-definition of properties -- this only
  looked good superficially
- introduce `has_property` property to hold quantitative and qualitative
  properties via the established `meta_type` approach.
- `Property` now uses `is_about` for specifying the purpose/topic of a
  property
- `Property` now uses `type` to indicate the type of the value (pretty
  much for casting use cases, because `value` itself has a range of
  `string`)
- `Property` now has `is_defined_by` to indicate the proper term that
  defined the value (string) or takes its place
- `QuantitativeProperty` is a `Property` with a unit
- `Property.value` is no longer multivalued -- no known use case. Given
  that a type declaration is needed already and casting must be
  performed by consumers, an array-like encoding of some kind (JSON?)
  could be chosen and indicated by a user without being enforced by the
  schema.

As a demo (for now) we also introduce initial structures to associate
an Activity (like a study) with an entity (like a resource), and agents
(like study participants) with an activity:

- `was_generated_by`
- `was_associated_with`
- `qualified_association`

They follow the standard patterns already established for other
relationships.

Closes #110
@mih mih merged commit 40958ef into main Mar 27, 2024
3 checks passed
@mih mih deleted the ddist branch March 27, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dedicated support for quantitative measurements
1 participant