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