owltools.solrj
Class ComplexAnnotationSolrDocumentLoader
java.lang.Object
owltools.solrj.AbstractSolrLoader
owltools.solrj.ComplexAnnotationSolrDocumentLoader
public class ComplexAnnotationSolrDocumentLoader
- extends AbstractSolrLoader
A very specific class for the specific use case of loading in complex annotations from owl.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComplexAnnotationSolrDocumentLoader
public ComplexAnnotationSolrDocumentLoader(String url,
OWLGraphWrapper g,
org.semanticweb.owlapi.reasoner.OWLReasoner r,
Set<org.semanticweb.owlapi.model.OWLNamedIndividual> individuals,
String agID,
String agLabel)
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_unit_info
public org.apache.solr.common.SolrInputDocument collect_unit_info(LegoUnit u,
String groupID,
String groupLabel,
OWLShuntGraph shuntGraph)
- Take args and add it index (no commits)
Main wrapping for adding complex annotation documents to GOlr.
- Parameters:
ln
- groupLabel
- groupID
- shuntGraph
- ca_doc
-
- Returns:
- an input doc for add()
Copyright © 2010-2014. All Rights Reserved.