<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>testing</title>
  <link rel="alternate" type="text/html" href="http://pingv.com/tag/testing"/>
  <link rel="self" type="application/atom+xml" href="http://pingv.com/taxonomy/term/204/atom/feed"/>
  <id>http://pingv.com/taxonomy/term/204/atom/feed</id>
  <updated>2007-08-21T18:30:31-05:00</updated>
  <entry>
    <title>Drupal growth, semantically tested</title>
    <link rel="alternate" type="text/html" href="http://pingv.com/blog/laura/2008/drupal-growth-semantically-tested" />
    <id>http://pingv.com/blog/laura/2008/drupal-growth-semantically-tested</id>
    <published>2008-03-11T10:43:49-05:00</published>
    <updated>2008-06-20T16:18:03-05:00</updated>
    <author>
      <name>Laura</name>
    </author>
    <category term="Drupal" />
    <category term="DrupalCon Boston 2008" />
    <category term="RDF" />
    <category term="semantic web" />
    <category term="testing" />
    <content type="html"><![CDATA[ <p>The RDF initiative for Drupal 7 <a href="http://boston2008.drupalcon.org/dries-buytaert-0">announced by Dries last week at DrupalCon Boston 2008</a> has been getting a lot of interesting attention. (Check out the <a href="http://groups.drupal.org/node/9363">video mashup demo</a>.) Today <a href="http://blogs.talis.com/nodalities/2008/03/developers_calling_semantic_we.php">Danny Ayers points to an email on the w3c list</a>, by <a href="http://bendiken.net/">Arto Bendiken</a> in a thread "Drupal 7 to be a major linked data client" where he summarizes quite well this initiative and how the Drupal community can be aided in this endeavor.</p>
<blockquote><p>Until recently, there have been perhaps a dozen Drupal developers actively working at the intersection of Drupal and RDF-based technologies - these consist pretty much of the various authors of the modules I listed in my earlier e-mail (which Danny forwarded to this list).</p>
<p>Now, Dries Buytaert's endorsement last week [1] of RDF as a key technology in the upcoming next Drupal version (7.0) has generated a lot of buzz in the Drupal community, and as a result a much larger bunch of Drupal developers are in the process of looking into and learning about RDF and SPARQL - some of them for the first time, others with eyes already clouded by previous sentiment from the early days of RDF....</p>
<p>...Dries's endorsement came at an opportune time, and the consortium I represent [6] collaborated with Dries to produce the 5-minute "video from the future" mashup demonstration [7] for his keynote presentation at Drupalcon Boston 2008. </p>
<p>--</p>
<p>[1] <a href="http://blogs.talis.com/nodalities/2008/03/the_best_is_yet_to_come.php" title="http://blogs.talis.com/nodalities/2008/03/the_best_is_yet_to_come.php">http://blogs.talis.com/nodalities/2008/0...</a><br />
[6] <a href="http://groups.drupal.org/node/9010" title="http://groups.drupal.org/node/9010">http://groups.drupal.org/node/9010</a><br />
[7] http://groups.drupal.org/node/9363</p></blockquote>
<p>I have to say that this demo was quite impressive. Arto's email provides a nicely concise rundown of the challenges, some myths, and action items for the Semantic Web Education and Outreach (SWEO) Interest Group.</p>
<p>For our part, we're very excited to see Drupal pushing forward so quickly into the semantic web and the potentials offered by things such as this RDF initiative. We're big believers in semantic mark-up and microformats. <a href="http://pingv.com/about/people/al-steffen">Al Steffen</a>'s contributed theme <a href="http://drupal.org/project/hunchbaque">Hunchbaque</a> offers themers and developers a nice starting point.</p>
<p>Arto points out that the biggest challenge will be the learning curve for people new to RDF:</p>
<blockquote><p>On this front we will need to overcome prevailing RDF myths, some the most prevalent ones (off the top of my head) being related to "lack of widespread adoption", "lack of performance/scalability", "too much complexity", and so on. In other words, things that may have been true once upon a time but more likely than not have been put to rest since then.</p>
<p>In addition, there is the matter of the syntax versus semantics issue - that is, people still insist on comparing XML and RDF as if they weren't apples to oranges, and yet others have persisted in imagining RDF as merely an early version of RSS, now supposed to be dead and trampled over by the Atom bandwagon. There is clearly much unlearning and re-education work to be done on these matters; but I would guess SWEO members have heard these concerns previously.</p></blockquote>
<p>If this is all new to you, I encourage you to read <a href="http://blogs.talis.com/nodalities/2008/03/web_3g.php">last week's nice summary by Ian Davis</a>:</p>
<blockquote><p>Web 3G is what happens when you fuse the social participation of Web 2.0 with the decentralized structured information of the Semantic Web. The result is a smarter way of organising information in a network of interwoven semantic links and content, enhanced with feedback from usage and participation. We're coming up to the end of two decades of the Web, the first of which was spent seeding the bare essentials of the web of documents. The second decade saw widespread broadband adoption enable mass participation and creation of content by millions. The next decade is going to radically change how we find, create, use and relate to that information.</p>
<p>The Web right now is built from the generic hyperlink, which says nothing more than "look over here". But even this weak semantic was enough to enable Google's Pagerank to organise and score the Web. Imagine how much more powerful the hyperlink could be if it were possible to express sentiment or meaning in the link. Even if that were limited to positive or negative endorsement of the target of the link, the value to the relevance ranking of search engines and applications would be huge. However, the possibilities for expressing the intention of a link between two pages are endless. For example, it could be possible for writers to say whether they support or reject the views expressed in the target of the link, or whether they are linking to conflicting evidence or alternative versions of the same information. These simple expressions of intention could provide an entirely new dimension of metadata. The links between things are fundamental to the existence of the Web and the value of understanding why things are related is huge.</p></blockquote>
<p><strong>[Update:</strong> See also the <a href="http://esw.w3.org/topic/SweoIG/TaskForces/InfoGathering/RecommendedTutorials#beginnerstech">ESW Wiki</a> for some very helpful links.<strong>]</strong></p>
<p>No doubt there's a lot to be learned, discovered, hashed out and developed....</p>
<p>...And tested. As of last Friday at the Drupal code sprint, our own <a href="http://www.kevinbridges.org/node/137">Kevin Bridges is now involved</a> in developing a continual <a href="http://groups.drupal.org/unit-testing">unit testing framework</a> for Drupal 6 and 7; and <a href="http://pingv.com/about/people/greg-hines">Greg Hines</a> has joined the JavaScript testing effort.</p>
<p>Drupal has entered the enterprise realm without leaving behind the sound principles of an open internet and the core values of open source. And Drupal is getting better, and helping lead the web into its future of being whatever it becomes.</p>
     ]]></content>
  </entry>
  <entry>
    <title>Quick and dirty XMLRPC Clients for testing</title>
    <link rel="alternate" type="text/html" href="http://pingv.com/blog/john-fiala/200708/quick-and-dirty-xmlrpc-clients-testing" />
    <id>http://pingv.com/blog/john-fiala/200708/quick-and-dirty-xmlrpc-clients-testing</id>
    <published>2007-08-21T19:15:27-05:00</published>
    <updated>2007-08-21T18:30:31-05:00</updated>
    <author>
      <name>John Fiala</name>
    </author>
    <category term="code" />
    <category term="Drupal" />
    <category term="hook_xmlrpc" />
    <category term="testing" />
    <category term="xmlrpc" />
    <content type="html"><![CDATA[ <p>Hey folks.  I'm a new hire here at the pingVision ranch, and so I've not had a lot to say, but some of my esteemed colleagues suggested I share this tidbit.</p>
<p>I recently had to create a small, simple xmlrpc service in a Drupal project.  That involves hook_xmlrpc, which is very well documented and is pretty darn easy to use.  However, for testing purposes I needed to throw together a simple page to hit my service and display what it found.  After a little googling, I found this page: <a href="http://keithdevens.com/software/xmlrpc" title="http://keithdevens.com/software/xmlrpc">http://keithdevens.com/software/xmlrpc</a>.</p>
<p>If you download the source he's sharing there, then you can set up a simple xml client like so:</p>
<div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">require_once </span><span style="color: #DD0000">'source.php'</span><span style="color: #007700">;</p>
<p></span><span style="color: #0000BB">define</span><span style="color: #007700">(</span><span style="color: #DD0000">"XMLRPC_DEBUG"</span><span style="color: #007700">, </span><span style="color: #0000BB">1</span><span style="color: #007700">);</p>
<p></span><span style="color: #0000BB">XMLRPC_request</span><span style="color: #007700">(</span><span style="color: #DD0000">'time.xmlrpc.com'</span><span style="color: #007700">, </span><span style="color: #DD0000">'/RPC2'</span><span style="color: #007700">, </span><span style="color: #DD0000">'currentTime.getCurrentTime'</span><span style="color: #007700">, </span><span style="color: #0000BB">NULL</span><span style="color: #007700">, </span><span style="color: #0000BB">NULL</span><span style="color: #007700">);</p>
<p></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">);</p>
<p></span><span style="color: #0000BB">XMLRPC_debug_print</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
<p>This works very well - the first parameter is the host you're going to, the second is the path - for hook_xmlrpc in Drupal it's going to be either '/xmlrpc.php' or the like - the third parameter is the method name, the fourth is an array of parameters for the method, and the last is some sort of user_agent, which I don't currently understand the purpose of.  (Apparently it's the browser you're querying from, or something like that - as far as I can see, leaving it NULL is fine.)</p>
<p>Naturally the print_r($result) gives you the result on the screen, but the XMLRPC_debug_print() function additionally gives you a lot of debugging information for your rpc call - the xml you sent, the xml you received, and another view of the data that XMLRPC_request returned.</p>
<p>I hope that's helpful to folks out there, and I look forward to learning more about Drupal's many interesting features.</p>
     ]]></content>
  </entry>
</feed>
