owltools.flex
Class FlexCollection
java.lang.Object
owltools.flex.FlexCollection
- All Implemented Interfaces:
- Iterable<FlexDocument>
public class FlexCollection
- extends Object
- implements Iterable<FlexDocument>
Pull defined sources into a middle state for output, loading into Solr, etc.
Essentially, a Solr document workalike.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
config
protected transient ConfigManager config
graph
protected transient OWLGraphWrapper graph
docs
protected ArrayList<FlexDocument> docs
FlexCollection
public FlexCollection()
- More fun init.
- Parameters:
aconf
- in_graph
-
FlexCollection
public FlexCollection(ConfigManager aconf,
OWLGraphWrapper in_graph)
- More fun init.
- Parameters:
aconf
- in_graph
-
wring
public FlexDocument wring(org.semanticweb.owlapi.model.OWLObject obj,
ConfigManager config)
- Main wrapping for adding ontology documents to GOlr.
Also see GafSolrDocumentLoader for the others.
TODO: Bad Seth. We have hard-coded document_category here (and the GAF loader).
The proper way would be to pair conf files and the file to be loaded, that is not happening
quite yet, so we punt on this bad thing.
- Parameters:
owlObject,
- graph, and a config.
- Returns:
- an input doc for add()
iterator
public Iterator<FlexDocument> iterator()
- Specified by:
iterator
in interface Iterable<FlexDocument>
Copyright © 2010-2012. All Rights Reserved.