List Info

Thread: CQL to RPN mapping file working samples for context sets.




CQL to RPN mapping file working samples for context sets.
user name
2006-10-25 02:27:57
Hello,

I've tried to use CQL to RPN Client conversion and created
the CQL to
RPN mapping file  by copy and paste text from "Example
8.10. CQL to RPN
mapping file", http:/
/www.indexdata.dk/yaz/doc/tools.tkl#cql.

However conversion didn't work with the message: "Can't
convert CQL to
PQF: Illegal or unsupported context set" 
After debugging I understood, that lines with leading
spaces/tabs are
ignored in the mapping file.

1. I think that cql_transform_open_FILE should be changed to
read and
parse lines with leading spaces/tabs.
2. If it is not possible for any reason, documentation
should state that
rows in mapping file should not have leading spaces/tabs.
3. It would be good if sample CQL to RPN mapping file will
be provided
with YAZ installation.

4. Does anyone has working CQL to RPN mapping files for
standard context
sets, in particular for Bath
Profile(http://zing.z39
50.org/srw/bath/2.0/#2) and  
Dublin core Context
Set(http://www.loc.gov/standards/sru/cql/dc-context-set.html
)?
If yes, can you share them? 


Regards,
Michael Freidgeim


_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
CQL to RPN mapping file working samples for context sets.
user name
2006-10-25 06:57:17
Michael Freidgeim wrote:
> Hello,
> 
> I've tried to use CQL to RPN Client conversion and
created the CQL to
> RPN mapping file  by copy and paste text from
"Example 8.10. CQL to RPN
> mapping file", http:/
/www.indexdata.dk/yaz/doc/tools.tkl#cql.
> 
> However conversion didn't work with the message:
"Can't convert CQL to
> PQF: Illegal or unsupported context set" 
> After debugging I understood, that lines with leading
spaces/tabs are
> ignored in the mapping file.
> 
> 1. I think that cql_transform_open_FILE should be
changed to read and
> parse lines with leading spaces/tabs.
Or at least throw an error it it doesn't. Dunno what Java's
CQL->PQF 
conversion deals with this. Mike?

> 2. If it is not possible for any reason, documentation
should state that
> rows in mapping file should not have leading
spaces/tabs.
Agreed.
> 3. It would be good if sample CQL to RPN mapping file
will be provided
> with YAZ installation.
Look at
etc/pqf.properties

> 4. Does anyone has working CQL to RPN mapping files for
standard context
> sets, in particular for Bath
> Profile(http://zing.z39
50.org/srw/bath/2.0/#2) and  
> Dublin core Context
> Set(http://www.loc.gov/standards/sru/cql/dc-context-set.html
)?
> If yes, can you share them? 

etc/pqf.properties

has mappings for Dublin Core and Bath.

/ Adam

> 
> Regards,
> Michael Freidgeim
> 
> 
> _______________________________________________
> Yazlist mailing list
> Yazlistlists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
> 
> 


_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )