Developer:PredicatesResource

From myExperiment
Jump to: navigation, search

Index of predicates

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

Example output:

<?xml version="1.0"?>
<predicates>
  <predicate resource="http://www.myexperiment.org/predicates/1" uri="http://www.myexperiment.org/predicate.xml?id=1">inputDataTo</predicate>
  <predicate resource="http://www.myexperiment.org/predicates/2" uri="http://www.myexperiment.org/predicate.xml?id=2">outputDataFrom</predicate>
  <predicate resource="http://www.myexperiment.org/predicates/3" uri="http://www.myexperiment.org/predicate.xml?id=3">exampleInputDataTo</predicate>
  <predicate resource="http://www.myexperiment.org/predicates/4" uri="http://www.myexperiment.org/predicate.xml?id=4">exampleOutputDataFrom</predicate>
  <predicate resource="http://www.myexperiment.org/predicates/5" uri="http://www.myexperiment.org/predicate.xml?id=5">presentAt</predicate>
  ...
</predicates>


Create predicate

URL: POST http://www.myexperiment.org/predicate.xml

Example input:

<?xml version="1.0"?>
<predicate>
  <ontology resource="http://www.myexperiment.org/ontologies/1"/>
  <title>inputDataTo</title>
  <phrase>is an input to</phrase>
  <description>This concept is used to indicate that the subject is an input to the object.</description>
  <equivalent-to/>
</predicate>


Example output:

<?xml version="1.0"?>
<predicate uri="http://www.myexperiment.org/predicate.xml?id=1" resource="http://www.myexperiment.org/predicates/1">
  <id>1</id>
  <ontology uri="http://www.myexperiment.org/ontology.xml?id=1" resource="http://www.myexperiment.org/ontologies/1">myExperiment pack ontology</ontology>
  <title>inputDataTo</title>
  <phrase>is an input to</phrase>
  <description>This concept is used to indicate that the subject is an input to the object.</description>
  <equivalent-to/>
  <created-at>Fri Jun 03 18:04:56 +0100 2011</created-at>
</predicate>


Read predicate

URL: GET http://www.myexperiment.org/predicate.xml?id=1

Example output:

<?xml version="1.0"?>
<predicate uri="http://www.myexperiment.org/predicate.xml?id=1" resource="http://www.myexperiment.org/predicates/1">
  <id>1</id>
  <ontology uri="http://www.myexperiment.org/ontology.xml?id=1" resource="http://www.myexperiment.org/ontologies/1">myExperiment pack ontology</ontology>
  <title>inputDataTo</title>
  <phrase>is an input to</phrase>
  <description>This concept is used to indicate that the subject is an input to the object.</description>
  <equivalent-to/>
  <created-at>Fri Jun 03 18:04:56 +0100 2011</created-at>
</predicate>


Update predicate

URL: PUT http://www.myexperiment.org/predicate.xml?id=1

Example input:

<?xml version="1.0"?>
<predicate>
  <ontology resource="http://www.myexperiment.org/ontologies/1"/>
  <title>input-data-to</title>
  <phrase>is an input to</phrase>
  <description>This predicate is used to indicate that the subject is an input to the object.</description>
  <equivalent-to/>
</predicate>


Example output:

<?xml version="1.0"?>
<predicate uri="http://www.myexperiment.org/predicate.xml?id=1" resource="http://www.myexperiment.org/predicates/1">
  <id>1</id>
  <ontology uri="http://www.myexperiment.org/ontology.xml?id=1" resource="http://www.myexperiment.org/ontologies/1">myExperiment pack ontology</ontology>
  <title>input-data-to</title>
  <phrase>is an input to</phrase>
  <description>This predicate is used to indicate that the subject is an input to the object.</description>
  <equivalent-to/>
  <created-at>Fri Jun 03 18:04:56 +0100 2011</created-at>
</predicate>


Delete predicate

URL: DELETE http://www.myexperiment.org/predicate.xml?id=1

Example output:

<?xml version="1.0"?>
<predicate uri="http://www.myexperiment.org/predicate.xml?id=1" resource="http://www.myexperiment.org/predicates/1">
  <id>1</id>
  <ontology uri="http://www.myexperiment.org/ontology.xml?id=1" resource="http://www.myexperiment.org/ontologies/1">myExperiment pack ontology</ontology>
  <title>input-data-to</title>
  <phrase>is an input to</phrase>
  <description>This predicate is used to indicate that the subject is an input to the object.</description>
  <equivalent-to/>
  <created-at>Fri Jun 03 18:04:56 +0100 2011</created-at>
</predicate>


Elements for predicate

  • id - the id of the predicate
  • ontology - the ontology resource to which the predicate belongs
  • title - the title of the predicate, that when appended to the ontology URI make the predicate's RDF URI
  • phrase - a human readable phrase describing the relationship between the subject and object the predicate is being used to relate (e.g. 'is an input to')
  • description - a description of the predicate
  • equivalent-to - a property (predicate) in an external ontology to which the predicate is equivalent (e.g. foaf:knows)
  • created-at - the date/time the predicate was created
  • updated-at - the date/time the predicate was last modified