|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nci.caarray.util.owlparser.AbstractOntologyOwlParser
gov.nih.nci.caarray.util.owlparser.SqlOntologyOwlParser
public class SqlOntologyOwlParser
OWL Parser that writes out sql statements createing the term source, categories and terms from the OWL data.
Constructor Summary | |
---|---|
SqlOntologyOwlParser(java.lang.String name,
java.lang.String url,
java.io.File sqlFile)
Create a new parser that will write out to the given file. |
Method Summary | |
---|---|
protected void |
finishProcessing()
Called to indicate the end of processing the OWL doc. |
protected void |
processCategory(Category category)
Process acategory parsed from the OWL. |
protected void |
processCategorySubclass(Category category,
Category parentCategory)
Process a child-parent relationships between the two given categories. |
protected void |
processTerm(Term t)
Process a term parsed from the OWL. |
protected void |
processTermSource(TermSource ts)
Process the term source parsed from the OWL. |
protected void |
startProcessing()
Called to indicate the start of processing the OWL doc. |
Methods inherited from class gov.nih.nci.caarray.util.owlparser.AbstractOntologyOwlParser |
---|
getCategoryCache, getTermCache, getTermSource, parse, parse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SqlOntologyOwlParser(java.lang.String name, java.lang.String url, java.io.File sqlFile)
name
- an explicit name for the term source whose ontology is being parsedurl
- an explicit url for the term source whose ontology is being parsedsqlFile
- file to write out toMethod Detail |
---|
protected void startProcessing() throws ParseException
startProcessing
in class AbstractOntologyOwlParser
ParseException
- on errorprotected void finishProcessing()
finishProcessing
in class AbstractOntologyOwlParser
protected void processCategory(Category category) throws ParseException
processCategory
in class AbstractOntologyOwlParser
category
- the parsed category
ParseException
- on errorprotected void processCategorySubclass(Category category, Category parentCategory) throws ParseException
processCategorySubclass
in class AbstractOntologyOwlParser
category
- the child categoryparentCategory
- the parent category
ParseException
- on errorprotected void processTerm(Term t) throws ParseException
processTerm
in class AbstractOntologyOwlParser
t
- the parsed term.
ParseException
- on errorprotected void processTermSource(TermSource ts) throws ParseException
processTermSource
in class AbstractOntologyOwlParser
ts
- the parsed term source
ParseException
- on error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |