{"action":"created","issue":{"url":"https://api.github.com/repos/telefonicaid/fiware-connectors/issues/317","labels_url":"https://api.github.com/repos/telefonicaid/fiware-connectors/issues/317/labels{/name}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-connectors/issues/317/comments","events_url":"https://api.github.com/repos/telefonicaid/fiware-connectors/issues/317/events","html_url":"https://github.com/telefonicaid/fiware-connectors/issues/317","id":57581109,"number":317,"title":"Model entities parsing","user":{"login":"frbattid","id":3865056,"avatar_url":"https://avatars.githubusercontent.com/u/3865056?v=3","gravatar_id":"","url":"https://api.github.com/users/frbattid","html_url":"https://github.com/frbattid","followers_url":"https://api.github.com/users/frbattid/followers","following_url":"https://api.github.com/users/frbattid/following{/other_user}","gists_url":"https://api.github.com/users/frbattid/gists{/gist_id}","starred_url":"https://api.github.com/users/frbattid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frbattid/subscriptions","organizations_url":"https://api.github.com/users/frbattid/orgs","repos_url":"https://api.github.com/users/frbattid/repos","events_url":"https://api.github.com/users/frbattid/events{/privacy}","received_events_url":"https://api.github.com/users/frbattid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/telefonicaid/fiware-connectors/labels/backlog","name":"backlog","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"frbattid","id":3865056,"avatar_url":"https://avatars.githubusercontent.com/u/3865056?v=3","gravatar_id":"","url":"https://api.github.com/users/frbattid","html_url":"https://github.com/frbattid","followers_url":"https://api.github.com/users/frbattid/followers","following_url":"https://api.github.com/users/frbattid/following{/other_user}","gists_url":"https://api.github.com/users/frbattid/gists{/gist_id}","starred_url":"https://api.github.com/users/frbattid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frbattid/subscriptions","organizations_url":"https://api.github.com/users/frbattid/orgs","repos_url":"https://api.github.com/users/frbattid/repos","events_url":"https://api.github.com/users/frbattid/events{/privacy}","received_events_url":"https://api.github.com/users/frbattid/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/telefonicaid/fiware-connectors/milestones/12","labels_url":"https://api.github.com/repos/telefonicaid/fiware-connectors/milestones/12/labels","id":857442,"number":12,"title":"release/0.7.0","description":"","creator":{"login":"frbattid","id":3865056,"avatar_url":"https://avatars.githubusercontent.com/u/3865056?v=3","gravatar_id":"","url":"https://api.github.com/users/frbattid","html_url":"https://github.com/frbattid","followers_url":"https://api.github.com/users/frbattid/followers","following_url":"https://api.github.com/users/frbattid/following{/other_user}","gists_url":"https://api.github.com/users/frbattid/gists{/gist_id}","starred_url":"https://api.github.com/users/frbattid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frbattid/subscriptions","organizations_url":"https://api.github.com/users/frbattid/orgs","repos_url":"https://api.github.com/users/frbattid/repos","events_url":"https://api.github.com/users/frbattid/events{/privacy}","received_events_url":"https://api.github.com/users/frbattid/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":5,"state":"open","created_at":"2014-11-07T14:49:48Z","updated_at":"2015-02-13T10:13:06Z","due_on":"2015-02-26T23:00:00Z","closed_at":null},"comments":1,"created_at":"2015-02-13T10:13:06Z","updated_at":"2015-02-13T10:20:02Z","closed_at":null,"body":"There are some special entities managed by Orion Context Broker, called <i>model entities</i>, that Cygnus must parse in order to implement other issues (https://github.com/telefonicaid/fiware-connectors/issues/315).\r\n\r\nFor instance:\r\n\r\n```\r\n\"id\": \"netrisModel\",\r\n\"isPattern\": \"false\",\r\n\"type\": \"model\",\r\n\"attributes\": [\r\n{\r\n\"name\": \"TimeInstant\",\r\n\"type\": \"ISO8601\",\r\n\"value\": \"2014-03-20T14:21:14Z\"\r\n},\r\n{\r\n\"name\": \"ModelProp1\",\r\n\"type\": \"String\",\r\n\"value\": “abc”\r\n},\r\n{\r\n\"name\": \"ModelProp2\",\r\n\"type\": \"String\",\r\n\"value\": “def”\r\n},\r\n{\r\n\"name\": \"te\",\r\n\"type\": \"compound\",\r\n\"value\":\r\n{\r\n\"name\": \"Temperatura Exterior\",\r\n\"phenomenon\": \"temperature\",\r\n      \t\"type\": \"Quantity\",\r\n\"uom\": \"Cel\",\r\n“persistence”: “sth,ckan”\r\n}\r\n},\r\n{\r\n\"name\": \"ti\",\r\n\"type\": \"compound\",\r\n\"value\": [\r\n{\r\n\"name\": \"Temperatura Interior\",\r\n\"phenomenon\": \"temperature\",\r\n      \t\"type\": \"Quantity\",\r\n\"uom\": \"Cel\"\r\n}\r\n]\r\n},\r\n{\r\n\"name\": \"h\",\r\n\"type\": \"compound\",\r\n\"value\": [\r\n{\r\n\"name\": \"Humedad casa\",\r\n\"phenomenon\": \"humidity\",\r\n      \t\"type\": \"Quantity\",\r\n\"uom\": \"%\"\r\n}\r\n]\r\n},\r\n{\r\n\"name\": \"reset\",\r\n\"type\": \"compound\",\r\n\"value\": [\r\n{\r\n\"type\": \"action\",\r\n\"input_params\": \"reqTimeInstant,correlatorID,param_a,param_b\",\r\n\"output_params\": \"result,resTimeIntant,param_c,param_d\",\r\n}\r\n]\r\n},\r\n{\r\n\"name\": \"color\",\r\n\"type\": \"compound\",\r\n\"value\": [\r\n{\r\n\"type\": \"action\",\r\n\"input_params\": \"reqTimeInstant,correlatorID\",\r\n\"output_params\": \"result,resTimeInstant\",\r\n}\r\n]\r\n}\r\n\r\n]\r\n```\r\n\r\n@fgalan : is there a counterpart for these entities in XML format? Or is it exclusive to Json?"},"comment":{"url":"https://api.github.com/repos/telefonicaid/fiware-connectors/issues/comments/74232677","html_url":"https://github.com/telefonicaid/fiware-connectors/issues/317#issuecomment-74232677","issue_url":"https://api.github.com/repos/telefonicaid/fiware-connectors/issues/317","id":74232677,"user":{"login":"fgalan","id":1534240,"avatar_url":"https://avatars.githubusercontent.com/u/1534240?v=3","gravatar_id":"","url":"https://api.github.com/users/fgalan","html_url":"https://github.com/fgalan","followers_url":"https://api.github.com/users/fgalan/followers","following_url":"https://api.github.com/users/fgalan/following{/other_user}","gists_url":"https://api.github.com/users/fgalan/gists{/gist_id}","starred_url":"https://api.github.com/users/fgalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgalan/subscriptions","organizations_url":"https://api.github.com/users/fgalan/orgs","repos_url":"https://api.github.com/users/fgalan/repos","events_url":"https://api.github.com/users/fgalan/events{/privacy}","received_events_url":"https://api.github.com/users/fgalan/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T10:20:01Z","updated_at":"2015-02-13T10:20:01Z","body":"From a CB point of view, every entity has always the two renders: XML and JSON. However, by the case of use we are considering for these model entities, I think that JSON is enough. I mean, if Cygnus queries (using queryContext) or subscribe (using subscribeContext) to this entities in JSON, the information will be sent to Cygnus always in JSON, so you can forget about XML is you want."}}