Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357277 - rio-cm returns 500 for dc:title query - unknown namespace
Summary: rio-cm returns 500 for dc:title query - unknown namespace
Status: CLOSED FIXED
Alias: None
Product: Lyo
Classification: Technology
Component: RIO (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Michael Fiedler CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-09 15:11 EDT by Michael Fiedler CLA
Modified: 2015-03-09 09:51 EDT (History)
2 users (show)

See Also:
sspeiche: review+


Attachments
changed DC prefix expected (24.16 KB, patch)
2011-10-24 10:26 EDT, Michael Fiedler CLA
no flags Details | Diff
Update dcterms:modified as well (891 bytes, patch)
2011-10-24 10:33 EDT, Michael Fiedler CLA
no flags Details | Diff
change dc to dcterms in config file (1.03 KB, patch)
2011-10-24 17:04 EDT, Michael Fiedler CLA
fiedler.mf: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Fiedler CLA 2011-09-09 15:11:50 EDT
Build Identifier: 

When the following query is sent to rio-cm:

?oslc.where=dc:title%3D%22another+ticket%22&oslc.select=dc:title

a MalformedQueryException is received from OpenRDF's query component:

org.eclipse.lyo.rio.store.RioServerException: org.openrdf.query.MalformedQueryException: org.openrdf.query.parser.sparql.ast.VisitorException: QName 'dc:title' uses an undefined prefix

Please assign this bug to Michael Fiedler

Reproducible: Always

Steps to Reproduce:
1.  Send a query similar to:  
?oslc.where=dc:title%3D%22another+ticket%22&oslc.select=dc:title
Comment 1 Michael Fiedler CLA 2011-10-19 08:01:16 EDT
This one is user error.  queryEqualityProperty needs to be configured correctly for the provider.   Some use dc:, some dcterms: for the namespace.
Comment 2 Michael Fiedler CLA 2011-10-19 08:01:44 EDT
Closing as invalid
Comment 3 Michael Fiedler CLA 2011-10-21 16:12:50 EDT
Re-opening to change sample rio-cm properties file to use the right prefix
Comment 4 Michael Fiedler CLA 2011-10-24 10:11:54 EDT
rio-am will be updated when https://bugs.eclipse.org/bugs/show_bug.cgi?id=357155 is fixed.
Comment 5 Michael Fiedler CLA 2011-10-24 10:26:37 EDT
Created attachment 205825 [details]
changed DC prefix expected

I wrote all this code and have the rights to contribute it to Eclipse under the eclipse.org web site terms of use
Comment 6 Michael Fiedler CLA 2011-10-24 10:33:33 EDT
Created attachment 205827 [details]
Update dcterms:modified as well
Comment 7 Michael Fiedler CLA 2011-10-24 17:04:57 EDT
Created attachment 205869 [details]
change dc to dcterms in config file

Replace previous patches with this one.
Comment 9 Samuel Padgett CLA 2015-03-09 09:51:34 EDT
Bulk update: Closing out Lyo bugs fixed long ago. Feel free to reopen if you feel your bug was closed in error.