org.semanticweb.owlapi.io
Class RDFOntologyFormat

java.lang.Object
  extended by org.semanticweb.owlapi.model.OWLOntologyFormat
      extended by org.semanticweb.owlapi.vocab.PrefixOWLOntologyFormat
          extended by org.semanticweb.owlapi.io.RDFOntologyFormat
All Implemented Interfaces:
PrefixManager
Direct Known Subclasses:
RDFXMLOntologyFormat, TurtleOntologyFormat

public abstract class RDFOntologyFormat
extends PrefixOWLOntologyFormat

Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 28-Jun-2009


Nested Class Summary
static class RDFOntologyFormat.OntologyHeaderStatus
          An enumeration of
static class RDFOntologyFormat.ParserMetaData
           
 
Constructor Summary
RDFOntologyFormat()
           
 
Method Summary
 RDFOntologyFormat.ParserMetaData getParserMetaData()
          Gets the parser meta data for the ontology that this format relates to.
 boolean isAddMissingTypes()
          Determines if untyped entities should automatically be typed during rendering.
 void setAddMissingTypes(boolean addMissingTypes)
          Determines if untyped entities should automatically be typed during rendering.
 void setParserMetaData(RDFOntologyFormat.ParserMetaData parserMetaData)
          Sets the parser meta data for the ontology that this format relates to.
 
Methods inherited from class org.semanticweb.owlapi.vocab.PrefixOWLOntologyFormat
clearPrefixes, containsPrefixMapping, copyPrefixesFrom, getDefaultPrefix, getIRI, getPrefix, getPrefixIRI, getPrefixName2PrefixMap, getPrefixNames, setDefaultPrefix, setPrefix
 
Methods inherited from class org.semanticweb.owlapi.model.OWLOntologyFormat
asPrefixOWLOntologyFormat, equals, getParameter, hashCode, isPrefixOWLOntologyFormat, setParameter
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFOntologyFormat

public RDFOntologyFormat()
Method Detail

getParserMetaData

public RDFOntologyFormat.ParserMetaData getParserMetaData()
Gets the parser meta data for the ontology that this format relates to.

Returns:
The parser metadata for the ontology that this format relates to. If the ontology was not created by parsing an ontology document then this method will return null.

setParserMetaData

public void setParserMetaData(RDFOntologyFormat.ParserMetaData parserMetaData)
Sets the parser meta data for the ontology that this format relates to.

Parameters:
parserMetaData - The parser meta data. May be null to indicate that no parser meta data is available.

isAddMissingTypes

public boolean isAddMissingTypes()
Determines if untyped entities should automatically be typed during rendering. (This is a hint to an RDF renderer - the reference implementation will respect this).

Returns:
true if untyped entities should automatically be typed during rendering, otherwise false.

setAddMissingTypes

public void setAddMissingTypes(boolean addMissingTypes)
Determines if untyped entities should automatically be typed during rendering. By default this is true.

Parameters:
addMissingTypes - true if untyped entities should automatically be typed during rendering, otherwise false.