Search the web
Sign In
New User? Sign Up
rdfdb · Discussion about rdfDB
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Query syntax proposal - namespace abbreviations?   Message List  
Reply | Forward Message #6 of 794 |


RDFdb-ists,

What do you think about allowing namespace abbreviations within the
query syntax? At ILRT we've been using this sort of thing:

SELECT ?sal, ?t
FROM http://ilrt.org/discovery/2000/11/rss-query/jobs-rss.rdf,
http://ilrt.org/discovery/2000/11/rss-query/jobs.rss
WHERE
(job::advertises ?x ?y)
(job::salary ?y ?sal)
(job::title ?y ?t)
AND ?sal > 55000
USING job for http://ilrt.org/discovery/2000/11/rss-query/jobvocab.rdf#


or...

SELECT ?signer, ?signerMail, ?signee, ?signeeMail
FROM http://rdfweb.org/~pldab/rdfweb/danbri.wot.rdf
WHERE
(wot::identity ?pk ?id)
(foaf::name ?id ?signee)
(foaf::mbox ?id ?signeeMail)
(wot::signed ?id ?e)
(foaf::name ?e ?signer)
(foaf::mbox ?e ?signerMail)
USING wot FOR http://xmlns.com/wot/0.1/
foaf FOR http://xmlns.com/foaf/0.1/


...and it seems to be reasonably readable. Probably would also be nice
to allow 'USING default namespace http://etc' in the namespace clause
too.

I'm proposing '::' rather than ':' since this a single ':' can legally
appear in a URI, making it hard to tell when a namespace expansion is
intended (eg. news: is a URI scheme, but news:: is a namespace name).

How does this sound?

Dan




Mon Jan 8, 2001 3:12 pm

daniel.brickley@...
Send Email Send Email

Forward
Message #6 of 794 |
Expand Messages Author Sort by Date

RDFdb-ists, What do you think about allowing namespace abbreviations within the query syntax? At ILRT we've been using this sort of thing: SELECT ?sal, ?t FROM...
Dan Brickley
daniel.brickley@...
Send Email
Jan 8, 2001
3:14 pm

Dan, I think your proposal sounds great, and something like it is much needed, from the little that I've played with rdfdb. Since you seem to actually be...
Tom Green
tom@...
Send Email
Jan 11, 2001
6:31 pm

... This IMHO is a bug. I think Guha's a bit busy now but I'm supposed to be checking the code into SourceForge so such fixes can be made by others. If you...
Dan Brickley
daniel.brickley@...
Send Email
Jan 11, 2001
7:47 pm

Its pretty straightforward to use a different separator. Change the '#' on line 182 in librdf/parsers.c to whatever you want. If there is consensus on the...
R.V.Guha
guha@...
Send Email
Jan 11, 2001
7:24 pm

I eat my words :-) Hi Guha. Why/when exactly do we need a separator character? Nothing in XML Namespaces nor RDF imposes this, though I agree it's useful to...
Dan Brickley
daniel.brickley@...
Send Email
Jan 11, 2001
7:45 pm

Kind of nice to have it, isn't it? This piece of action comes from expat which smushes together the namespace and local name. Guha...
R.V.Guha
guha@...
Send Email
Jan 11, 2001
8:00 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help