A Java code to index RDF in Solr via SPARQL queries