{"action":"created","issue":{"url":"https://api.github.com/repos/protegeproject/cellfie-plugin/issues/102","repository_url":"https://api.github.com/repos/protegeproject/cellfie-plugin","labels_url":"https://api.github.com/repos/protegeproject/cellfie-plugin/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/protegeproject/cellfie-plugin/issues/102/comments","events_url":"https://api.github.com/repos/protegeproject/cellfie-plugin/issues/102/events","html_url":"https://github.com/protegeproject/cellfie-plugin/issues/102","id":191118202,"number":102,"title":"Support Mustache Template syntax","user":{"login":"johardi","id":5062950,"avatar_url":"https://avatars.githubusercontent.com/u/5062950?v=3","gravatar_id":"","url":"https://api.github.com/users/johardi","html_url":"https://github.com/johardi","followers_url":"https://api.github.com/users/johardi/followers","following_url":"https://api.github.com/users/johardi/following{/other_user}","gists_url":"https://api.github.com/users/johardi/gists{/gist_id}","starred_url":"https://api.github.com/users/johardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johardi/subscriptions","organizations_url":"https://api.github.com/users/johardi/orgs","repos_url":"https://api.github.com/users/johardi/repos","events_url":"https://api.github.com/users/johardi/events{/privacy}","received_events_url":"https://api.github.com/users/johardi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-22T20:38:46Z","updated_at":"2016-11-22T22:11:06Z","closed_at":null,"body":"See [here](https://mustache.github.io/).\r\n\r\nThe translation to use the mustache template syntax is from this:\r\n```\r\nIndividual: @A*(mm:hashEncode)\r\n   Types: NutritionalInformation\r\n   Facts: productName @A*,\r\n          hasTotalFat @B*(xsd:decimal mm:decimalFormat(\"##0.00\")),\r\n          hasSaturatedFat @C*(xsd:decimal mm:decimalFormat(\"##0.00\")),\r\n          hasSugar @I*(xsd:integer),\r\n          hasSodium @F*(xsd:integer mm:capturing(\"([0-9]+)\"))\r\n```\r\n\r\nto this:\r\n\r\n```\r\nIndividual: {{@A* | mm:hashEncode}}\r\n   Types: NutritionalInformation\r\n   Facts: productName {{@A*}},\r\n          hasTotalFat {{@B* | xsd:decimal | mm:decimalFormat(\"##0.00\")}},\r\n          hasSaturatedFat {{@C* | xsd:decimal | mm:decimalFormat(\"##0.00\")}},\r\n          hasSugar {{@I* | xsd:integer}},\r\n          hasSodium {{@F* | xsd:integer | mm:capturing(\"([0-9]+)\")}}\r\n```"},"comment":{"url":"https://api.github.com/repos/protegeproject/cellfie-plugin/issues/comments/262381133","html_url":"https://github.com/protegeproject/cellfie-plugin/issues/102#issuecomment-262381133","issue_url":"https://api.github.com/repos/protegeproject/cellfie-plugin/issues/102","id":262381133,"user":{"login":"johardi","id":5062950,"avatar_url":"https://avatars.githubusercontent.com/u/5062950?v=3","gravatar_id":"","url":"https://api.github.com/users/johardi","html_url":"https://github.com/johardi","followers_url":"https://api.github.com/users/johardi/followers","following_url":"https://api.github.com/users/johardi/following{/other_user}","gists_url":"https://api.github.com/users/johardi/gists{/gist_id}","starred_url":"https://api.github.com/users/johardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johardi/subscriptions","organizations_url":"https://api.github.com/users/johardi/orgs","repos_url":"https://api.github.com/users/johardi/repos","events_url":"https://api.github.com/users/johardi/events{/privacy}","received_events_url":"https://api.github.com/users/johardi/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T22:11:06Z","updated_at":"2016-11-22T22:11:06Z","body":"Alternative use with an explicit split between data view and template view.\r\n\r\nRule view:\r\n```\r\n{\r\n  { id: \"individualIri\",\r\n    iriEncode: \"camelCase\",\r\n    reference: \"A*\"\r\n  },\r\n  { id: \"productName\",\r\n    reference: \"A*\"\r\n  },\r\n  { id: \"totalFat\",\r\n    datatype: \"xsd:decimal\",\r\n    reference: \"B*\",\r\n    calc: function(x) {\r\n       return decimalFormat(x, \"##0.000\")\r\n    }\r\n  },\r\n  { id: \"saturatedFat\",\r\n    datatype: \"xsd:decimal\",\r\n    reference: \"C*\",\r\n    calc: function(x) {\r\n       return decimalFormat(x, \"##0.000\")\r\n    }\r\n  },\r\n  { id: \"sugar\",\r\n    datatype: \"xsd:integer\",\r\n    reference: \"I*\"\r\n  },\r\n { id: \"sodium\",\r\n    datatype: \"xsd:decimal\",\r\n    reference: \"F*\",\r\n    calc: function(x) {\r\n       return capturing(x, \"([0-9]+)\", \"$1\")\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nRule Template:\r\n```\r\nIndividual: {{individualIri}}\r\n   Types: NutritionalInformation\r\n   Facts: productName {{productName}},\r\n          hasTotalFat {{totalFat}},\r\n          hasSaturatedFat {{saturatedFat}},\r\n          hasSugar {{sugar}},\r\n          hasSodium {{sodium}}\r\n```"}}
{"actor":{"display_login":"johardi"}}