com.xmlns.foaftown
Class SPARQLQueryProvider

java.lang.Object
  extended by com.xmlns.foaftown.SPARQLQueryProvider
All Implemented Interfaces:
org.jivesoftware.smack.provider.IQProvider

public class SPARQLQueryProvider
extends java.lang.Object
implements org.jivesoftware.smack.provider.IQProvider

This class concerns itself with parsingSPARQL IQ data. The parseIQ method populates an IQ based on markup from the XMPP stream (we look at the elements to figure out if the stream carries a query versus its results... not sure how else to determine). This is closely bound up with the getChildElementXML() of QuerySPARQLIQ which does the opposite; it inspects its state (which SPARQLQueryProvider populates from markup) and reconstructs appropriately similar XML. Note that a receiving app won't get the raw streamed XML, but only access to the parts that survive the parseIQ parser! So make sure these two classes are in sync. See also: http://ex-337.net/gradient/docs/design/iq-providers.html http://ex-337.net/gradient-javadoc/net/ex_337/gradient/packet/DOMIQProvider.html ...for an approach to 'pass through' provider. Could adapt this to grab the output into a form re-parsable by ARP, for XML SPARQL Results? http://ex-337.net/downloads/gradient-src.1.0.0.zip Todo: capture incoming xml resultset markup as a DOM OK. A plan. We'll use public domain XMLUtils (in the cvs tree)


Constructor Summary
SPARQLQueryProvider()
           
 
Method Summary
 org.jivesoftware.smack.packet.IQ parseIQ(org.xmlpull.v1.XmlPullParser xpp)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPARQLQueryProvider

public SPARQLQueryProvider()
Method Detail

parseIQ

public org.jivesoftware.smack.packet.IQ parseIQ(org.xmlpull.v1.XmlPullParser xpp)
Specified by:
parseIQ in interface org.jivesoftware.smack.provider.IQProvider


Some rights reserved.