{"action":"created","issue":{"url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/281","labels_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/281/comments","events_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/281/events","html_url":"https://github.com/openlink/virtuoso-opensource/issues/281","id":53648213,"number":281,"title":"SPARQL RDF/XML result format comments out results","user":{"login":"joernhees","id":464192,"avatar_url":"https://avatars.githubusercontent.com/u/464192?v=3","gravatar_id":"","url":"https://api.github.com/users/joernhees","html_url":"https://github.com/joernhees","followers_url":"https://api.github.com/users/joernhees/followers","following_url":"https://api.github.com/users/joernhees/following{/other_user}","gists_url":"https://api.github.com/users/joernhees/gists{/gist_id}","starred_url":"https://api.github.com/users/joernhees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joernhees/subscriptions","organizations_url":"https://api.github.com/users/joernhees/orgs","repos_url":"https://api.github.com/users/joernhees/repos","events_url":"https://api.github.com/users/joernhees/events{/privacy}","received_events_url":"https://api.github.com/users/joernhees/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-07T16:06:45Z","updated_at":"2015-01-07T16:24:48Z","closed_at":null,"body":"Running the following query should give me all in/out triples about http://en.wikipedia.org/wiki/Tent . I noticed that depending on the selected result format the results were different...\r\n```\r\nCONSTRUCT {\r\n    ?node ?p ?o .\r\n    ?s ?p ?node .\r\n} WHERE {\r\n    {\r\n        ?node ?p ?o .\r\n    } UNION {\r\n        ?s ?p ?node .\r\n    }\r\n    VALUES (?node) { (<http://en.wikipedia.org/wiki/Tent>) }\r\n}\r\n```\r\n\r\nIf i select N-Triples as result format i get [this](http://lod.openlinksw.com/sparql?default-graph-uri=&query=CONSTRUCT+{%0D%0A++++%3Fnode+%3Fp+%3Fo+.%0D%0A++++%3Fs+%3Fp+%3Fnode+.%0D%0A}+WHERE+{%0D%0A++++{%0D%0A++++++++%3Fnode+%3Fp+%3Fo+.%0D%0A++++}+UNION+{%0D%0A++++++++%3Fs+%3Fp+%3Fnode+.%0D%0A++++}%0D%0A++++VALUES+%28%3Fnode%29+{+%28%3Chttp%3A%2F%2Fen.wikipedia.org%2Fwiki%2FTent%3E%29+}%0D%0A}%0D%0A&format=text%2Fplain&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&debug=on):\r\n```ntriples\r\n<http://en.wikipedia.org/wiki/Tent>\t<http://schema.org/about>\t<http://www.wikidata.org/entity/Q170544> .\r\n<http://en.wikipedia.org/wiki/Tent>\t<http://schema.org/inLanguage>\t\"en\" .\r\n<http://www.productontology.org/id/Tent>\t<http://xmlns.com/foaf/0.1/page>\t<http://en.wikipedia.org/wiki/Tent> .\r\n<http://dbpedia.org/resource/Tent>\t<http://xmlns.com/foaf/0.1/isPrimaryTopicOf>\t<http://en.wikipedia.org/wiki/Tent> .\r\n<http://rdf.freebase.com/ns/m.01j61q>\t<http://rdf.freebase.com/ns/common.topic.topic_equivalent_webpage>\t<http://en.wikipedia.org/wiki/Tent> .\r\n<http://en.wikipedia.org/wiki/Tent>\t<http://purl.org/dc/elements/1.1/language>\t\"en\" .\r\n<http://en.wikipedia.org/wiki/Tent>\t<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>\t<http://schema.org/Article> .\r\n<http://en.wikipedia.org/wiki/Tent>\t<http://xmlns.com/foaf/0.1/primaryTopic>\t<http://dbpedia.org/resource/Tent> .\r\n```\r\n\r\nIf i select RDF/XML i get [this](http://lod.openlinksw.com/sparql?default-graph-uri=&query=CONSTRUCT+{%0D%0A++++%3Fnode+%3Fp+%3Fo+.%0D%0A++++%3Fs+%3Fp+%3Fnode+.%0D%0A}+WHERE+{%0D%0A++++{%0D%0A++++++++%3Fnode+%3Fp+%3Fo+.%0D%0A++++}+UNION+{%0D%0A++++++++%3Fs+%3Fp+%3Fnode+.%0D%0A++++}%0D%0A++++VALUES+%28%3Fnode%29+{+%28%3Chttp%3A%2F%2Fen.wikipedia.org%2Fwiki%2FTent%3E%29+}%0D%0A}%0D%0A&format=application%2Frdf%2Bxml&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&debug=on): \r\n```xml\r\n<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n<rdf:RDF\r\n\txmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\r\n\txmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\"\r\n\txmlns:dc=\"http://purl.org/dc/elements/1.1/\"\r\n\txmlns:foaf=\"http://xmlns.com/foaf/0.1/\"\r\n\txmlns:ns4=\"http://schema.org/\" >\r\n  <rdf:Description rdf:about=\"http://dbpedia.org/resource/Tent\">\r\n    <foaf:isPrimaryTopicOf rdf:resource=\"http://en.wikipedia.org/wiki/Tent\" />\r\n  </rdf:Description>\r\n  <rdf:Description rdf:about=\"http://en.wikipedia.org/wiki/Tent\">\r\n    <rdf:type rdf:resource=\"http://schema.org/Article\" />\r\n    <dc:language>en</dc:language>\r\n    <foaf:primaryTopic rdf:resource=\"http://dbpedia.org/resource/Tent\" />\r\n    <ns4:inLanguage>en</ns4:inLanguage>\r\n    <ns4:about rdf:resource=\"http://www.wikidata.org/entity/Q170544\" />\r\n  </rdf:Description>\r\n  <rdf:Description rdf:about=\"http://rdf.freebase.com/ns/m.01j61q\">\r\n    <!--\r\n    <p: xmlns:p=\"http://rdf.freebase.com/ns/common.topic.topic_equivalent_webpage\" rdf:resource=\"http://en.wikipedia.org/wiki/Tent\" />\r\n    -->\r\n  </rdf:Description>\r\n  <rdf:Description rdf:about=\"http://www.productontology.org/id/Tent\">\r\n    <foaf:page rdf:resource=\"http://en.wikipedia.org/wiki/Tent\" />\r\n  </rdf:Description>\r\n</rdf:RDF>\r\n```\r\n\r\nAs you can see the triple with http://rdf.freebase.com/ns/m.01j61q as subject is commented out.\r\n\r\nThis doesn't look right to me... if it is, it seems rdflib can't parse that triple from the XML format :-/\r\n"},"comment":{"url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/comments/69046890","html_url":"https://github.com/openlink/virtuoso-opensource/issues/281#issuecomment-69046890","issue_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/281","id":69046890,"user":{"login":"joernhees","id":464192,"avatar_url":"https://avatars.githubusercontent.com/u/464192?v=3","gravatar_id":"","url":"https://api.github.com/users/joernhees","html_url":"https://github.com/joernhees","followers_url":"https://api.github.com/users/joernhees/followers","following_url":"https://api.github.com/users/joernhees/following{/other_user}","gists_url":"https://api.github.com/users/joernhees/gists{/gist_id}","starred_url":"https://api.github.com/users/joernhees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joernhees/subscriptions","organizations_url":"https://api.github.com/users/joernhees/orgs","repos_url":"https://api.github.com/users/joernhees/repos","events_url":"https://api.github.com/users/joernhees/events{/privacy}","received_events_url":"https://api.github.com/users/joernhees/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T16:24:48Z","updated_at":"2015-01-07T16:24:48Z","body":"hmm, maybe this has something to do with your code checking for valid QNames... i fail to see what would be bad about the following though:\r\n```xml\r\n<x:common.topic.topic_equivalent_webpage xmlns:x=\"http://rdf.freebase.com/ns/\" rdf:resource=\"http://en.wikipedia.org/wiki/Tent\" />\r\n```\r\nwouldn't that be a valid qname?"}}