Work around to query DBpedia for two keywords

后端 未结 1 974
挽巷
挽巷 2020-12-19 21:43

I want to query DBpedia for multiple keywords, apparently I have to search for an exact substring, so if I want the page about Egyptian Pyramids, searching for

相关标签:
1条回答
  • 2020-12-19 22:04

    Trying to construct a SPARQL query like the following might be useful:

    SELECT ?uri ?txt WHERE {
                      ?uri rdfs:label ?txt .
                      ?txt bif:contains "'Egypt' OR 'Pyramid'" .
                     }
    

    Or do you want something different?

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