I need to get the “external links” links from specific Wikipedia articles in an array in either jquery (preferable) or php. I’ve gone through the wikipedia api and it doesn’t seem there’s a way to do that. It looks like there is a way to do it in dbpedia (the dbpedia.org/resource/etc pages show a “dbpedia-owl:wikiPageExternalLink” section), but I’ve never used sparkql and have no idea how to use it in conjunction with jquery or php.
Can anyone help me?
Try the following query in the sparql query form at http://dbpedia.org/sparql
Then look at the browser address bar of the results page to understand how to encode the query via GET.
Otherwise you can have a look at http://json.it.dbpedia.org
have fun!