Skip Menu |

This queue is for tickets about the TM CPAN distribution.

Report information
The Basics
Id: 27232
Status: resolved
Worked: 10 min
Priority: 0/
Queue: TM

People
Owner: Nobody in particular
Requestors: az [...] bond.edu.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: astma parser problem 2
Date: Tue, 22 May 2007 16:21:18 +1000
To: bug-TM [...] rt.cpan.org
From: Alexander Zangerl <az [...] bond.edu.au>
tm 1.26: cannot parse this: --- topicmap-information-retrieval-tmql bn: TM Retrieval via a Query Language in: suitable for more complex queries -- can generate output (XML, Topic Maps) in (status): not yet standardized, but serious drafts exist -- tolog (Ontopia) widely used oc (preview): http://www.xml.com/lpt/a/2005/06/01/tmql.html oc (preview): http://topicmaps.it.bond.edu.au/docs/41 oc: http://www.isotopicmaps.org/tmql/ oc (mda-zoom): http://topicmaps.it.bond.edu.au/mda/internet/semantic-web/topicmaps/tmql in (example): \ # this is tolog\ select $A from \ based-on($A : result, $B : source),\ written-by($B : work, shakespeare : writer)?\ \ in (example): \ # this is TMQL\ for $group in // group\ where\ some $person in $group <- whole -> member\ satisfy\ $person isa female\ return\ ($group) (can-be-used) usage : topicmap-information-retrieval-tmql tool : tolog -- Syntax error: Found COLON but expected ID or EOL at yapp/astma-fact.yp line 338. if a dummy topic is inserted just before (can-be-used) then it works. -- + Alexander Zangerl az@bond.edu.au DSA 0xF860ACF1 + + Bond University IT School phone +61 7 5595 3398 +
Download (untitled)
application/pgp-signature 189b

Message body not shown because it is not plain text.

On Tue May 22 02:22:42 2007, az@bond.edu.au wrote: Show quoted text
> tm 1.26: cannot parse this: > --- > topicmap-information-retrieval-tmql > bn: TM Retrieval via a Query Language > in: suitable for more complex queries -- can generate output (XML, > Topic Maps) > in (status): not yet standardized, but serious drafts exist -- tolog > (Ontopia) widely used > oc (preview): http://www.xml.com/lpt/a/2005/06/01/tmql.html > oc (preview): http://topicmaps.it.bond.edu.au/docs/41 > oc: http://www.isotopicmaps.org/tmql/ > oc (mda-zoom):
http://topicmaps.it.bond.edu.au/mda/internet/semantic- Show quoted text
> web/topicmaps/tmql > in (example): \ > # this is tolog\ > select $A from \ > based-on($A : result, $B : source),\ > written-by($B : work, shakespeare : writer)?\
Show quoted text
> (can-be-used) > usage : topicmap-information-retrieval-tmql > tool : tolog > -- > > Syntax error: Found COLON but expected ID or EOL at
yapp/astma-fact.yp Show quoted text
> line 338.
Yes, this is correct behaviour. At least according to the AsTMa 1.0 spec. If you write Show quoted text
> in (example): \ > # this is tolog\
this will be interpreted as in (example): # this is prolog ..... because \ is a line wrapper. If you write in (example): # .... then everything after the # is interpreted as comment So the occurrence is empty. But must not be, so ... Show quoted text
> if a dummy topic is inserted just before (can-be-used) then it
works. ... the parser is matching at least one non-space character and will take that as value.