Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357277

Summary: rio-cm returns 500 for dc:title query - unknown namespace
Product: [Technology] Lyo Reporter: Michael Fiedler <fiedler.mf>
Component: RIOAssignee: Michael Fiedler <fiedler.mf>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jconallen, sspeiche
Version: unspecifiedFlags: sspeiche: review+
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
changed DC prefix expected
none
Update dcterms:modified as well
none
change dc to dcterms in config file fiedler.mf: iplog+

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.