问题
I'm new to Apache Solr. I want to import a rdf file into solr for indexing.I have googled it but I didn't find anything useful. please give me some pointers.
回答1:
Solr accepts JSON documents. You can transform your RDF document into a JSON-LD document. JSON-LD is a RDF serialization format and it is part of RDF 1.1. You can safely go back and forth between JSON-LD and other RDF serializations and not loose any data.
回答2:
Take a look at HttpDataSource example of DataImportHandler. It talks about processing RDF using XPathEntityProcessor.
Edit - Another blog - RDF Aggregates and Full Text Search on Steroids with Solr
回答3:
You can also look for Siren that has the capability of adding RDF data to lucene
回答4:
My 2 cents on this experiment, let me know what you think about: http://andreagazzarini.blogspot.it/2014/12/a-solr-rdf-store-and-sparql-endpoint-in.html
来源:https://stackoverflow.com/questions/15140691/how-to-import-rdf-file-to-apache-solr