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

associating an action (project, expedition, cruise) with an organization #137

Open
smrgeoinfo opened this issue Jun 26, 2017 · 3 comments
Open

Comments

@smrgeoinfo
Copy link

smrgeoinfo commented Jun 26, 2017

Action appears to be the only way to represent projects/initiatives/expedition/cruise that are the context for many sampling and analysis activities. There appear to be two ways to bind an activity like this to a sponsoring (e.g. funding, logistics) organization:

  1. use the organization association on method. Problem-- what is the organization property on method supposed to mean? Since method has no binding to equipment or time, it cannot represent a particular instance of the method, rather its a representation of the method as an abstract process. Why does this have a tight binding to an organization? the method could be executed by many organizations.
  2. the torturous path action-actionby-affiliations-organization. But Person is mandatory on affiliations, where organization is optional; this means to make this work you have to have a dummy person for the affiliations.personid to generate a valid affiliations instance.

Solution: Affiliation should have constraint (personid or organizationid) is not null. Looks like enforcing this in Postgresql needs a function. At least make both person and organiztion nilable.

@smrgeoinfo smrgeoinfo changed the title associating an action with an organization associating an action (project, expedition, cruise) with an organization Jun 26, 2017
@klehnert55
Copy link

klehnert55 commented Jun 26, 2017 via email

@horsburgh
Copy link
Member

@smrgeoinfo - you might also consider grouping results from a project/initiative/expedition/cruise into a Dataset.

@aufdenkampe
Copy link
Member

I just noticed this issue.

Using #2 above (i.e. via action-actionby-affiliations-organization) with a general "Staff" person was intent, so that we could implement the constraint in all RDBMS without the need for a function.

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

No branches or pull requests

4 participants