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

SPARQL response format #5

Open
cKlee opened this issue Nov 2, 2016 · 2 comments
Open

SPARQL response format #5

cKlee opened this issue Nov 2, 2016 · 2 comments

Comments

@cKlee
Copy link

cKlee commented Nov 2, 2016

Hi!
What I'm trying to do is to integrate your SPARQL endpoint in our LinkedDataFragments server.

Is it possible to get a turtle, n3, or n-triples response from your endpoint? Seems like mime types in Accept-Header are ignored. The 'format' parameter only accepts xml and json. The only way I get some triple based response is with a construct query.

Cheers!

@essepuntato
Copy link
Owner

Hi,
Can I ask which kind of query are you running? I think a CONSTRUCT one, but just to be extra sure.

Another alternative would be to use directly the data available in the dumps (http://opencitations.net/download), that are in JSON-LD and would prevent the direct use of SPARQL.

What do you think?

@cKlee
Copy link
Author

cKlee commented Nov 3, 2016

Thanks for your response!

Using the dumps is not an alternative for me. I don't know if you are familiar with LinkedDataFragements. But @RubenVerborgh Server.js offers the possibility to integrate a SPARQL endpoint as a remote resource.

I figured out that the endpoint must support one of turtle, n3 or n.triples response (see https://github.com/LinkedDataFragments/Server.js/blob/f5dff0c55a7a46018014c70e12a1e689b0cd662a/lib/datasources/SparqlDatasource.js#L34) as my instance is giving me some error: "The endpoint returned an invalid Turtle response." At this point I didn't sent any query, but the server tries to find out how my triples the triples store contains and asks for the very first 100 triples like http://data.linkeddatafragments.org/viaf.

There is another issue which somehow tells me that integrating Blazegraph as a remote endpoint is possible.

I hope this lightens the context a little bit.

Cheers!

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