owltools.solrj
Class FlexSolrDocumentLoader
java.lang.Object
owltools.solrj.AbstractSolrLoader
owltools.solrj.FlexSolrDocumentLoader
public class FlexSolrDocumentLoader
- extends AbstractSolrLoader
A slightly generic class for loading a Solr index compatible with the constraints defined by a BBOP-JS Solr index.
The load is entirely defined by a YAML file and functions in the OWLGraphWrapper OWLGraphWrapper
.
Method Summary |
org.apache.solr.common.SolrInputDocument |
collect(FlexDocument f)
Take args and add it index (no commits)
Main wrapping for adding ontology documents to GOlr. |
void |
load()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlexSolrDocumentLoader
public FlexSolrDocumentLoader(String url,
FlexCollection c)
throws MalformedURLException
- Throws:
MalformedURLException
load
public void load()
throws org.apache.solr.client.solrj.SolrServerException,
IOException
- Specified by:
load
in class AbstractSolrLoader
- Throws:
org.apache.solr.client.solrj.SolrServerException
IOException
collect
public org.apache.solr.common.SolrInputDocument collect(FlexDocument f)
- Take args and add it index (no commits)
Main wrapping for adding ontology documents to GOlr.
Also see GafSolrDocumentLoader for the others.
- Parameters:
f
-
- Returns:
- an input doc for add()
Copyright © 2010-2012. All Rights Reserved.