essepuntato / opencitations

OpenCitations provides in RDF accurate citation information harvested from the scholarly literature.
http://opencitations.net
ISC License
64 stars 3 forks source link

SPARQL response format #5

Open cKlee opened 8 years ago

cKlee commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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!