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

Automatically attach metadata to new classes #283

Closed
cmungall opened this issue Nov 20, 2015 · 10 comments
Closed

Automatically attach metadata to new classes #283

cmungall opened this issue Nov 20, 2015 · 10 comments

Comments

@cmungall
Copy link

in OBO-Edit, anytime an editor creates a new class, they are automatically stamped with two annotation assertions:

  • created_by user
  • created date

It would be useful to have an option/configuration to do this in Protege.

@matthewhorridge
Copy link
Contributor

Chris, please can you clarify a couple of point?

  1. Can the user name be configured or is it obtained from the logged in user name?
  2. What format should the date be in?

@cmungall
Copy link
Author

We don't need a duplicate of existing functionality but for reference:

  1. Obtained entirely from the logged in username, I believe. Represented as a string
  2. ISO-8601, e.g. 2009-04-28T10:22:40Z. But note that this gets translated to an xsd:string in OWL which is suboptimal

Both use the http://www.geneontology.org/formats/oboInOwl# namespace

Do 'view source' here for an example
http://purl.obolibrary.org/obo/GO_0000968

Others should chime in on this ticket with their preferences, but I would say

  • the APs used should be configurable; e.g. dc would be a more sensible choice than oio
  • representing the person as an individual (e.g. using their ORCID) would have some advantages but easy to fall into an overmodeling trap. We shouldn't need to import a suite of metadata ontologies just to do some basic editing.

You can imagine all kinds of extensions; adding metadata on a per-axiom basis; tracking modifications as well as creation.

But I think just having the two creation properties above auto-added would do a lot to help migrate OE users.

@tberardini
Copy link

Re: username
"Obtained entirely from the logged in username, I believe. Represented as a string"

Not from logged in username, as one doesn't log into OBO-Edit. It comes from the Configuration Manager, User name setting in the application.

@mellybelly
Copy link

prefer use of a URI or ORCID for the created_by field

@mcourtot
Copy link

I would prefer a URI (ORCID or else) for the created_by field. I'm wondering if it should be a user, or a group? For example, when I edit the GO file, wouldn't it make more sense for the user to be "the GO consortium"? In short, being able to edit it would be optimal.

On a related note I have been thinking about having a "template" metadata for ontologies, which would include creation date, licensing, version, md5 checksum, contact email, tracker etc - would it be feasible to have a way to use such a template within Protege? The idea is that if ontologies can capture the metadata directly in the file, people hosting repositories (OLS, aber-owl, Bioportal, OBO) could potentially just read that and it would go a long way in making it easier to maintain.

@dosumis
Copy link

dosumis commented Nov 23, 2015

I would prefer a URI (ORCID or else) for the created_by field

Agree, but best if readable. This might be achieved in Protege/OWL by
having individuals for each editor, with URI from ORCID and label = name.

I'm wondering if it should be a user, or a group?

User is much better. Allows clear attribution of credit/blame. Editors
can use this field to chase up editors who created a term for the purpose
of clarification.

Not from logged in username, as one doesn't log into OBO-Edit. It comes
from the Configuration Manager, User name setting in the application.

I believe OBO-Edit uses the logged in user name if no configuration is
specified (although point it moot if we go ORCID/URI route).

On Mon, Nov 23, 2015 at 9:22 AM, Melanie Courtot notifications@github.com
wrote:

I would prefer a URI (ORCID or else) for the created_by field. I'm
wondering if it should be a user, or a group? For example, when I edit the
GO file, wouldn't it make more sense for the user to be "the GO
consortium"? In short, being able to edit it would be optimal.

On a related note I have been thinking about having a "template" metadata
for ontologies, which would include creation date, licensing, version, md5
checksum, contact email, tracker etc - would it be feasible to have a way
to use such a template within Protege? The idea is that if ontologies can
capture the metadata directly in the file, people hosting repositories
(OLS, aber-owl, Bioportal, OBO) could potentially just read that and it
would go a long way in making it easier to maintain.


Reply to this email directly or view it on GitHub
#283 (comment)
.

@mcourtot
Copy link

Re readable: We were planning on having a file somewhere be a repository of people with their URI and label. An embryonic start is at https://docs.google.com/spreadsheets/d/1aLkZyVryQaa5BmDg8fG650-P2bhaoqZT6OmsNLKPQGc/edit#gid=0

Re user vs group: I agree - sorry read to quickly and thought we were talking ontology-wide metadata rather than per class.

@dosumis
Copy link

dosumis commented Nov 23, 2015

Think this is just a start though. Better to embed name lookup in the OWL.

On Mon, Nov 23, 2015 at 11:26 AM, Melanie Courtot notifications@github.com
wrote:

Re readable: We were planning on having a file somewhere be a repository
of people with their URI and label. An embryonic start is at
https://docs.google.com/spreadsheets/d/1aLkZyVryQaa5BmDg8fG650-P2bhaoqZT6OmsNLKPQGc/edit#gid=0

Re user vs group: I agree - sorry read to quickly and thought we were
talking ontology-wide metadata rather than per class.


Reply to this email directly or view it on GitHub
#283 (comment)
.

@cmungall
Copy link
Author

On 23 Nov 2015, at 1:22, Melanie Courtot wrote:

I would prefer a URI (ORCID or else) for the created_by field. I'm
wondering if it should be a user, or a group? For example, when I edit
the GO file, wouldn't it make more sense for the user to be "the GO
consortium"? In short, being able to edit it would be optimal.

It seems the feature people like from OE is association with the user.
However, given that most groups work from an ID space file, automatic
post-edit assigning of either user or group should be trivial (doh,
didn't think of this when I made the ticket. Auto-annotation of date
still useful though).

On a related note I have been thinking about having a "template"
metadata for ontologies, which would include creation date, licensing,
version, md5 checksum, contact email, tracker etc - would it be
feasible to have a way to use such a template within Protege? The idea
is that if ontologies can capture the metadata directly in the file,
people hosting repositories (OLS, aber-owl, Bioportal, OBO) could
potentially just read that and it would go a long way in making it
easier to maintain.

This is per-ontology, not per-class? Why not just provide a template OWL
file and merge it in?


Reply to this email directly or view it on GitHub:
#283 (comment)

@matthewhorridge
Copy link
Contributor

I've added a preferences panel for specifying the user name (by default the system user name) and an ORCID:

userprefs

and a preferences panel for configuring the author and timestamp annotations.

metadataprefs

If you annotate entities with ORCIDs then the values are actually IRIs and are clickable - clicking opens a browser and displays info about the person (assuming a valid ORCID).

example

Some things may need tweaking, but this will be available in the next release.

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

6 participants