{"action":"created","issue":{"url":"https://api.github.com/repos/RubenVerborgh/N3.js/issues/50","labels_url":"https://api.github.com/repos/RubenVerborgh/N3.js/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/RubenVerborgh/N3.js/issues/50/comments","events_url":"https://api.github.com/repos/RubenVerborgh/N3.js/issues/50/events","html_url":"https://github.com/RubenVerborgh/N3.js/issues/50","id":97457217,"number":50,"title":"Language tag after store.find function","user":{"login":"StanCallewaert","id":10974018,"avatar_url":"https://avatars.githubusercontent.com/u/10974018?v=3","gravatar_id":"","url":"https://api.github.com/users/StanCallewaert","html_url":"https://github.com/StanCallewaert","followers_url":"https://api.github.com/users/StanCallewaert/followers","following_url":"https://api.github.com/users/StanCallewaert/following{/other_user}","gists_url":"https://api.github.com/users/StanCallewaert/gists{/gist_id}","starred_url":"https://api.github.com/users/StanCallewaert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StanCallewaert/subscriptions","organizations_url":"https://api.github.com/users/StanCallewaert/orgs","repos_url":"https://api.github.com/users/StanCallewaert/repos","events_url":"https://api.github.com/users/StanCallewaert/events{/privacy}","received_events_url":"https://api.github.com/users/StanCallewaert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RubenVerborgh/N3.js/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-27T12:57:05Z","updated_at":"2015-07-27T16:24:57Z","closed_at":null,"body":"Hi Ruben\r\n\r\n## Problem\r\n\r\nI'm working on a DCAT validator for oSoc15 and I seem to have a problem with the language tag after finding a triple his object in the store.\r\n\r\nThe problem is that if i try to find a certain triple with the find function and I console.log the triple his object i get:\r\nDe DataTank Demo\"^^http://www.w3.org/1999/02/22-rdf-syntax-ns#langString\r\n\r\nWhile the triple i inserted was: \r\n<http://demo.thedatatank.com/api/dcat> dc:title \"De DataTank Demo\"@nl ;\r\n\r\nThere is an \"nl\" tag behind the object of the triple when i insert it in the store but I can't get it when I use the find function.\r\n\r\n## How I've tried to solve the problem\r\n\r\nI've looked through your documentation and saw that there is a function:\r\nN3Util.getLiteralLanguage('\"Mickey Mouse\"@en');\r\n\r\nBut the triple object I get back from the find function doesn't return the literal with the language tag so concrete the find function would return: \"Mickey Mouse\" without @en.\r\n\r\nIs there a way to solve this issue, if there is i'll be happy to hear it. Thanks in advance!!\r\n\r\nBtw: you can find my DCAT validator project here: https://github.com/oSoc15/dcat-validator.js"},"comment":{"url":"https://api.github.com/repos/RubenVerborgh/N3.js/issues/comments/125263229","html_url":"https://github.com/RubenVerborgh/N3.js/issues/50#issuecomment-125263229","issue_url":"https://api.github.com/repos/RubenVerborgh/N3.js/issues/50","id":125263229,"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":"2015-07-27T16:24:57Z","updated_at":"2015-07-27T16:24:57Z","body":"I cannot reproduce this behavior with the following code:\r\n\r\n```JavaScript\r\nvar store = new N3.Store();\r\nstore.addTriple('http://demo.thedatatank.com/api/dcat',\r\n                'http://purl.org/dc/elements/1.1/title',\r\n                '\"De DataTank Demo\"@nl');\r\nvar triple = store.find()[0];\r\nconsole.log(triple.object);\r\nconsole.log(N3.Util.getLiteralLanguage(triple.object));\r\n```\r\n\r\nPlease provide a minimal failing example."}}