Skip to content

Commit

Permalink
FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Aug 1, 2015
1 parent 5eababe commit 76080ec
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 2 deletions.
1 change: 1 addition & 0 deletions LICENSE.md
@@ -0,0 +1 @@
TODO: separate license for code/website vs metadata content? Is BSD3 OK for former? CC-BY or CC-0 for latter?
15 changes: 13 additions & 2 deletions _includes/navbar.html
Expand Up @@ -19,8 +19,6 @@
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
<li><a href="#">Link</a></li>

<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">About <span class="caret"></span></a>
Expand Down Expand Up @@ -65,6 +63,19 @@
</ul>
</li>

<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">FAQ <span class="caret"></span></a>
<ul class="dropdown-menu">
<!-- in theory we could auto-generate this part of the navbar -->
<li><a href="faq/who-is-the-foundry.html">Who is the OBO Foundry?</a></li>
<li role="separator" class="divider"></li>
<li><a href="faq/how-do-i-register-my-ontology.html">How do I register my ontology?</a></li>
<li><a href="faq/how-do-i-edit-metadata.html">How do I edit the metadata for my ontology?</a></li>
<li role="separator" class="divider"></li>
</ul>
</li>


</ul>
<form class="navbar-form navbar-left" role="search" action="http://www.ontobee.org/browser/search.php" method="get">
<div class="form-group">
Expand Down
102 changes: 102 additions & 0 deletions faq/how-do-i-edit-metadata.md
@@ -0,0 +1,102 @@
---
layout: default
title: Edit metadata
---

## How do I edit the metadata for my ontology?

Previously the only way to edit the metadata for your ontology was to
log a request for an OBO administrator to make the change for you. You
are still welcome to do this, but with our github-based system you can
now do this yourself.

You will first need an account on http://github.com

Next, go to the page for your ontology. On the bottom of the metadata
panel, click the link that says "Edit"

ADD DETAILS ON FORK HERE

You will be taken to the source for the page which is managed in a
format called "Markdown" within github. You will be placed in edit
mode, where you can edit the metadata and customize your page, and
make what is known as a "Pull Request" (PR). This PR will be
automatically checked and then merged in by an OBO administrator
(provided it meets their approval).

The markdown (`.md`) page for your ontology is in two sections:

1. The section between the `---` markers is in a format called *yaml*, and is structured metadata
2. The section after the markers is markdown text that can be used to customize your page

### YAML Metadata

The YAML section may look something like this:

```
layout: ontology_detail
id: cl
label: Cell Ontology
title: Cell Ontology
description: The Cell Ontology is a structured controlled vocabulary for cell types in animals.
integration_server: http://build.berkeleybop.org/job/build-cl/
taxon:
id: NCBITaxon:33208
label: Metazoa
domain: cells
tracker: https://code.google.com/p/cell-ontology/issues/list
termgenie: http://cl.termgenie.org
mailing_list: https://lists.sourceforge.net/lists/listinfo/obo-cell-type
dependencies:
- id: uberon
- id: go
canonical: cl.owl
products:
- id: cl.owl
- id: cl.obo
- id: cl/cl-basic.obo
```

*IMPORTANT* some properties are in flux, be warned.

A few key fields to be aware of:

* *layout* - this is not actually metadata about the ontology but controls how the page is displayed. You should not mess with this unless you are a web style guru, in which case see [this FAQ entry](how-do-i-customize-layout.html)
* *id* - this should not be touched. Your ontology id is fixed in the system by OBO administrators at time of registration and should never be changed. Contact the OBO team if you have a valid reason for changing this. See [ID Policy](../id-policy.html)
* *title* - a *short* name for your ontology - this is typically the spelling out of your ontology acronym.
* *description* - a short one line description of your ontology. It should state concisely what the contents of the ontology are. Don't write this like a paper abstract. You can be more verbose in the custom section below
* *tracker* - typically a github issues url

### Freeform Markdown

The section after the second `---` controls what goes in the main panel on your ontology page. You should include at least a one paragarph description here. You are free to put more detail, and you can use a mixture of HTML and Markdown formatting. You can even put images in here.

For example, here is the ENVO freeform markdown section

```
EnvO is a community ontology for the concise, controlled description of environments.
<img src="/logos/envo.png"/>
Envo can be cited as:
Buttigieg, P. L., Morrison, N., Smith, B., Mungall, C. J., & Lewis, S. E. (2013). <b>The environment ontology: contextualising biological and biomedical entities</b>. <i>Journal of Biomedical Semantics, 4(1), 43</i>. <a href="http://www.dx.doi.org/10.1186/2041-1480-4-43">doi:10.1186/2041-1480-4-43</a>
```

### Saving changes and making a Pull Request

Once you are done, hit save. Note that the changes will *not* be
immediately visible, a few things have to happen first. You will need
to "fork" the repo (don't worry, just click the button to do it).

After doing this you will need to click "make pull request"

This is all you need to do. What happens next:

1. An automated Travis job will run to validate your changes
2. An OBO administrator will evaluate your PR. If it failed the travis check, it will not be accepted
3. If the the OBO admin rejects it they will provide feedback in the comment form which you can use to make further edits
4. More likely, the change will be accepted by the OBO admin. They will click "merge" and the changes will be visible in a few seconds.
5. The OBO admin will also need to run a Make script to regenerate the main metadata file, so your changes may not be visible on the front table straight away


3 changes: 3 additions & 0 deletions faq/how-do-i-register-my-ontology.md
@@ -0,0 +1,3 @@
## How do I register my ontology?

TODO

0 comments on commit 76080ec

Please sign in to comment.