public class ManchesterOWLSyntaxFrameRenderer extends ManchesterOWLSyntaxObjectRenderer implements OWLEntityVisitor
| Constructor and Description |
|---|
ManchesterOWLSyntaxFrameRenderer(OWLOntology ontology,
Writer writer,
ShortFormProvider entityShortFormProvider)
Instantiates a new manchester owl syntax frame renderer.
|
ManchesterOWLSyntaxFrameRenderer(Set<OWLOntology> ontologies,
Writer writer,
ShortFormProvider entityShortFormProvider)
Instantiates a new manchester owl syntax frame renderer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFilteredAxiomType(AxiomType<?> axiomType)
Adds the filtered axiom type.
|
void |
addRendererListener(RendererListener listener)
Adds the renderer listener.
|
void |
clearFilteredAxiomTypes()
Clear filtered axiom types.
|
boolean |
isDisplayed(OWLAxiom axiom)
Checks if is displayed.
|
boolean |
isFiltered(AxiomType<?> axiomType)
Checks if is filtered.
|
void |
removeRendererListener(RendererListener listener)
Removes the renderer listener.
|
void |
setAxiomFilter(OWLAxiomFilter axiomFilter)
Sets the axiom filter.
|
void |
setOntologyIRIShortFormProvider(OntologyIRIShortFormProvider shortFormProvider) |
void |
setRenderExtensions(boolean renderExtensions)
Sets the render extensions.
|
void |
setRenderingDirector(RenderingDirector renderingDirector)
Sets the rendering director.
|
Collection<OWLAxiom> |
write(OWLAnnotationProperty property) |
Collection<OWLAxiom> |
write(OWLClass cls) |
Collection<OWLAxiom> |
write(OWLDataProperty property) |
Collection<OWLAxiom> |
write(OWLDatatype datatype) |
Collection<OWLAxiom> |
write(OWLIndividual individual) |
Collection<OWLAxiom> |
write(OWLObjectPropertyExpression property) |
Collection<OWLAxiom> |
write(SWRLRule rule) |
Collection<OWLAnnotationAssertionAxiom> |
writeAnnotations(OWLAnnotationSubject subject)
Write annotations.
|
void |
writeComment(String comment,
boolean placeOnNewline)
Write comment.
|
void |
writeComment(String commentDelim,
String comment,
boolean placeOnNewline) |
Collection<OWLAxiom> |
writeFrame(OWLEntity entity)
Write frame.
|
void |
writeFullURI(String uri)
Write full URI.
|
void |
writeOntology()
Write ontology.
|
void |
writeOntologyHeader(OWLOntology ontology)
Write ontology header.
|
void |
writePrefixMap()
Write prefix map.
|
void |
writeSection(ManchesterOWLSyntax keyword)
Write section.
|
void |
writeSection(ManchesterOWLSyntax keyword,
Collection<?> content,
String delimiter,
boolean newline,
OWLOntology... ontologiesList)
Write section.
|
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitpublic ManchesterOWLSyntaxFrameRenderer(@Nonnull OWLOntology ontology, @Nonnull Writer writer, @Nonnull ShortFormProvider entityShortFormProvider)
ontology - the ontologywriter - the writerentityShortFormProvider - the entity short form providerpublic ManchesterOWLSyntaxFrameRenderer(@Nonnull Set<OWLOntology> ontologies, Writer writer, @Nonnull ShortFormProvider entityShortFormProvider)
ontologies - the ontologieswriter - the writerentityShortFormProvider - the entity short form providerpublic void setRenderingDirector(RenderingDirector renderingDirector)
renderingDirector - the new rendering directorpublic void setOntologyIRIShortFormProvider(OntologyIRIShortFormProvider shortFormProvider)
shortFormProvider - short form provider to be usedpublic void addRendererListener(RendererListener listener)
listener - the listenerpublic void removeRendererListener(RendererListener listener)
listener - the listenerpublic void setAxiomFilter(OWLAxiomFilter axiomFilter)
axiomFilter - the new axiom filterpublic void clearFilteredAxiomTypes()
public void addFilteredAxiomType(AxiomType<?> axiomType)
axiomType - the axiom typepublic void setRenderExtensions(boolean renderExtensions)
renderExtensions - the new render extensionspublic void writeOntology()
throws OWLRendererException
OWLRendererException - the OWL renderer exceptionpublic void writeOntologyHeader(@Nonnull OWLOntology ontology)
ontology - the ontologypublic void writePrefixMap()
public void writeFullURI(String uri)
uri - the URIpublic boolean isFiltered(AxiomType<?> axiomType)
axiomType - the axiom typepublic boolean isDisplayed(@Nullable OWLAxiom axiom)
axiom - the axiompublic Collection<OWLAxiom> writeFrame(@Nonnull OWLEntity entity)
entity - the entity@Nonnull public Collection<OWLAxiom> write(@Nonnull OWLClass cls)
cls - the class@Nonnull public Collection<OWLAxiom> write(@Nonnull OWLObjectPropertyExpression property)
property - the property@Nonnull public Collection<OWLAxiom> write(@Nonnull OWLDataProperty property)
property - the property@Nonnull public Collection<OWLAxiom> write(@Nonnull OWLIndividual individual)
individual - the individual@Nonnull public Collection<OWLAxiom> write(@Nonnull OWLDatatype datatype)
datatype - the datatype@Nonnull public Collection<OWLAxiom> write(@Nonnull SWRLRule rule)
rule - the rule@Nonnull public Collection<OWLAxiom> write(@Nonnull OWLAnnotationProperty property)
property - the property@Nonnull public Collection<OWLAnnotationAssertionAxiom> writeAnnotations(@Nonnull OWLAnnotationSubject subject)
subject - the subjectpublic void writeSection(@Nonnull ManchesterOWLSyntax keyword)
keyword - the keywordpublic void writeSection(@Nonnull ManchesterOWLSyntax keyword, @Nonnull Collection<?> content, String delimiter, boolean newline, @Nonnull OWLOntology... ontologiesList)
keyword - the keywordcontent - the contentdelimiter - the delimiternewline - the newlineontologiesList - the ontologies listpublic void writeComment(String comment, boolean placeOnNewline)
comment - the commentplaceOnNewline - the place on newlineCopyright © 2020 The University of Manchester. All rights reserved.