|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.googlecode.fascinator.common.harvester.impl.GenericHarvester
com.googlecode.fascinator.harvester.skos.SkosHarvester
public class SkosHarvester
This plugin harvest SKOS rdf/xml Concept Scheme. Sample of rdf/xml file for concept can be downloaded from http://namespace.adfi.usq.edu. au/anzsrc/
Sample configuration file for SKOS harvester: anzsrc-for.json and anzsrc-seo.json.
| Option | Description | Required | Default |
|---|---|---|---|
| baseFile | File of the rdf/xml skos scheme | Yes | ${fascinator.home}/skos/for.rdf |
"harvester": {
"type": "skos",
"skos": {
"baseFile": "${fascinator.home}/skos/for.rdf"
}
}
Sample rule file for the Geonames harvester: skos.py
None
| Constructor Summary | |
|---|---|
SkosHarvester()
Skos harvester constructor |
|
| Method Summary | |
|---|---|
org.ontoware.rdf2go.model.node.URI |
getConceptScheme()
Get conceptScheme value |
Set<String> |
getObjectIdList()
Harvest the next set of skos concept, and return their Object IDs |
org.ontoware.rdf2go.model.Model |
getRdfModel(InputStream rdfIn)
Parse RDF data from an inputstream |
boolean |
hasMoreObjects()
|
void |
init()
Init method to initialise skos harvester |
| Methods inherited from class com.googlecode.fascinator.common.harvester.impl.GenericHarvester |
|---|
getDeletedObjectIdList, getId, getJsonConfig, getName, getObjectId, getPluginDetails, getStorage, hasMoreDeletedObjects, init, init, setStorage, shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SkosHarvester()
| Method Detail |
|---|
public void init()
throws com.googlecode.fascinator.api.harvester.HarvesterException
init in class com.googlecode.fascinator.common.harvester.impl.GenericHarvestercom.googlecode.fascinator.api.harvester.HarvesterException
public Set<String> getObjectIdList()
throws com.googlecode.fascinator.api.harvester.HarvesterException
com.googlecode.fascinator.api.harvester.HarvesterException - If there are errorspublic org.ontoware.rdf2go.model.node.URI getConceptScheme()
public boolean hasMoreObjects()
public org.ontoware.rdf2go.model.Model getRdfModel(InputStream rdfIn)
rdfIn, - the inputstream to read and parse
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||