[sc34wg3] TMQL, State of Affairs
Steve Carton
sc34wg3@isotopicmaps.org
Wed, 25 May 2005 12:11:49 -0400
I'd like to (perhaps timidly) weigh in on this.
It seems to me that in and of itself, the complexity of a data model
isn't justification for a query language specific to that model. Now
does it seem to me that the fact of many data models being coupled with
dedicated (or at least adapted) query languages is a justification for a
new one. It seems to me that the justification lies in promoting
adoption.=20
No question (IMHO) that we could "normalize" TMs and implement them in
RDBMS tables, and then query these using SQL. I've done it -- but it
isn't something I would imaging would gain popular acceptance. I can
also imagine an implementation using XQuery. But, again, it would not
be for the faint of heart.
It seems to me that the nature of the TM data model is such that a query
language that enables easy expression of the relationships inherent in
the TM is required -- and by easy, I guess I mean easy to understand and
adopt. I don't know of any existing query language that supports this.
So, for me at least, that is justification for a TM QL.
Steve Carton
-----Original Message-----
From: sc34wg3-admin@isotopicmaps.org
[mailto:sc34wg3-admin@isotopicmaps.org] On Behalf Of Lars Marius Garshol
Sent: Tuesday, May 24, 2005 5:04 PM
To: sc34wg3@isotopicmaps.org
Subject: Re: [sc34wg3] TMQL, State of Affairs
* Martin Bryan
|=20
| Then say so, and explain why TMDM is so radically different from
| every other data model in the universe that it needs its own query
| language.
As Jan and Murray are saying, I don't think it's that it is radically
different that causes this, but that simply the fact that it is
different. I can't think of any comparable data model that doesn't
have its own query language (relational -> SQL, XML -> XPath + XQuery,
RDF -> SPARQL, STEP -> EXPRESS-X, ...).
| My point of view is that if it can be expressed in XML it can be
| queried using XQuery, and if it can be stored in a relational
| database it can be queried using SQL.=20
Both of those statements are true, as Jonathan Robie's paper[1] and
TMRQL show quite clearly. That is rather different from it being
efficient to query topic maps using XQuery/SQL. And by efficient I
here mean two things: efficient for the person writing the query, and
efficient for the processor implementing it.
| If your statement implies that this model cannot be properly
| expressed in XML or stored in a relational database then people have
| a right to know.
They do, but it was not meant to imply that, but rather that query
languages for other models are inherently more difficult to use
because of the conceptual mismatch. I think the TMRQL proposal
illustrates this quite well, if you compare the solutions to the TMQL
use cases in it with those written in the proposed topic map-based
query languages (as Robert did in his article).
The same applies to XQuery, and much more so if we are talking about
XQuery on XTM, since XTM is horrible to query with XPath/XQuery.
[1] <URL: http://www.w3.org/XML/2002/08/robie.syntacticweb.html >
[2] <URL: http://www.networkedplanet.com/download/TMRQL.pdf >
--=20
Lars Marius Garshol, Ontopian <URL: http://www.ontopia.net >
GSM: +47 98 21 55 50 <URL: http://www.garshol.priv.no >
_______________________________________________
sc34wg3 mailing list
sc34wg3@isotopicmaps.org
http://www.isotopicmaps.org/mailman/listinfo/sc34wg3