Skip to content

prefixes registered in prefixHandler are not being used in queries #62

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. create a new tmql-2007 runtime
2. register a prefix by doing: 
runtime.getLanguageContext().getPrefixHandler().registerPrefix("pfx","http://exa
mple.com/")
3. run a query on that runtime object which uses the prefix pfx but doesn't 
declare it in the query text itself.

What is the expected output? What do you see instead?
The query engine should replace the prefix pfx with http://example.com/ before 
matching against a locator, but it does not. I tried a query with the same 
prefix defined both in the PrefixHandler and in the text of the query and it 
worked, but when I took away the %prefix definition from the text of the query, 
no results were returned.

What version of the product are you using? On what operating system?
I'm using TMQL4J 3.1.0 with a majortom backend on windows 7 x64.


Original issue reported on code.google.com by [email protected] on 22 Jul 2011 at 10:29

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions