I want to get data from dbpedia endpoint, with axios in vue js.
I use axios.get
to get data from dbpedia, and i got and error in console say :
TypeError: name.toUpperCase is not a function
How can i fix it?
created(){
this.fetch();
},
methods: {
fetch(){
axios
.get('http://id.dbpedia.org/sparql?query=SELECT+DISTINCT+?concept+WHERE+{+?s+a+?concept+}+LIMIT+50', {
headers: 'Access-Control-Allow-Origin: *'
}).then(response => {
/* eslint-disable */
console.log('SUCCESS');
console.log(response);
}).catch((e) => {
console.log(e);
})
}
},