{"action":"created","issue":{"url":"https://api.github.com/repos/rdfjs/representation-task-force/issues/93","repository_url":"https://api.github.com/repos/rdfjs/representation-task-force","labels_url":"https://api.github.com/repos/rdfjs/representation-task-force/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/rdfjs/representation-task-force/issues/93/comments","events_url":"https://api.github.com/repos/rdfjs/representation-task-force/issues/93/events","html_url":"https://github.com/rdfjs/representation-task-force/issues/93","id":180501161,"number":93,"title":"Should Literal.datatype be an IRI (string) or a NamedNode?","user":{"login":"RubenVerborgh","id":675313,"avatar_url":"https://avatars.githubusercontent.com/u/675313?v=3","gravatar_id":"","url":"https://api.github.com/users/RubenVerborgh","html_url":"https://github.com/RubenVerborgh","followers_url":"https://api.github.com/users/RubenVerborgh/followers","following_url":"https://api.github.com/users/RubenVerborgh/following{/other_user}","gists_url":"https://api.github.com/users/RubenVerborgh/gists{/gist_id}","starred_url":"https://api.github.com/users/RubenVerborgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubenVerborgh/subscriptions","organizations_url":"https://api.github.com/users/RubenVerborgh/orgs","repos_url":"https://api.github.com/users/RubenVerborgh/repos","events_url":"https://api.github.com/users/RubenVerborgh/events{/privacy}","received_events_url":"https://api.github.com/users/RubenVerborgh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rdfjs/representation-task-force/labels/design","name":"design","color":"eb6420"},{"url":"https://api.github.com/repos/rdfjs/representation-task-force/labels/LowLevel%20API","name":"LowLevel API","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-10-02T08:08:14Z","updated_at":"2016-10-02T15:44:39Z","closed_at":null,"body":"As mentioned in #92, we should decide whether we want `Literal.datatype` to be an IRI (string) or a NamedNode.\r\n\r\nFor clarity, here are the definitions:\r\n- an IRI is a string\r\n- `NamedNode` is the RDF/JS interface to represent nodes identified by an IRI\r\n\r\nThe spec currently states:\r\n\r\n> `IRI .datatype` the datatype of the literal\r\n\r\nGiven the definitions above, there are two possible corrections for this:\r\n\r\n- `string .datatype` the IRI of the literal (vote with “thumbs up”)\r\n- `NamedNode .datatype` a named node representing the IRI of this literal  (vote with “laugh”)"},"comment":{"url":"https://api.github.com/repos/rdfjs/representation-task-force/issues/comments/250977747","html_url":"https://github.com/rdfjs/representation-task-force/issues/93#issuecomment-250977747","issue_url":"https://api.github.com/repos/rdfjs/representation-task-force/issues/93","id":250977747,"user":{"login":"RubenVerborgh","id":675313,"avatar_url":"https://avatars.githubusercontent.com/u/675313?v=3","gravatar_id":"","url":"https://api.github.com/users/RubenVerborgh","html_url":"https://github.com/RubenVerborgh","followers_url":"https://api.github.com/users/RubenVerborgh/followers","following_url":"https://api.github.com/users/RubenVerborgh/following{/other_user}","gists_url":"https://api.github.com/users/RubenVerborgh/gists{/gist_id}","starred_url":"https://api.github.com/users/RubenVerborgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubenVerborgh/subscriptions","organizations_url":"https://api.github.com/users/RubenVerborgh/orgs","repos_url":"https://api.github.com/users/RubenVerborgh/repos","events_url":"https://api.github.com/users/RubenVerborgh/events{/privacy}","received_events_url":"https://api.github.com/users/RubenVerborgh/received_events","type":"User","site_admin":false},"created_at":"2016-10-02T15:44:39Z","updated_at":"2016-10-02T15:44:39Z","body":"> I'm pretty sure that entirely depends on the implementation. \r\n\r\nExactly, that was my point :wink:\r\n\r\n> This will likely bog down GC when searching the store for a Literal of a certain datatype since it will create, compare, then discard a new string every time.\r\n\r\nSure, but that's about N3.js.\r\n\r\n> the reasons for using datatype as a string only seem to benefit this specific flavor of an implementation\r\n\r\nNote that there are other reasons for using a datatype as string, as stated by @elf-pavlik and myself above."}}
{"actor":{"display_login":"RubenVerborgh"}}