IoticAgent.IOT.ThingMeta module¶
Helper object for getting and setting metadata for Iotic Things programmatically
-
class
IoticAgent.IOT.ThingMeta.
ThingMeta
(parent, rdf, default_lang, fmt='n3')¶ Bases:
IoticAgent.IOT.ResourceMeta.ResourceMeta
Metadata helper for Thing class. Wraps RDF graph and provides simple get/set/delete methods for location. All other methods inherited from ResourceMeta
-
delete_location
()¶ Deletes all the geo:lat and geo:long metadata properties on your Thing
-
get_location
()¶ Gets the current geo location of your Thing
Returns: Tuple of (lat, lon) in float or (None, None) if location is not set for this Thing
-
set_location
(lat, lon)¶
-