LinkedMDB SPARQL Query

前端 未结 1 509
情歌与酒
情歌与酒 2020-12-12 02:21

I\'m a bit confused here. I have the following SPARQL query that works brilliantly against the LinkedMDB explorer.



        
相关标签:
1条回答
  • 2020-12-12 03:03

    SPARQL 1.1 introduces more string functions, such as contains, strstarts, and strends which are much more specialized and could be much faster than using a full blown regular expression. However, it doesn't look like the LinkedMDB explorer supports SPARQL 1.1 yet, so those aren't useful here.

    If you know the exact name of the movie, it will be much more efficient to simply ask for it instead of using regular expressions. E.g.,

    SELECT ?resource WHERE {
        ?resource movie:filmid ?uri .
        ?resource dc:title "Forrest Gump" .
    }
    

    SPARQL Results

    returns the film db:film/38179.

    0 讨论(0)
提交回复
热议问题