Making it work for MarkLogic was no particular rocket-science. I started with disabling jsonp, which was just a flag in the profile. Next I had to add accepts to all ajax calls. You include accepts as follows in your profile:
MarkLogicProfile.connection = {
// http matches all http requests, so this will be the only connection settings used
'http:': {
endpoint: '/v1/graphs/sparql',
accepts: {
json: 'application/sparql-results+json'
},
description: {
en: 'MarkLogic LodLive'
}
}
};
10
Making it work for MarkLogic was no particular rocket-science. I started with disabling jsonp, which was just a flag in the profile. Next I had to add accepts to all ajax calls. You include accepts as follows in your profile:
See also: https://github.com/grtjn/ml-lodlive-ng/blob/master/src/ml-lodlive-profile-factory.js#L108