{"action":"created","issue":{"url":"https://api.github.com/repos/MakoLab/RomanticWeb/issues/67","repository_url":"https://api.github.com/repos/MakoLab/RomanticWeb","labels_url":"https://api.github.com/repos/MakoLab/RomanticWeb/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/MakoLab/RomanticWeb/issues/67/comments","events_url":"https://api.github.com/repos/MakoLab/RomanticWeb/issues/67/events","html_url":"https://github.com/MakoLab/RomanticWeb/issues/67","id":234592722,"number":67,"title":"Loading nt file exception","user":{"login":"charbull","id":1880238,"avatar_url":"https://avatars2.githubusercontent.com/u/1880238?v=3","gravatar_id":"","url":"https://api.github.com/users/charbull","html_url":"https://github.com/charbull","followers_url":"https://api.github.com/users/charbull/followers","following_url":"https://api.github.com/users/charbull/following{/other_user}","gists_url":"https://api.github.com/users/charbull/gists{/gist_id}","starred_url":"https://api.github.com/users/charbull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charbull/subscriptions","organizations_url":"https://api.github.com/users/charbull/orgs","repos_url":"https://api.github.com/users/charbull/repos","events_url":"https://api.github.com/users/charbull/events{/privacy}","received_events_url":"https://api.github.com/users/charbull/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-06-08T16:57:54Z","updated_at":"2017-06-11T15:16:19Z","closed_at":"2017-06-11T15:16:19Z","body":"I am writing the output of my context into an nq file\r\nstore.SaveToFile(\"C:\\\\output.nq\", new NQuadsWriter());\r\n\r\nBut then when I try to load it: \r\nI am having the following exception:\r\nIGraph g = new Graph();\r\nFileLoader.Load(g, \"C:\\\\output.nq\");\r\n\r\nVDS.RDF.Parsing.RdfParseException occurred\r\n  HResult=0x80131500\r\n  Message=[UriToken at Line 1 Column 113 to Line 1 Column 142] Unexpected Token 'VDS.RDF.Parsing.Tokens.UriToken' encountered, expected a Dot Line Terminator to terminate a Triple\r\n  Source=dotNetRDF\r\n  StackTrace:\r\n   at VDS.RDF.Parsing.NTriplesParser.TryParseLineTerminator(TokenisingParserContext context)\r\n   at VDS.RDF.Parsing.NTriplesParser.TryParseTriple(TokenisingParserContext context)\r\n   at VDS.RDF.Parsing.NTriplesParser.Parse(TokenisingParserContext context)\r\n   at VDS.RDF.Parsing.NTriplesParser.Load(IRdfHandler handler, TextReader input)\r\n   at VDS.RDF.Parsing.FileLoader.Load(IRdfHandler handler, String filename, IRdfReader parser)\r\n   at VDS.RDF.Parsing.FileLoader.Load(IGraph g, String filename, IRdfReader parser)\r\n   at VDS.RDF.Parsing.FileLoader.Load(IGraph g, String filename)\r\n   at BMSOnt.Program.Main(String[] args) in C:\\Users\\SESA232537\\Source\\Repos\\RomanticWeb\\BMSOnt\\BMSOnt\\Program.cs:line 45\r\n\r\nNot sure where the problem is since the output.nq file seems to be valid when I run it on http://www.easyrdf.org/converter"},"comment":{"url":"https://api.github.com/repos/MakoLab/RomanticWeb/issues/comments/307635167","html_url":"https://github.com/MakoLab/RomanticWeb/issues/67#issuecomment-307635167","issue_url":"https://api.github.com/repos/MakoLab/RomanticWeb/issues/67","id":307635167,"user":{"login":"charbull","id":1880238,"avatar_url":"https://avatars2.githubusercontent.com/u/1880238?v=3","gravatar_id":"","url":"https://api.github.com/users/charbull","html_url":"https://github.com/charbull","followers_url":"https://api.github.com/users/charbull/followers","following_url":"https://api.github.com/users/charbull/following{/other_user}","gists_url":"https://api.github.com/users/charbull/gists{/gist_id}","starred_url":"https://api.github.com/users/charbull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charbull/subscriptions","organizations_url":"https://api.github.com/users/charbull/orgs","repos_url":"https://api.github.com/users/charbull/repos","events_url":"https://api.github.com/users/charbull/events{/privacy}","received_events_url":"https://api.github.com/users/charbull/received_events","type":"User","site_admin":false},"created_at":"2017-06-11T15:16:19Z","updated_at":"2017-06-11T15:16:19Z","body":"@alien-mcl Correct ! Thank you !\r\n\r\nI am sharing the code here, in case others are interested.\r\n\r\n```C#\r\n   IGraph g = new Graph();\r\n   graphList = store.Graphs.ToList();\r\n   foreach(IGraph currentGraph in graphList)\r\n     {\r\n        g.Merge(currentGraph);\r\n      }\r\n            \r\n    RdfXmlWriter rdfxmlwriter = new RdfXmlWriter();\r\n   rdfxmlwriter.Save(g, \"C:\\\\output.rdf\");\r\n```"}}
{"actor":{"display_login":"charbull"}}