Skip to content

Commit

Permalink
documentation update in preparation for release 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
allysonlister committed Oct 18, 2016
1 parent 28f892b commit efebcb9
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 13 deletions.
52 changes: 44 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ The Software Ontology (SWO) is a resource for describing software tools, their t

The directories within SWO are organized as follows:

>swo/
> dev/ontology/
> release/
swo/
dev/ontology/
release/

Each directory contains a README describing its contents. Broadly, the `dev` directory contains the working files which are updated in an ongoing manner. The `release` directory is only updated when a release has been built.

## Development files

swo_components contains the individual owl modules that make up SWO. the swo_core file imports the others so should be considered the 'main file'. This includes the import of the EDAM ontology into SWO.
Within the `dev/ontology` subdirectory, you will find a number of OWL files. These are the modular files used to build SWO, and can all be loaded together in Protege by simply opening `swo_core.owl`, as this file imports all others in the directory.

## Release files

Expand All @@ -21,26 +23,60 @@ Within the release/ subdirectory are the various files that are published with e
* swo_inferred.owl - a merged version of the Software Ontology which includes inferences over the axioms. That is, all inferences have been saved as asserted axioms in this version. This is the version to use in viewing the ontology in applications.
* swo_merged.owl - a merged version of the Software Ontology in a single file, with no additional inferences. All SWO modules are simply concatenated into one file.

In addition to this, each release is tagged with its release number using the `git tag` command and therefore you can access the individual modules as they were during a release simply by

# Release Policy

1. Releases occur on an *ad hoc* basis, as required by our users. The latest releases of the Software Ontology can always be found at https://github.com/allysonlister/swo/tree/master/src/release. Earlier releases are tagged with their version numbers. Details of accessing those releases is below.

2. Assigned identifiers will remain on a class and will not be deleted from the owl files. classes that are no longer required will be subclassed under the obsolete class and stripped of axioms but the uri will remain.
2. Assigned identifiers will remain on a class and will not be deleted from the OWL files. Classes that are no longer required will be subclassed under the *obsolete SWO class* (child of *DeprecatedClass*) and stripped of axioms but the URI will remain.

3. Classes that change their intended meaning significantly (i.e. they denote a new entity) will be assigned a new URI and the old URi will be made obsolete as per the above.
3. Classes that change their intended meaning significantly (i.e. they denote a new entity) will be assigned a new URI and the old URI will be made obsolete as per the above.

4. A release notes file will be attached to each release. this will appear in the folder trunk\src\release\releasenotes and will outline major changes
4. A release notes file will be attached to each release as swo/release/README.md and will outline major changes to the ontology.

# Downloading Files

## Downloading the latest development version of SWO

Simply clone the repository with `git clone` and then navigate to `swo/dev/ontology`. All development files will be in that directory (open `swo_core.owl` in Protege and all other modules will be automatically imported). Keep track of updates by regularly running `git pull`.

## Downloading the latest release of SWO

Simply clone the repository with `git clone` and then navigate to `swo/release`. All release files will be in that directory (open `swo_merged.owl` in Protege for a simple view of all asserted classes and axioms). Keep track of updates by regularly running `git pull`.

## Downloading a particular version of SWO

In October 2016, the working version of SWO was moved from Sourceforge to GitHub. From this point on, each release was tagged. This section will show you how to retrieve releases from 1.5 onwards.

1. A list of tagged version can be found with the command

> git
> git tag -l
(The rest of this section is based on http://stackoverflow.com/questions/791959/download-a-specific-tag-with-git)

If you wish to checkout a particular release, then you can clone the whole repository

> git clone
Then list tags with `git tag -l` to find the one you want. You may wish to simply checkout that tag:

> git checkout tags/<tag_name>
Alternatively, create a branch:

>git checkout tags/<tag_name> -b <branch_name>
# Restructuring Prior to Release 1.6

We restructured the directories used in SWO just before we released version 1.6. This restructure deliberately corresponded with the move to GitHub, as it was a good opportunity to clean up. You will find that many files have moved, and as such will seem to have a git history that only seems to stretch back to October 2016. In fact, the entire history of all of our files has been preserved from the initial commits in SVN on Sourceforge through to the restructure that happened in October 2016. However, the web interface to GitHub does not show the history from before the `git mv` command was used.

To see the history of any *moved* file in SWO, you simply need to add the `--follow` command to your `git log` as follows in this example for examining the log for `swo_core.owl`:

> git log --follow swo/dev/ontology/swo_core.owl
If a file has been deleted (as was the case with a number of obsolete SWO files in the release subdirectory, you can find the file by viewing all logs of deletions with

> git log --diff-filter=D --summary
You can then show a particular file you are interested in with `git show`.
4 changes: 2 additions & 2 deletions dev/ontology/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Development copies of the SWO will go into this folder, such as owl files.
# Software Ontology Development Files

swo_core.owl file imports the other components. To get the full software ontology get all the files in this folder and load in swo_core.owl and the other will be imported in (may require some import resolving in Protege 3).
Within the `dev/ontology` subdirectory, you will find a number of OWL files. These are the modular files used to build SWO, and can all be loaded together in Protege by simply opening `swo_core.owl`, as this file imports all others in the directory.
4 changes: 1 addition & 3 deletions release/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# The Software Ontology
# The Software Ontology Release Notes

http://theswo.sourceforge.net

# RELEASE NOTES

* VERSION: 1.6
* DATE: XX October 2017

Expand Down

0 comments on commit efebcb9

Please sign in to comment.