java.lang.Object
com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter
com.hp.hpl.jena.xmloutput.impl.Abbreviated
- All Implemented Interfaces:
- com.hp.hpl.jena.rdf.model.RDFErrorHandler, com.hp.hpl.jena.rdf.model.RDFWriter, com.hp.hpl.jena.xmloutput.RDFXMLWriterI
- public class Abbreviated
- extends BaseXMLWriter
- implements com.hp.hpl.jena.rdf.model.RDFErrorHandler
Writes out RDF in the abbreviated syntax, for human consumption
not only machine readable.
It is not normal to call the constructor directly, but to use
the method RDFWriterF.getWriter("RDF/XML-ABBREV").
Does not support the NSPREFIXPROPBASE system properties.
Use setNsPrefix.
For best results it is necessary to set the property
"prettyTypes". See setProperty for information.
- Version:
- Release='$Name: $' Revision='$Revision: 1.14 $' Date='$Date: 2005/02/21 12:22:28 $'
| Fields inherited from class com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter |
anonCount, anonMap, dbg, errorHandler, hexchar, logger, longId, RDFNS, showXmlDeclaration, tab, width, xmlBase |
| Methods inherited from class com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter |
addNameSpace, anonId, attributeTag, attributeTag, endElementTag, endElementTag, getPrefixFor, isDefaultNamespace, q, qq, rdfAt, rdfEl, relativize, setBlockRules, setErrorHandler, setLogger, setNsPrefix, setProperty, setupMaps, splitTag, startElementTag, startElementTag, str2flags, tag, workOutNamespaces, write, xmlnsDecl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
types
private com.hp.hpl.jena.rdf.model.Resource[] types
sReification
boolean sReification
sIdAttr
boolean sIdAttr
sDamlCollection
boolean sDamlCollection
sParseTypeCollectionPropertyElt
boolean sParseTypeCollectionPropertyElt
sListExpand
boolean sListExpand
sParseTypeLiteralPropertyElt
boolean sParseTypeLiteralPropertyElt
sParseTypeResourcePropertyElt
boolean sParseTypeResourcePropertyElt
sPropertyAttr
boolean sPropertyAttr
sResourcePropertyElt
boolean sResourcePropertyElt
Abbreviated
public Abbreviated()
unblockAll
void unblockAll()
- Specified by:
unblockAll in class BaseXMLWriter
blockRule
void blockRule(com.hp.hpl.jena.rdf.model.Resource r)
- Specified by:
blockRule in class BaseXMLWriter
setTypes
com.hp.hpl.jena.rdf.model.Resource[] setTypes(com.hp.hpl.jena.rdf.model.Resource[] propValue)
- Overrides:
setTypes in class BaseXMLWriter
write
public void write(com.hp.hpl.jena.rdf.model.Model baseModel,
java.io.Writer out,
java.lang.String base)
- Description copied from class:
BaseXMLWriter
- Serialize Model
model to Writer out.
- Specified by:
write in interface com.hp.hpl.jena.rdf.model.RDFWriter- Overrides:
write in class BaseXMLWriter
writeBody
void writeBody(com.hp.hpl.jena.rdf.model.Model model,
java.io.PrintWriter pw,
java.lang.String base,
boolean useXMLBase)
- Specified by:
writeBody in class BaseXMLWriter
error
public void error(java.lang.Exception e)
- Description copied from interface:
com.hp.hpl.jena.rdf.model.RDFErrorHandler
- report an error
- Specified by:
error in interface com.hp.hpl.jena.rdf.model.RDFErrorHandler
warning
public void warning(java.lang.Exception e)
- Description copied from interface:
com.hp.hpl.jena.rdf.model.RDFErrorHandler
- report a warning
- Specified by:
warning in interface com.hp.hpl.jena.rdf.model.RDFErrorHandler
fatalError
public void fatalError(java.lang.Exception e)
- Description copied from interface:
com.hp.hpl.jena.rdf.model.RDFErrorHandler
- report a catastrophic error. Must not return.
- Specified by:
fatalError in interface com.hp.hpl.jena.rdf.model.RDFErrorHandler
main
public static void main(java.lang.String[] args)
throws java.lang.Exception