{"action":"opened","issue":{"url":"https://api.github.com/repos/tgbugs/pyontutils/issues/16","repository_url":"https://api.github.com/repos/tgbugs/pyontutils","labels_url":"https://api.github.com/repos/tgbugs/pyontutils/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/tgbugs/pyontutils/issues/16/comments","events_url":"https://api.github.com/repos/tgbugs/pyontutils/issues/16/events","html_url":"https://github.com/tgbugs/pyontutils/issues/16","id":257187410,"number":16,"title":"ttlser fails if a literal is a subject","user":{"login":"tgbugs","id":4299776,"avatar_url":"https://avatars2.githubusercontent.com/u/4299776?v=4","gravatar_id":"","url":"https://api.github.com/users/tgbugs","html_url":"https://github.com/tgbugs","followers_url":"https://api.github.com/users/tgbugs/followers","following_url":"https://api.github.com/users/tgbugs/following{/other_user}","gists_url":"https://api.github.com/users/tgbugs/gists{/gist_id}","starred_url":"https://api.github.com/users/tgbugs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgbugs/subscriptions","organizations_url":"https://api.github.com/users/tgbugs/orgs","repos_url":"https://api.github.com/users/tgbugs/repos","events_url":"https://api.github.com/users/tgbugs/events{/privacy}","received_events_url":"https://api.github.com/users/tgbugs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-12T21:22:01Z","updated_at":"2017-09-12T21:22:01Z","closed_at":null,"author_association":"OWNER","body":"```\r\nimport rdflib\r\nfrom pyontutils.utils import makeGraph\r\ng = makeGraph('buggraph', graph=rdflib.Graph())\r\ng.g.add((rdflib.Literal('UT OH'), rdflib.RDFS.comment, rdflib.Literal('This will end badly.')))\r\ng.write()\r\n```\r\nProduces a key error since subject literals don't seem to make it into the global sort keys.\r\n\r\nThe default turtle serializer produces the following.\r\n````\r\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\r\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\r\n@prefix xml: <http://www.w3.org/XML/1998/namespace> .\r\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\r\n\r\n\"UT OH\" rdfs:comment \"This will end badly.\" .\r\n```"}}
{"actor":{"display_login":"tgbugs"}}