Solr/Siren - Insert/Index data using sparql

572 Views Asked by At

I am using in my application that interacts with . I know how to index data into Solr(/solr/update),but I can't figure out how to index using siren. Does it even support indexing? Also, can we use sparql queries to index data in Solr?

1

There are 1 best solutions below

4
On

Yes SIREn is able to index RDF data. If I remember well, within the download bundle there's a README with detailed instructions. Also, there should be a test case that illustrates how to index / query in a programmatic way.

About your second question: the answer is no: as SIREn indexes "entities" you're not able to execute plain SPARQL queries (but you have a lot of other capabilities)

As a side note, let me suggest you this project [1] which is another kind of approach for indexing RDF data using Solr. There, you can run SPARQL queries and have some other interesting features like faceting. The overall project is still in progress (especially the mix between the RDF and Solr world) but main features (sparql, some kind of faceting, sparql results pagination) are already working.

In my blog [2] you can find several post about this project.


[1] https://github.com/agazzarini/SolRDF.
[2] https://andreagazzarini.blogspot.com