- From: Dan Brickley <Daniel.Brickley@bristol.ac.uk>
- Date: Wed, 8 Aug 2001 21:16:35 +0100 (BST)
- To: Aaron Swartz <aswartz@upclink.com>
- cc: www-archive@w3.org
work-in-progress... #!/usr/bin/python # # experimental rdf query client in SOAP import SOAP query = """SELECT ?x, ?title, ?a, ?moddate, ?createddate, ?name, ?creatormail FROM http://rdfweb.org/people/danbri/2001/06/dcarch-test/dc3.rdf WHERE (dc::title ?x ?title) (dcq::abstract ?x ?a) (dcq::modified ?x ?m) (dcq::created ?x ?cd) (rdf::value ?m ?moddate) (rdf::value ?cd ?createddate) (dc::creator ?x ?cr) (vcard::FN ?cr ?name) (vcard::EMAIL ?cr ?creatormail) USING dcq for http://dublincore.org/2000/03/13/dcq# rdf for http://www.w3.org/1999/02/22-rdf-syntax-ns# vcard for http://www.w3.org/2001/vcard-rdf/3.0# dc for http://purl.org/dc/elements/1.1/""" data = """http://rdfweb.org/people/danbri/2001/06/dcarch-test/dc3.rdf"""; server = SOAP.SOAPProxy("http://fireball.dyndns.org/cgi-bin/soap", namespace = "http://rdfweb.org/RDF/RDFWeb/SOAPDemo") rs = server.squish(query, data) print "result set is ", rs # now I need some code to turn the xml-serialised result set object back # into 'real' objects... Also need to look into how we want the server # to serialise hashes, and how SOAP.py deals with these. # # see also: # http://www.onlamp.com/pub/a/python/2001/06/14/pysoap.html # danbri@w3.org
Received on Thursday, 9 August 2001 06:16:36 UTC