{"action":"opened","issue":{"url":"https://api.github.com/repos/njh/easyrdf/issues/303","repository_url":"https://api.github.com/repos/njh/easyrdf","labels_url":"https://api.github.com/repos/njh/easyrdf/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/njh/easyrdf/issues/303/comments","events_url":"https://api.github.com/repos/njh/easyrdf/issues/303/events","html_url":"https://github.com/njh/easyrdf/issues/303","id":362619784,"node_id":"MDU6SXNzdWUzNjI2MTk3ODQ=","number":303,"title":"HTML Markup stripped from RDFa using `datatype=\"HTML\"`","user":{"login":"BigBlueHat","id":43209,"node_id":"MDQ6VXNlcjQzMjA5","avatar_url":"https://avatars1.githubusercontent.com/u/43209?v=4","gravatar_id":"","url":"https://api.github.com/users/BigBlueHat","html_url":"https://github.com/BigBlueHat","followers_url":"https://api.github.com/users/BigBlueHat/followers","following_url":"https://api.github.com/users/BigBlueHat/following{/other_user}","gists_url":"https://api.github.com/users/BigBlueHat/gists{/gist_id}","starred_url":"https://api.github.com/users/BigBlueHat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigBlueHat/subscriptions","organizations_url":"https://api.github.com/users/BigBlueHat/orgs","repos_url":"https://api.github.com/users/BigBlueHat/repos","events_url":"https://api.github.com/users/BigBlueHat/events{/privacy}","received_events_url":"https://api.github.com/users/BigBlueHat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-21T13:37:21Z","updated_at":"2018-09-21T13:37:21Z","closed_at":null,"author_association":"NONE","body":"For example:\r\n```html\r\n<article typeof=\"schema:ScholarlyArticle\" resource=\"#\">\r\n  <div property=\"schema:articleBody\" datatype=\"rdf:HTML\">\r\n    <h1>Amazing Science!</h1>\r\n    <p>...like...<strong>really</strong> amazing science!</p>\r\n  </div>\r\n</article>\r\n```\r\nresults in:\r\n```turtle\r\n@prefix schema: <http://schema.org/> .\r\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\r\n\r\n<http://njh.me/#>\r\n  a schema:ScholarlyArticle ;\r\n  schema:articleBody \"\"\"\r\n    Amazing Science!\r\n    ...like...really amazing science!\r\n  \"\"\"^^rdf:HTML .\r\n```\r\n\r\nHowever, if the `datatype` is changed to `rdf:XMLLiteral` the markup is kept:\r\n```turtle\r\n@prefix schema: <http://schema.org/> .\r\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\r\n\r\n<http://njh.me/#>\r\n  a schema:ScholarlyArticle ;\r\n  schema:articleBody \"\"\"\r\n    <h1>Amazing Science!</h1>\r\n    <p>...like...<strong>really</strong> amazing science!</p>\r\n  \"\"\"^^rdf:XMLLiteral \r\n```\r\n\r\nNot sure if this is a bug or a missing feature, but it would be super great to have it working. 😄 \r\n\r\nYou can test the same RDFa markup in the Ruby Distiller to see the correct `rdf:HTML` Turtle output:\r\nhttp://rdf.greggkellogg.net/distiller?command=serialize&format=rdfa&output_format=turtle\r\n\r\nLet me know how I can help!\r\n🎩 "}}
{"actor":{"display_login":"BigBlueHat"}}