在sparql中搜索字符串以获得部分匹配

时间:2013-03-25 01:52:38

标签: sparql

假设我有一个如下所示的RDF图:

entity1 [
    title [ obect1.svg]       
    description [
         "This is sentence 1.  This is sentence 2." ]
         ] .
entity2 [
    title [ obect2.svg]       
    description [
         "This is sentence 3.  This is sentence 4." ]
].
entity3 [
    title [ obect3.svg]       
    description [
         "This is sentence 1.  This is sentence 4." ]
] .

如何编写查询以查找这是第2句?

1 个答案:

答案 0 :(得分:2)

请参阅http://www.w3.org/TR/sparql11-query/#func-strings

函数REGEXCONTAINS