[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. Belum ada trackback.

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Ikuti

Get every new post delivered to your Inbox.

Bergabunglah dengan 1.383 pengikut lainnya.