|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.open.kmi.skos.SKOSParser
SKOSParser is a basic parser for the SKOS. It parses the whole SKOS into one OWLOntology
Field Summary | |
protected java.lang.String |
language
|
Constructor Summary | |
SKOSParser()
Constructor of the parser |
|
SKOSParser(java.lang.String language)
Constructor of the parser |
Method Summary | |
protected java.lang.String |
getBaseURI(java.lang.String fileName)
Get the base URI from the SKOS. |
protected SKOSConcept |
getConcept(javax.xml.stream.XMLStreamReader reader)
Get the whole Concept tag from the SKOS file |
protected SKOSConcept |
getDutchRDFDescription(javax.xml.stream.XMLStreamReader reader)
Get the whole Description tag from the RDF file. |
protected SKOSConcept |
getRDFDescription(javax.xml.stream.XMLStreamReader reader)
Get the whole Description tag from the RDF file. |
org.semanticweb.owl.model.OWLOntology |
parse(java.lang.String fileName)
Parses the SKOS file and creates an OWLOntology |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String language
Constructor Detail |
public SKOSParser()
public SKOSParser(java.lang.String language)
language
- xml:lang tags that will be loaded into the ontologyMethod Detail |
public org.semanticweb.owl.model.OWLOntology parse(java.lang.String fileName) throws SKOSParserException
fileName
-
SKOSParserException
protected java.lang.String getBaseURI(java.lang.String fileName) throws SKOSParserException
fileName
- SKOS filename
SKOSParserException
protected SKOSConcept getConcept(javax.xml.stream.XMLStreamReader reader) throws SKOSParserException
reader
- XMLStreamReader
SKOSParserException
protected SKOSConcept getDutchRDFDescription(javax.xml.stream.XMLStreamReader reader) throws SKOSParserException
reader
- XMLStreamReader
SKOSParserException
protected SKOSConcept getRDFDescription(javax.xml.stream.XMLStreamReader reader) throws SKOSParserException
reader
- XMLStreamReader
SKOSParserException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |