SkosFileImporter¶
- public class SkosFileImporter extends ConfiguredCommand<AppConfiguration>¶
Import SKOS concepts from an RDF file Easier to use than TdbImporter as it does not need an intermediary Jena TDB store, but might reach memory limits
Author: martinfilliau
Methods¶
getDocsFromFile¶
- protected Collection<SolrInputDocument> getDocsFromFile(File file, String lang)¶
Import a given RDF file to the search index
Parameters: - file – RDF file
- lang – RDF format (RDF/XML, N-TRIPLE, TURTLE or N3)
Throws: Returns: collection of SolrInputDocument
getDocsFromModel¶
- protected Collection<SolrInputDocument> getDocsFromModel(Model m)¶
Import a Model
Parameters: - m – Jena Model
Returns: collection of SolrInputDocument
run¶
- protected void run(Bootstrap<AppConfiguration> bootstrap, Namespace namespace, AppConfiguration configuration)¶