|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fau.cs.www8.jadeowlcodec.tool.dig1_1_extended.Renderer
public class Renderer
Renders OWL ontologies as DIG 1.1 . Note: This renderer does not do anything with imports.
| Nested Class Summary | |
|---|---|
static class |
Renderer.SessionInfo
A little structure to pass around some info about the current rendering activity to the various visitors |
| Field Summary | |
|---|---|
static java.lang.String |
ANONYMOUS_INDIV
|
static org.apache.log4j.Logger |
logger
Log4J Logger for this class |
static java.lang.String[] |
RACER_ONE_DOT_NINE_DIG_EXTENSIONS
|
static java.lang.String[] |
TOLERANT_RACER_ONE_DOT_NINE_DIG_EXTENSIONS
|
| Constructor Summary | |
|---|---|
Renderer()
|
|
Renderer(java.util.Set<java.lang.String> extendedDigFeatures)
constructor for rendering with extended DIG keywords (like the |
|
Renderer(java.lang.String[] extendedDigFeatures)
constructor for rendering with extended DIG keywords (like the |
|
| Method Summary | |
|---|---|
static java.lang.String |
anonymIndividual(org.semanticweb.owl.model.OWLIndividual individual)
Returns the String ANONYMOUS_INDIVfollowed by the individual's
hash code. |
java.util.Map |
getOptions()
Empty implementation. |
static void |
main(java.lang.String[] args)
Renders the OWL ontology specified in the URI in the first argument as DIG 1.1. |
static org.apache.xmlbeans.XmlOptions |
prettyPrintOptions()
|
org.kr.dl.dig.v1_1.TellsDocument |
renderOntology(org.semanticweb.owl.model.OWLOntology ontology)
Translates ontology into a TellsDocument. |
void |
renderOntology(org.semanticweb.owl.model.OWLOntology ontology,
java.io.Writer writer)
Renders ontology as a TellsDocumentwhich is then
saved into writer. |
void |
setOptions(java.util.Map map)
Empty implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String[] RACER_ONE_DOT_NINE_DIG_EXTENSIONS
public static final java.lang.String[] TOLERANT_RACER_ONE_DOT_NINE_DIG_EXTENSIONS
public static final java.lang.String ANONYMOUS_INDIV
public static final org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public Renderer()
public Renderer(java.util.Set<java.lang.String> extendedDigFeatures)
extendedDigFeatures - contains the extended DIG tags this renderer is allowed to use
allowed combinations are described by alphabetical concatenation (example: atleastattribute, atmostattribute "seems to be supported in RACER 1.9")
extended by author Ulf Schreiberpublic Renderer(java.lang.String[] extendedDigFeatures)
extendedDigFeatures - contains the extended DIG tags this renderer is allowed to use
extended by Ulf Schreiber| Method Detail |
|---|
public void setOptions(java.util.Map map)
setOptions in interface org.semanticweb.owl.io.Optionspublic java.util.Map getOptions()
getOptions in interface org.semanticweb.owl.io.Optionsnull.
public org.kr.dl.dig.v1_1.TellsDocument renderOntology(org.semanticweb.owl.model.OWLOntology ontology)
throws NotExpressableInDIGException,
org.semanticweb.owl.io.RendererException
ontology into a TellsDocument.
ontology - an OWLOntology.
TellsDocumentcorresponding to ontology.
NotExpressableInDIGException - if ontology contains constructs not
expressable in DIG 1.1.
org.semanticweb.owl.io.RendererException - wraps any other OWLException.
public void renderOntology(org.semanticweb.owl.model.OWLOntology ontology,
java.io.Writer writer)
throws NotExpressableInDIGException,
org.semanticweb.owl.io.RendererException
ontology as a TellsDocumentwhich is then
saved into writer.
renderOntology in interface org.semanticweb.owl.io.Rendererontology - an OWLOntology.writer - the Writer where the rendered ontology is
saved.
NotExpressableInDIGException - if ontology contains constructs not
expressable in DIG 1.1.
org.semanticweb.owl.io.RendererException - wraps any other OWLException.public static java.lang.String anonymIndividual(org.semanticweb.owl.model.OWLIndividual individual)
ANONYMOUS_INDIVfollowed by the individual's
hash code.
individual - an OWLIndividual.
ANONYMOUS_INDIVfollowed by the individual's
hash code.public static void main(java.lang.String[] args)
args - the URI of the OWL ontology and, optionally, the file where
the rendered ontology is to be stored.public static org.apache.xmlbeans.XmlOptions prettyPrintOptions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2007 Moritz Goeb, Bernhard Schiemann, Ulf Schreiber of Chair of Artificial Intelligence, University of Erlangen-Nuremberg