

{"id":116,"date":"2013-11-15T14:31:56","date_gmt":"2013-11-15T13:31:56","guid":{"rendered":"https:\/\/project.inria.fr\/QuiXProc\/?page_id=116"},"modified":"2013-12-04T14:06:08","modified_gmt":"2013-12-04T13:06:08","slug":"twitter-demo","status":"publish","type":"page","link":"https:\/\/project.inria.fr\/quix-tool-suite\/twitter-demo\/","title":{"rendered":"QuiX-Tool Suite Twitter demo"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/project.inria.fr\/quix-tool-suite\/files\/2013\/11\/Tom_Twitter_demo_aers.jpg\" alt=\"Tom Sebatian\" width=\"250\" height=\"250\"  \/><\/p>\n<p>We illustrate the QuiXTool-Suite for querying and transforming XML<br \/>\nstream. In particular, we show how to<br \/>\nuse XPath and XSLT for querying and transforming Twitter streams.<\/p>\n<h1>How do I get a login?<\/h1>\n<p>To request a login, <a href=\"https:\/\/docs.google.com\/forms\/d\/1vpVkgexH_K4u66SwqvEu2ZnDr51T-uD3t2Zn7FgIkBc\/viewform?embedded=true#start=embed\">click here<\/a>.<\/p>\n<h1>Run XPath and\/or XSLT over Twitter\u2019s global stream of Tweet data.<\/h1>\n<p>Usage:<br \/>\ntwitter &#8211;xpath <query> [&#8211;output file] [&#8211;time timeInSeconds]<br \/>\ntwitter &#8211;xslt <stylesheet> [&#8211;output file] [&#8211;time timeInSeconds]<\/p>\n<h2>XPath<\/h2>\n<p>Use XPath to select any subtree of the stream. E.g. all english tweets:<\/p>\n<p><code>&gt;  twitter --xpath \u201c\/\/tweet[.\/object\/lang[contains(.,\u2019en\u2019)]]\u201d<\/code><\/p>\n<p>Be aware that XPath queries selecting twees output a huge tweet-subtree. For displaying only the text of tweets you may run the following query:<\/p>\n<p><code>&gt; twitter --xpath \u201c\/\/tweet\/object\/text[contains(.,\u2019love\u2019)]\/value\/string\/text()\u201d<\/code><\/p>\n<p>As the Twitter stream is infinite, you may want to set the time of processing (in seconds). The default processing time is 5 seconds.<\/p>\n<p><code>&gt; twitter --xpath \u201c\/\/tweet\/object\/text[contains(.,\u2019love\u2019)]\/value\/string\/text()\u201d --time 60<\/code><\/p>\n<h2>XSLT<\/h2>\n<p>Transform Twitter\u2019s stream via XSLT. E.g. create a table with all tweets containing \u2018love\u2019 using a sample style-sheet \u201ctweetsInTable\u201d, or create and upload your own style-sheet.<\/p>\n<p><code>&gt; twitter --xslt \/share\/tweetsInTable.xslt --output out.html --time 60<\/code><\/p>\n<h1>Troubleshooting<\/h1>\n<p>Problem:<br \/>\nTwitterException when connecting to twitter.<\/p>\n<p>Test Machine is out of sync.<\/p>\n<p>Solution:<br \/>\nContact QuiX-Proc team: <a href=\"mailto:someone@example.com?Subject=Test%20Machine%20is%20out%20of%20sync\">xml-streaming@inria.fr<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>We illustrate the QuiXTool-Suite for querying and transforming XML stream. In particular, we show how to use XPath and XSLT for querying and transforming Twitter streams. How do I get a login? To request a login, click here. Run XPath and\/or XSLT over Twitter\u2019s global stream of Tweet data. Usage: twitter &#8211;xpath [&#8211;output file] [&#8211;time &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/project.inria.fr\/quix-tool-suite\/twitter-demo\/\">Continue reading<\/a><\/p>\n","protected":false},"author":379,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-116","page","type-page","status-publish","hentry","nodate","item-wrap"],"_links":{"self":[{"href":"https:\/\/project.inria.fr\/quix-tool-suite\/wp-json\/wp\/v2\/pages\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/project.inria.fr\/quix-tool-suite\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/project.inria.fr\/quix-tool-suite\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/project.inria.fr\/quix-tool-suite\/wp-json\/wp\/v2\/users\/379"}],"replies":[{"embeddable":true,"href":"https:\/\/project.inria.fr\/quix-tool-suite\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":10,"href":"https:\/\/project.inria.fr\/quix-tool-suite\/wp-json\/wp\/v2\/pages\/116\/revisions"}],"predecessor-version":[{"id":314,"href":"https:\/\/project.inria.fr\/quix-tool-suite\/wp-json\/wp\/v2\/pages\/116\/revisions\/314"}],"wp:attachment":[{"href":"https:\/\/project.inria.fr\/quix-tool-suite\/wp-json\/wp\/v2\/media?parent=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}