Open grtjn opened 8 years ago
While at it, consider adding this as well:
mlRest.things = function (iri, params) {
params = params || {};
params.iri = iri;
return mlRest.request('/graphs/things', {
params: params,
headers: {
'Accept': 'application/n-triples'
}
});
};
I succesfully used this in search.controller.js, but it would be nicer if this could be integrated into MLRest itself:
Note the mlRest.request, this is a working workaround..
Also consider using POST for sparql query as well, just needs a different content-type:
application/sparql-query