- From: Mark Baker <distobj@acm.org>
- Date: Thu, 13 Jun 2002 05:14:48 -0400
- To: www-ws-arch@w3.org
- Cc: me@aaronsw.com
FYI, this is how one might do stock quotes in RDF/RDFS. If you look at the definitions behind the quotes, ala; http://notabug.com/2002/stock?t= you might notice that there's not a lot of information there that isn't available in an XML Schema definition (except the use of rdf:type, rdfs:label, rdfs:Class). The big win of RDF is when you compare stock quotes to other things, permitting a no-new-code means of doing things like integrating stock quotes into RSS and building an RSS feed out of it (note to Aaron; how about doing that?). Using just XML schema doesn't give you this capability, which is the basis of my concern that we be too focused on it; if you restrict yourself to XML schema, you are explicitly making a choice not to catpure lots of very useful information. MB ----- Forwarded message from Aaron Swartz <me@aaronsw.com> ----- Date: Thu, 6 Jun 2002 17:02:44 -0500 Mime-Version: 1.0 (Apple Message framework v482) Content-Type: text/plain; charset=US-ASCII; format=flowed From: Aaron Swartz <me@aaronsw.com> To: www-rdf-interest@w3.org Content-Transfer-Encoding: 7bit Message-Id: <213D9690-7999-11D6-B979-0003936780B2@aaronsw.com> Subject: Stock Quotes in RDF X-Mailing-List: <www-rdf-interest@w3.org> archive/latest/6432 Sender: www-rdf-interest-request@w3.org List-Id: <www-rdf-interest.w3.org> List-Help: <http://www.w3.org/Mail/> List-Unsubscribe: <mailto:www-rdf-interest-request@w3.org?subject=unsubscribe> Since everyone uses the stock quote example for the canonical SOAP app, I figured RDF needed one too. I thought the DAML HTML scraper[1] would do the job but it only handles NYSE stocks for some reason. So I wrote my own in Python. Pick a stock, any stock: http://notabug.com/2002/stock?s=AAPL (replace "AAPL" with the stock you want) Schema: http://notabug.com/2002/stock?t= Source: http://notabug.com/2002/stock.py It's a bit rushed and hacked up. Ideally it'd support Accept: headers and give back HTML, RDF/XML , etc. Comments appreciated. [1] http://www.daml.org/2001/10/html/ Thanks, -- Aaron Swartz [http://www.aaronsw.com] ----- End forwarded message ----- -- Mark Baker, CTO, Idokorro Mobile (formerly Planetfred) Ottawa, Ontario, CANADA. distobj@acm.org http://www.markbaker.ca http://www.idokorro.com
Received on Thursday, 13 June 2002 05:05:02 UTC