[SPARQL]Case sensitive


Due to case sensitive of SPARQL query, we should employ REGEX operator to avoid String comparison between rdfs:label. The following is simple example to solve that :

select *  
{ 
?sider a  <http://www4.wiwiss.fu-berlin.de/sider/resource/sider/drugs> . 
?sider <http://www.w3.org/2000/01/rdf-schema#label> ?sidername . 
FILTER regex(str(?sidername),"Acetaminophen","i") 
}
  1. nice info…thanx

    • Dhira
    • April 16th, 2012

    How to avoid it? because i have data like this, “adobe” and “ADOBE”..

  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s