Developer:OntologiesResource

From myExperiment
Jump to: navigation, search

Index of ontologies

URI: GET http://www.myexperiment.org/ontologies.xml

Example output:

<?xml version="1.0"?>
<ontologies>
  <ontology resource="http://www.myexperiment.org/ontologies/1" uri="http://www.myexperiment.org/ontology.xml?id=1">myExperiment pack ontology</ontology>
</ontologies>


Create ontology

URI: POST http://www.myexperiment.org/ontology.xml

Example input:

<?xml version="1.0">
<ontology>
  <title>myExperiment pack ontology</title>
  <uri>http://www.myexperiment.org/2010/pack</uri>
  <prefix>pack</prefix>
  <description>This is an ontology for expressing the relationships between pack items in myExperiment.</description>
</ontology>

Example output:

<?xml version="1.0"?>
<ontology uri="http://www.myexperiment.org/ontology.xml?id=1" resource="http://www.myexperiment.org/ontologies/1">
  <id>1</id>
  <user uri="http://myexp-ubuntu/user.xml?id=22" resource="http://myexp-ubuntu/users/22">Don Cruickshank</user>
  <title>myExperiment pack ontology</title>
  <uri>http://www.myexperiment.org/2010/pack</uri>
  <prefix>pack</prefix>
  <description>This is an ontology for expressing the relationships between pack items in myExperiment.</description>
  <created-at>Fri Jun 03 18:04:56 +0100 2011</created-at>
</ontology>


Read ontology

URI: GET http://www.myexperiment.org/ontology.xml?id=1

Example output:

<?xml version="1.0"?>
<ontology uri="http://www.myexperiment.org/ontology.xml?id=1" resource="http://www.myexperiment.org/ontologies/1">
  <id>1</id>
  <user uri="http://myexp-ubuntu/user.xml?id=22" resource="http://myexp-ubuntu/users/22">Don Cruickshank</user>
  <title>myExperiment pack ontology</title>
  <uri>http://www.myexperiment.org/2010/pack</uri>
  <prefix>pack</prefix>
  <description>This is an ontology for expressing the relationships between pack items in myExperiment.</description>
  <created-at>Fri Jun 03 18:04:56 +0100 2011</created-at>
</ontology>


Update ontology

URI: PUT http://www.myexperiment.org/ontology.xml?id=1

Example input:

<?xml version="1.0">
<ontology>
  <title>myExperiment pack ontology (updated)</title>
  <uri>http://www.myexperiment.org/2010/pack</uri>
  <prefix>pack</prefix>
  <description>This is an updated ontology for expressing the relationships between pack items in myExperiment.</description>
</ontology>

Example output:

<?xml version="1.0"?>
<ontology uri="http://www.myexperiment.org/ontology.xml?id=1" resource="http://www.myexperiment.org/ontologies/1">
  <id>1</id>
  <user uri="http://myexp-ubuntu/user.xml?id=22" resource="http://myexp-ubuntu/users/22">Don Cruickshank</user>
  <title>myExperiment pack ontology (updated)</title>
  <uri>http://www.myexperiment.org/2010/pack</uri>
  <prefix>pack</prefix>
  <description>This is an updated ontology for expressing the relationships between pack items in myExperiment.</description>
  <created-at>Fri Jun 03 18:04:56 +0100 2011</created-at>
</ontology>


Delete ontology

URI: DELETE http://www.myexperiment.org/ontology.xml?id=1

Example output:

<ontology uri="http://www.myexperiment.org/ontology.xml?id=1" resource="http://www.myexperiment.org/ontologies/1">
  <id>1</id>
  <user uri="http://myexp-ubuntu/user.xml?id=22" resource="http://myexp-ubuntu/users/22">Don Cruickshank</user>
  <title>myExperiment pack ontology (updated)</title>
  <uri>http://www.myexperiment.org/2010/pack</uri>
  <prefix>pack</prefix>
  <description>This is an updated ontology for expressing the relationships between pack items in myExperiment.</description>
  <created-at>Fri Jun 03 18:04:56 +0100 2011</created-at>
</ontology>


Elements for ontology

  • id - the id of the ontpology
  • user - the user who submitted the ontology
  • title - the title of the ontology
  • uri - The Unique Resource Identifier (URI) for the ontology
  • prefix - The prefix for the ontology to allow properties of the ontology to be displayed in short form (e.g. http://www.myexperiment.org/2010/pack/inputDataTo => pack:inputDataTo)
  • description - A description of the purpose of the ontology
  • created-at - the date/time the ontology was created (submitted to myExperiment)
  • updated-at - the date/time the ontology resource was last modified