|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.open.kmi.skos.SKOSParser
uk.ac.open.kmi.skos.SKOSChunkParser
SKOSChunkParser parses the SKOS file in chunks. It allows the similarity algorithm to iterate through the SKOS file without building a large ontology in the memory.
Field Summary |
Fields inherited from class uk.ac.open.kmi.skos.SKOSParser |
language |
Constructor Summary | |
SKOSChunkParser(java.lang.String fileName)
Constructor of the parser |
|
SKOSChunkParser(java.lang.String fileName,
java.lang.String language)
Constructor of the parser |
Method Summary | |
int |
getConceptNumber()
|
org.semanticweb.owl.model.OWLOntology |
getNextChunk()
Get a chunk from the SKOS file and return the OWLOntology representation. |
boolean |
hasNextChunk()
Determine if there are more chunks that needs to be loaded from the SKOS file |
void |
setChunkSize(int chunkSize)
Set how many concepts should be added into the OWLOntology in one iteration. |
Methods inherited from class uk.ac.open.kmi.skos.SKOSParser |
getBaseURI, getConcept, getDutchRDFDescription, getRDFDescription, parse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SKOSChunkParser(java.lang.String fileName) throws SKOSParserException
fileName
- SKOS file name
SKOSParserException
public SKOSChunkParser(java.lang.String fileName, java.lang.String language) throws SKOSParserException
fileName
- SKOS file namelanguage
- xml:lang tags that will be loaded into the ontology
SKOSParserException
Method Detail |
public boolean hasNextChunk()
public org.semanticweb.owl.model.OWLOntology getNextChunk() throws SKOSParserException
SKOSParserException
public void setChunkSize(int chunkSize)
chunkSize
- public int getConceptNumber()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |