W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > May 2004

glean.py, a GRDDL implementation based on redland and xsltproc

From: Dan Connolly <connolly@w3.org>
Date: Fri, 28 May 2004 14:19:12 -0500
To: RDF in XHTML task force <public-rdf-in-xhtml-tf@w3.org>
Message-id: <1085771951.2321.217.camel@dirk>

""" glean.py -- GRDDL client implementation

  python glean.py output.rdf output.rdf http://.../input.html
  python glean.py output.rdf output.rdf http://.../input input-copy

  to glean RDF statements as per transformations in input
  and write them to output.rdf.

  input-copy.html is an option local copy of the input document.

 GRDDL Data Views: Getting Started, Learning More
 Gleaning Resource Descriptions from Dialects of Languages (GRDDL)


TODO: peeking-into-profile-docs (working; need to update reference docs)
TODO: general XML support
TODO: peeking-into-namespace docs
TODO: better command-line arg parsing/ordering

ISSUE: I'd rather use pipes than temp files,
 but spawn() is more secure than popen()
 since it allows args to be parsed individually
 rather than as one command string to be parsed
 again by a shell.

LICENSE: Open Source: Share and Enjoy.

GRDDL Workspace: http://www.w3.org/2003/g/

Copyright 2002-2003 World Wide Web Consortium, (Massachusetts
Institute of Technology, European Research Consortium for
Informatics and Mathematics, Keio University). All Rights
Reserved. This work is distributed under the W3C(R) Software License
in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR

# See change log at end
__version__ = '$Id: glean.py,v 1.6 2004/05/28 19:16:25 connolly Exp $'


More on why I wrote it separately...

Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Friday, 28 May 2004 15:19:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:18 UTC