Difference between revisions of "Exploring data formats"

From Kosmos Wiki
Jump to navigation Jump to search
Line 7: Line 7:
 
   {
 
   {
 
     ...
 
     ...
     "context": "irc",
+
     "context": "irc",  
     "@type": "observe",
+
     "@type": "..." // could be 'create', 'add', 'author'... whatever we choose, this open for discussion
 
     "actor": {
 
     "actor": {
 
       "@id": "irc://howard@irc.freenode.net",
 
       "@id": "irc://howard@irc.freenode.net",

Revision as of 15:38, 5 June 2015

Methods of structuring data

Server Credentials

AS2

 {
   ...
   "context": "irc", 
   "@type": "..." // could be 'create', 'add', 'author'... whatever we choose, this open for discussion
   "actor": {
     "@id": "irc://howard@irc.freenode.net",
     "displayName": "howard"
   },
   "object": {
     "@type" : "credentials",
     "nick": : "howard",
     "password": "radical",
     "server": "irc.freenode.net",
     "port": 1234,
     "secure": true,
     "altNicks": [ "howardtheduck", "famousduck" ] // this property would need to be added to the schema
   },
   "target": "irc://irc.freenode.net"
 }