RAPP Platform API
Main Page
Packages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
OntologyIsSubsuperclass.py
Go to the documentation of this file.
1
from
RappCloud.Objects
import
(
2
File,
3
Payload)
4
5
from
Cloud
import
(
6
CloudMsg,
7
CloudRequest,
8
CloudResponse)
9
10
11
class
OntologyIsSubsuperclass
(CloudMsg):
12
""" Ontology Is Sub-Superclass Of Cloud Message object"""
13
14
class
Request
(CloudRequest):
15
""" Ontology Is Sub-Superclass Of Cloud Request object.
16
17
OntologyIsSubsuperclass.Request
18
"""
19
def
__init__
(self, **kwargs):
20
"""!
21
Constructor
22
23
@param **kwargs - Keyword arguments. Apply values to the request attributes.
24
- @ref parent_class
25
- @ref child_class
26
- @ref recursive
27
"""
28
29
## The ontology parent class name.
30
# e.g. 'Oven'
31
self.
parent_class
=
''
32
## The ontology child class name.
33
# e.g. 'Microwave'
34
self.
child_class
=
''
35
## Recursive ontology database search.
36
self.
recursive
=
False
37
super(
OntologyIsSubsuperclass.Request
, self).
__init__
(**kwargs)
38
39
40
def
make_payload
(self):
41
""" Create and return the Payload of the Request. """
42
return
Payload(
43
parent_class=self.
parent_class
,
44
child_class=self.
child_class
,
45
recursive=self.
recursive
)
46
47
48
def
make_files
(self):
49
""" Create and return Array of File objects of the Request. """
50
return
[]
51
52
53
class
Response
(CloudResponse):
54
""" Ontology Is Sub-Superclass Cloud Response object.
55
56
OntologyIsSubsuperclass.Response
57
"""
58
def
__init__
(self, **kwargs):
59
"""!
60
Constructor
61
62
@param **kwargs - Keyword arguments. Apply values to the request attributes.
63
- @ref error
64
- @ref result
65
"""
66
67
## Error message
68
self.
error
=
''
69
## Success index on ontology-is-subsuperclass-of query.
70
self.
result
=
False
71
super(
OntologyIsSubsuperclass.Response
, self).
__init__
(**kwargs)
72
73
74
def
__init__
(self, **kwargs):
75
"""!
76
Constructor
77
78
@param **kwargs - Keyword arguments. Apply values to the request attributes.
79
- @ref Request.parent_class
80
- @ref Request.child_class
81
- @ref Request.recursive
82
"""
83
84
# Create and hold the Request object for this CloudMsg
85
self.
req
=
OntologyIsSubsuperclass.Request
()
86
# Create and hold the Response object for this CloudMsg
87
self.
resp
=
OntologyIsSubsuperclass.Response
()
88
super(OntologyIsSubsuperclass, self).
__init__
(
89
svcname=
'ontology_is_subsuperclass_of'
, **kwargs)
90
91
RappCloud.CloudMsgs.OntologyIsSubsuperclass.OntologyIsSubsuperclass.__init__
def __init__
Constructor.
Definition:
OntologyIsSubsuperclass.py:74
RappCloud.CloudMsgs.OntologyIsSubsuperclass.OntologyIsSubsuperclass.Response.result
result
Success index on ontology-is-subsuperclass-of query.
Definition:
OntologyIsSubsuperclass.py:70
RappCloud.Objects
Definition:
__init__.py:1
RappCloud.CloudMsgs.OntologyIsSubsuperclass.OntologyIsSubsuperclass.Request.recursive
recursive
Recursive ontology database search.
Definition:
OntologyIsSubsuperclass.py:36
RappCloud.CloudMsgs.OntologyIsSubsuperclass.OntologyIsSubsuperclass.Response.__init__
def __init__
Constructor.
Definition:
OntologyIsSubsuperclass.py:58
RappCloud.CloudMsgs.OntologyIsSubsuperclass.OntologyIsSubsuperclass.Request
Definition:
OntologyIsSubsuperclass.py:14
RappCloud.CloudMsgs.OntologyIsSubsuperclass.OntologyIsSubsuperclass.Request.make_files
def make_files
Definition:
OntologyIsSubsuperclass.py:48
RappCloud.CloudMsgs.OntologyIsSubsuperclass.OntologyIsSubsuperclass
Definition:
OntologyIsSubsuperclass.py:11
RappCloud.CloudMsgs.OntologyIsSubsuperclass.OntologyIsSubsuperclass.resp
resp
Definition:
OntologyIsSubsuperclass.py:87
RappCloud.CloudMsgs.OntologyIsSubsuperclass.OntologyIsSubsuperclass.Request.parent_class
parent_class
The ontology parent class name.
Definition:
OntologyIsSubsuperclass.py:31
RappCloud.CloudMsgs.OntologyIsSubsuperclass.OntologyIsSubsuperclass.Response.error
error
Error message.
Definition:
OntologyIsSubsuperclass.py:68
RappCloud.CloudMsgs.OntologyIsSubsuperclass.OntologyIsSubsuperclass.req
req
Definition:
OntologyIsSubsuperclass.py:85
RappCloud.CloudMsgs.OntologyIsSubsuperclass.OntologyIsSubsuperclass.Request.__init__
def __init__
Constructor.
Definition:
OntologyIsSubsuperclass.py:19
RappCloud.CloudMsgs.OntologyIsSubsuperclass.OntologyIsSubsuperclass.Response
Definition:
OntologyIsSubsuperclass.py:53
RappCloud.CloudMsgs.OntologyIsSubsuperclass.OntologyIsSubsuperclass.Request.child_class
child_class
The ontology child class name.
Definition:
OntologyIsSubsuperclass.py:34
RappCloud.CloudMsgs.OntologyIsSubsuperclass.OntologyIsSubsuperclass.Request.make_payload
def make_payload
Definition:
OntologyIsSubsuperclass.py:40
python
RappCloud
CloudMsgs
OntologyIsSubsuperclass.py
Generated on Fri Jul 29 2016 18:45:01 for RAPP Platform API by
1.8.6