owltools.solrj
Class ComplexAnnotationSolrDocumentLoader

java.lang.Object
  extended by owltools.solrj.AbstractSolrLoader
      extended by owltools.solrj.ComplexAnnotationSolrDocumentLoader

public class ComplexAnnotationSolrDocumentLoader
extends AbstractSolrLoader

A very specific class for the specific use case of loading in complex annotations from owl.


Field Summary
 
Fields inherited from class owltools.solrj.AbstractSolrLoader
graph, gson, server
 
Constructor Summary
ComplexAnnotationSolrDocumentLoader(String url, OWLGraphWrapper g, org.semanticweb.owlapi.reasoner.OWLReasoner r, Set<org.semanticweb.owlapi.model.OWLNamedIndividual> individuals, String agID, String agLabel)
           
 
Method Summary
 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.
 void load()
           
 
Methods inherited from class owltools.solrj.AbstractSolrLoader
add, addAll, addAllAndCommit, addFieldUnique, addLabelField, addLabelFields, getGraph, incrementalAddAndCommit, setGraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.