# S-RAMP Demos: Ontologies

## Summary

This demo shows how to manage ontologies in the S-RAMP repository.  Ontologies are how
S-RAMP classifications are defined so that they can be applied to artifacts.  Note that
the S-RAMP specification is silent regarding how ontologies are managed in an S-RAMP
compliant repository.  We have chosen to expose ontology management via an Atom based
API similar to the standard S-RAMP API.  Not all S-RAMP implementations will necessarily
have this capability.

## How It Works

To run the demo, you will need to supply valid user credentials.  You can do this
by passing the following properties using -D:

* sramp.auth.username - sets the BASIC auth username to use during the demo
* sramp.auth.password - sets the BASIC auth password to use during the demo

In short, it might look something like this:

	$ mvn -Pdemo -Dsramp.auth.username=admin -Dsramp.auth.password=MYPASSWORD clean test

*Note* - the demo expects the S-RAMP Atom API endpoint to be located at:

	http://localhost:8080/s-ramp-server

If you are running the S-RAMP repository on some other port or deployed in some other way
you can customize where the demo looks for the Atom API.  For example:

	$ mvn -Pdemo -Dsramp.endpoint=http://myhost:8081/s-ramp-server clean test

The demo should output some interesting information before completing successfully.  Please
take a look at the code found in the OntologyDemo Java class for more information.

*Note* - you can also use the S-RAMP UI (browser) to take a look at the artifact that were
uploaded by this demo.  By default you can find the UI here:

	http://localhost:8080/s-ramp-ui/
