OpenTox API 1.2 Feature
From ToxBank API Wiki
(Difference between revisions)
Mrautenberg (Talk | contribs) (Created page with "<h2 id="Component-description">Component description</h2><p>A Feature is an object,representing any kind of property, assigned to a <a title="Compound" class="internal-link" href...") |
Mrautenberg (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | <h2 id="Component-description">Component description</h2><p>A Feature is an object,representing any kind of property, assigned to a | + | <h2 id="Component-description">Component description</h2><p>A Feature is an object,representing any kind of property, assigned to a [http://api.toxbank.net/index.php/OpenTox_API_1.2_Compound Compound]. The feature types are determined via their links to ontologies (Feature ontologies, Descriptor ontologies, Endpoints ontologies)</p><h2>REST operations</h2><p> </p> |
{| class="plain"<tbody> | {| class="plain"<tbody> | ||
| <strong>Description</strong> | | <strong>Description</strong> | ||
Line 65: | Line 65: | ||
| 503 | | 503 | ||
| Service unavailable</tbody> | | Service unavailable</tbody> | ||
− | |} | + | |} |
− | a ot:Substructure ; | + | |
− | dc:title "FCF" ; | + | <h2>RDF representation</h2><p>[http://www.opentox.org/data/documents/development/RDF%20files/Feature Feature and FeatureValue] class in (OpenTox API objects ontology) [http://www.opentox.org/data/documents/development/RDF%20files/OpenToxOntology opentox.owl]</p><p> </p><p>[http://www.opentox.org/data/documents/development/RDF%20files/OpenToxOntology http://api.toxbank.net/index.php/OpenTox_API_1.2_Compound]</p> |
− | ot:smarts "FCF" ; | + | <h3>Example</h3><p>Representation of a substructure (N3 Notation):</p> |
− | ot:hasSource <https://ambit.uni-plovdiv.bg:8443/ambit2/model/26469>; | + | <https://ambit.uni-plovdiv.bg:8443/ambit2/feature/171898> |
− | + | a ot:Substructure ; | |
+ | dc:title "FCF" ; | ||
+ | ot:smarts "FCF" ; | ||
+ | ot:hasSource <https://ambit.uni-plovdiv.bg:8443/ambit2/model/26469>; |
Latest revision as of 15:35, 29 August 2011
Contents |
Component description
A Feature is an object,representing any kind of property, assigned to a Compound. The feature types are determined via their links to ontologies (Feature ontologies, Descriptor ontologies, Endpoints ontologies)
REST operations
Description | Method | URI | Parameters | Result | Status codes |
Get description of a specific feature definition | GET | /feature/{id} | [subjectid] | URI-list or RDF representation of a feature |
200,404,503 |
Create a new feature |
POST | /feature |
[subjectid] Content-type="any-of-RDF-types", content=RDF-representation |
URI of the new feature definition | 200,400,404,503 |
Update feature |
PUT |
/feature/{id} |
[subjectid] Content-type="any-of-RDF-types", content=RDF-representation |
- |
200,400,404,503 |
Delete feature | DELETE | /feature/{id} | [subjectid] | - |
200,400,404,503 |
Get a list of available feature definitions |
GET |
/feature |
[subjectid] ?query=URI-of-the-owl:sameAs-entry |
URI list or RDF of features found by the query or all available, if query is empty Returns all features, for which owl:sameAs is given by the query |
200,404,503</tbody> |
- subjectid (optional) parameter that contains the OpenSSO A&A token needed to access protected services.
HTTP status codes
Interpretation | Nr | Name |
Success | 200 | OK |
No feature found, or specific featurenot found | 404 | Not Found |
Incorrect parameters | 400 | Bad request |
Service not available | 503 | Service unavailable</tbody> |
RDF representation
Feature and FeatureValue class in (OpenTox API objects ontology) opentox.owl
http://api.toxbank.net/index.php/OpenTox_API_1.2_Compound
Example
Representation of a substructure (N3 Notation):
<https://ambit.uni-plovdiv.bg:8443/ambit2/feature/171898> a ot:Substructure ; dc:title "FCF" ; ot:smarts "FCF" ; ot:hasSource <https://ambit.uni-plovdiv.bg:8443/ambit2/model/26469>;