wotpy.wot.dictionaries.thing
Wrapper class for dictionaries to represent Things.
Classes
|
ThingFragment is a wrapper around a dictionary that contains properties representing semantic metadata and interactions (Properties, Actions and Events). |
- class wotpy.wot.dictionaries.thing.ThingFragment(*args, **kwargs)
Bases:
WotBaseDictThingFragment is a wrapper around a dictionary that contains properties representing semantic metadata and interactions (Properties, Actions and Events). It is used for initializing an internal representation of a Thing Description, and it is also used in ThingFilter.
- class Meta
Bases:
object- fields = {'@context', '@type', 'actions', 'base', 'created', 'description', 'descriptions', 'events', 'forms', 'id', 'links', 'modified', 'profile', 'properties', 'schemaDefinitions', 'security', 'securityDefinitions', 'support', 'title', 'titles', 'uriVariables', 'version'}
- fields_dict = ['titles', 'descriptions', 'properties', 'actions', 'events', 'securityDefinitions', 'schemaDefinitions', 'uriVariables']
- fields_instance = ['version']
- fields_list = ['@context', '@type', 'links', 'forms', 'security', 'profile']
- fields_readonly = ['title']
- fields_str = ['@context', '@type', 'id', 'title', 'description', 'created', 'modified', 'support', 'base', 'security', 'profile']
- required = {'@context', 'security', 'securityDefinitions', 'title'}
- property actions
The actions optional attribute represents a dict with keys that correspond to Action names and values of type ActionFragment.
- property events
The events optional attribute represents a dictionary with keys that correspond to Event names and values of type EventFragment.
- property links
The links optional attribute represents an array of Link objects.
- property properties
The properties optional attribute represents a dict with keys that correspond to Property names and values of type PropertyFragment.
- property schema_definitons
Set of named data schemas. To be used in a schema name-value pair inside an AdditionalExpectedResponse object.
- property security
Set of security configurations, provided as an array, that must all be satisfied for access to resources at or below the current level, if not overridden at a lower level.
- property security_definitions
- property title
The title of the Thing.
- property uri_variables
Define URI template variables as collection based on DataSchema declarations.
- property version
Provides version information.