Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use ml-lodlive-ng with my own endpoint? #14

Open
jo-tud opened this issue Jan 18, 2017 · 1 comment
Open

How can I use ml-lodlive-ng with my own endpoint? #14

jo-tud opened this issue Jan 18, 2017 · 1 comment

Comments

@jo-tud
Copy link

jo-tud commented Jan 18, 2017

I'm trying to use my own endpoint but it is not clear to me how I would create a new provider.
Can you give a quick example?

@grtjn
Copy link
Owner

grtjn commented Jan 23, 2017

It is not very easy to explain. ML-LodLive assumes a REST endpoint accepting SPARQL queries over POST, that is a pre-requisite. Otherwise, it is probably mostly down to taking one of the two existing profiles (https://github.com/grtjn/ml-lodlive-ng/blob/master/src/ml-lodlive-profile-factory.js), and bending the endpoint parts around to make it work for your case.

The profile object that you pass in, into the ml-lodlive-ng directive is just a plain JSON object, so you could build your own if you need to. But it has to conform to what ml-lodlive expects..

If you need more detailed help with the profiles themselves, I recommend filing a ticket against ml-lodlive. I merely took the pre-defined ones, and wrapped them in an angular service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants