|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.semanticweb.owl.io.owl_rdf.Renderer
Produces OWL/RDF Syntax from a given ontology
| Field Summary | |
protected Set |
allURIs
|
protected Map |
known
|
protected String[] |
names
|
protected OWLOntology |
ontology
|
protected PrintWriter |
pw
|
protected int |
reservedNames
|
protected List |
shortNames
|
protected RenderingVisitor |
visitor
|
| Fields inherited from interface org.semanticweb.owl.io.owl_rdf.RenderingConstants |
INDENT |
| Constructor Summary | |
Renderer()
|
|
| Method Summary | |
protected void |
generateShortNames()
|
Map |
getOptions()
Get options for the object. |
static void |
main(String[] args)
|
protected SortedSet |
orderedEntities(Set entities)
|
protected void |
renderAnnotations(OWLOntology ontology,
OWLNamedObject object)
Render the annotations for an object |
protected void |
renderClass(OWLOntology ontology,
OWLClass clazz)
|
protected void |
renderClassAxiom(OWLClassAxiom axiom)
|
protected void |
renderDataProperty(OWLOntology ontology,
OWLDataProperty prop)
|
protected void |
renderIndividual(OWLOntology ontology,
OWLIndividual ind)
|
protected void |
renderObjectProperty(OWLOntology ontology,
OWLObjectProperty prop)
|
void |
renderOntology(OWLOntology ontology,
Writer writer)
Render the given ontology onto the writer using an appropriate concrete representation |
protected void |
renderPropertyAxiom(OWLPropertyAxiom axiom)
Method renderPropertyAxiom. |
void |
setOptions(Map map)
Set options for the object. |
String |
shortForm(URI uri)
|
protected void |
writeExtensions()
This method allows us to extend the renderer and add extra information. |
protected void |
writeFooter()
Method writeFooter. |
protected void |
writeHeader()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected OWLOntology ontology
protected PrintWriter pw
protected Set allURIs
protected List shortNames
protected Map known
protected int reservedNames
protected RenderingVisitor visitor
protected String[] names
| Constructor Detail |
public Renderer()
| Method Detail |
public void setOptions(Map map)
Options
setOptions in interface Optionsmap - a Map value. Should contain a map from Strings to Objects.public Map getOptions()
Options
getOptions in interface OptionsMap value. Contains a map from Strings to Objects.
public void renderOntology(OWLOntology ontology,
Writer writer)
throws RendererException
Renderer
renderOntology in interface RendererRendererException
protected void writeExtensions()
throws OWLException
OWLException
protected void renderPropertyAxiom(OWLPropertyAxiom axiom)
throws OWLException
OWLExceptionprotected void writeFooter()
protected void renderClass(OWLOntology ontology,
OWLClass clazz)
throws OWLException
OWLException
protected void renderIndividual(OWLOntology ontology,
OWLIndividual ind)
throws OWLException
OWLException
protected void renderObjectProperty(OWLOntology ontology,
OWLObjectProperty prop)
throws OWLException
OWLException
protected void renderDataProperty(OWLOntology ontology,
OWLDataProperty prop)
throws OWLException
OWLException
protected void renderAnnotations(OWLOntology ontology,
OWLNamedObject object)
throws OWLException
OWLException
protected void renderClassAxiom(OWLClassAxiom axiom)
throws OWLException
OWLExceptionprotected void generateShortNames()
protected void writeHeader()
public String shortForm(URI uri)
protected SortedSet orderedEntities(Set entities)
public static void main(String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||