Getting hyperlinks of a Wikipedia page using DBpedia

前端 未结 1 1220
抹茶落季
抹茶落季 2020-12-20 04:59

I have two resources in DBPedia: dbr:Diabetes_mellitus and dbr:Hyperglycemia. In Wikipedia, the corresponding pages are wikipedia-en:Diabetes_mellitus and wikipedia-en:Hyper

相关标签:
1条回答
  • 2020-12-20 05:34

    As of May 2018, page links are stored in the <http://dbpedia.org/page_links> named graph.

    Your query could be the following one:

    SELECT ?prop
    FROM <http://dbpedia.org/page_links> WHERE {
           { dbr:Diabetes_mellitus ?prop dbr:Hyperglycemia }
           UNION
           { dbr:Hyperglycemia ?prop dbr:Diabetes_mellitus }
    }
    

    Try it!

    Using ASK:

    ASK
    FROM <http://dbpedia.org/page_links> {
    dbr:Hyperglycemia dbo:wikiPageWikiLink|^dbo:wikiPageWikiLink dbr:Diabetes_mellitus
    }
    

    Try it!

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