public class ManchesterOWLSyntaxFrameRenderer extends ManchesterOWLSyntaxObjectRenderer implements OWLEntityVisitor
LINE_LENGTH
Constructor and Description |
---|
ManchesterOWLSyntaxFrameRenderer(OWLOntologyManager owlOntologyManager,
OWLOntology ontology,
Writer writer,
ShortFormProvider entityShortFormProvider)
Deprecated.
|
ManchesterOWLSyntaxFrameRenderer(OWLOntologyManager owlOntologyManager,
Set<OWLOntology> ontologies,
OWLOntology defaultOntology,
Writer writer,
ShortFormProvider entityShortFormProvider)
Deprecated.
|
ManchesterOWLSyntaxFrameRenderer(OWLOntology ontology,
Writer writer,
ShortFormProvider entityShortFormProvider)
Instantiates a new manchester owl syntax frame renderer.
|
ManchesterOWLSyntaxFrameRenderer(Set<OWLOntology> ontologies,
OWLOntology defaultOntology,
Writer writer,
ShortFormProvider entityShortFormProvider)
Deprecated.
|
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.
|
Set<OWLOntology> |
getOntologies()
Gets the ontologies.
|
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.
|
void |
setRenderOntologyLists(boolean renderOntologyList)
Specifies whether or not ontology lists should be rendered after frame
section keywords.
|
Set<OWLAxiom> |
write(OWLAnnotationProperty property) |
Collection<OWLAxiom> |
write(OWLClass cls)
Writes out a class frame for the specified class.
|
Set<OWLAxiom> |
write(OWLDataProperty property) |
Set<OWLAxiom> |
write(OWLDatatype datatype) |
Set<OWLAxiom> |
write(OWLIndividual individual) |
Set<OWLAxiom> |
write(OWLObjectPropertyExpression property) |
Set<OWLAxiom> |
write(SWRLRule rule) |
Set<OWLAnnotationAssertionAxiom> |
writeAnnotations(OWLAnnotationSubject subject)
Write annotations.
|
void |
writeComment(String comment,
boolean placeOnNewline)
Write comment.
|
void |
writeComment(String commentDelim,
String comment,
boolean placeOnNewline) |
void |
writeEntityNaryAxioms(OWLEntity entity)
Writes out the Nary axiom frames that contain the specified entity as an
operand.
|
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 |
writeRules(Collection<SWRLRule> rules,
OWLOntology... ontologiesToWrite)
Writes out the specified rules.
|
void |
writeRulesContainingPredicate(OWLObject predicate) |
void |
writeSection(ManchesterOWLSyntax keyword)
Write section.
|
void |
writeSection(ManchesterOWLSyntax keyword,
Collection<?> content,
String delimeter,
boolean newline,
OWLOntology... ontologiesList)
Write section.
|
void |
writeSection(ManchesterOWLSyntax keyword,
SectionMap content,
String delimeter,
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, visit
flush, isUseTabbing, isUseWrapping, setUseTabbing, setUseWrapping
@Deprecated public ManchesterOWLSyntaxFrameRenderer(OWLOntologyManager owlOntologyManager, OWLOntology ontology, Writer writer, ShortFormProvider entityShortFormProvider)
owlOntologyManager
- the owl ontology managerontology
- the ontologywriter
- the writerentityShortFormProvider
- the entity short form providerpublic ManchesterOWLSyntaxFrameRenderer(Set<OWLOntology> ontologies, Writer writer, ShortFormProvider entityShortFormProvider)
ontologies
- the ontologieswriter
- the writerentityShortFormProvider
- the entity short form providerpublic ManchesterOWLSyntaxFrameRenderer(OWLOntology ontology, Writer writer, ShortFormProvider entityShortFormProvider)
ontology
- the ontologywriter
- the writerentityShortFormProvider
- the entity short form provider@Deprecated public ManchesterOWLSyntaxFrameRenderer(OWLOntologyManager owlOntologyManager, Set<OWLOntology> ontologies, OWLOntology defaultOntology, Writer writer, ShortFormProvider entityShortFormProvider)
owlOntologyManager
- the owl ontology managerontologies
- the ontologiesdefaultOntology
- the default ontologywriter
- the writerentityShortFormProvider
- the entity short form provider@Deprecated public ManchesterOWLSyntaxFrameRenderer(Set<OWLOntology> ontologies, OWLOntology defaultOntology, Writer writer, ShortFormProvider entityShortFormProvider)
ontologies
- the ontologiesdefaultOntology
- the default ontologywriter
- 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 setRenderOntologyLists(boolean renderOntologyList)
setRenderExtensions(boolean)
to true
will also cause
ontology lists to be rendered (along with other extensions).renderOntologyList
- Whether or not to render the ontology list for each section.
true
if the list should be rendered, otherwise
false
. The default behaviour is false
.public void writeOntology() throws OWLRendererException
OWLRendererException
- the oWL renderer exceptionpublic void writeRules(Collection<SWRLRule> rules, OWLOntology... ontologiesToWrite)
rules
- The rules to be written. Not null
.ontologiesToWrite
- the ontologiespublic void writeEntityNaryAxioms(OWLEntity entity)
entity
- The entity. Not null
.public void writeOntologyHeader(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(OWLAxiom axiom)
axiom
- the axiompublic Collection<OWLAxiom> writeFrame(OWLEntity entity)
entity
- the entitypublic Collection<OWLAxiom> write(OWLClass cls)
cls
- The class. Not null
.public void writeRulesContainingPredicate(OWLObject predicate)
predicate
- predicate to writepublic Set<OWLAxiom> write(OWLObjectPropertyExpression property)
property
- the propertypublic Set<OWLAxiom> write(OWLDataProperty property)
property
- the propertypublic Set<OWLAxiom> write(OWLIndividual individual)
individual
- the individualpublic Set<OWLAxiom> write(OWLDatatype datatype)
datatype
- the datatypepublic Set<OWLOntology> getOntologies()
public void writeSection(ManchesterOWLSyntax keyword, Collection<?> content, String delimeter, boolean newline, OWLOntology... ontologiesList)
keyword
- the keywordcontent
- the contentdelimeter
- the delimeternewline
- the newlineontologiesList
- the ontologies listpublic void writeSection(ManchesterOWLSyntax keyword)
keyword
- the keywordpublic Set<OWLAxiom> write(OWLAnnotationProperty property)
property
- the propertypublic Set<OWLAnnotationAssertionAxiom> writeAnnotations(OWLAnnotationSubject subject)
subject
- the subjectpublic void writeSection(ManchesterOWLSyntax keyword, SectionMap content, String delimeter, boolean newline, OWLOntology... ontologiesList)
keyword
- the keywordcontent
- the contentdelimeter
- the delimeternewline
- the newlineontologiesList
- the ontologies listpublic void writeComment(String comment, boolean placeOnNewline)
comment
- the commentplaceOnNewline
- the place on newlineCopyright © 2017 The University of Manchester. All Rights Reserved.