Home | Trees | Index | Help |
---|
Package rdflib :: Package syntax :: Package parsers :: Module RDFXMLHandler :: Class RDFXMLHandler |
|
ContentHandler
--+
|
RDFXMLHandler
Method Summary | |
---|---|
__init__(self,
store)
| |
absolutize(self,
uri)
| |
add_reified(self,
sid,
(s,
p,
o))
| |
Receive notification of character data. | |
convert(self,
name,
qname,
attrs)
| |
document_element_start(self,
name,
qname,
attrs)
| |
Signals the end of an element in namespace mode. | |
End the scope of a prefix-URI mapping. | |
error(self,
message)
| |
get_current(self)
| |
get_next(self)
| |
get_parent(self)
| |
ignorableWhitespace(self,
content)
| |
list_node_element_end(self,
name,
qname)
| |
literal_element_char(self,
data)
| |
literal_element_end(self,
name,
qname)
| |
literal_element_start(self,
name,
qname,
attrs)
| |
node_element_end(self,
name,
qname)
| |
node_element_start(self,
name,
qname,
attrs)
| |
Receive notification of a processing instruction. | |
property_element_char(self,
data)
| |
property_element_end(self,
name,
qname)
| |
property_element_start(self,
name,
qname,
attrs)
| |
reset(self)
| |
Called by the parser to give the application a locator for locating the origin of document events. | |
Receive notification of the beginning of a document. | |
Signals the start of an element in namespace mode. | |
startPrefixMapping(self,
prefix,
namespace)
| |
Inherited from ContentHandler | |
Receive notification of the end of a document. | |
Signals the end of an element in non-namespace mode. | |
Receive notification of a skipped entity. | |
Signals the start of an element in non-namespace mode. |
Property Summary | |
---|---|
current | |
next | |
parent |
Method Details |
---|
characters(self, content)Receive notification of character data. The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity so that the Locator provides useful information.
|
endElementNS(self, name, qname)Signals the end of an element in namespace mode. The name parameter contains the name of the element type, just as with the startElementNS event.
|
endPrefixMapping(self, prefix)End the scope of a prefix-URI mapping. See startPrefixMapping for details. This event will always occur after the corresponding endElement event, but the order of endPrefixMapping events is not otherwise guaranteed.
|
processingInstruction(self, target, data)Receive notification of a processing instruction. The Parser will invoke this method once for each processing instruction found: note that processing instructions may occur before or after the main document element. A SAX parser should never report an XML declaration (XML 1.0, section 2.8) or a text declaration (XML 1.0, section 4.3.1) using this method.
|
setDocumentLocator(self, locator)Called by the parser to give the application a locator for locating the origin of document events. SAX parsers are strongly encouraged (though not absolutely required) to supply a locator: if it does so, it must supply the locator to the application by invoking this method before invoking any of the other methods in the DocumentHandler interface. The locator allows the application to determine the end position of any document-related event, even if the parser is not reporting an error. Typically, the application will use this information for reporting its own errors (such as character content that does not match an application's business rules). The information returned by the locator is probably not sufficient for use with a search engine. Note that the locator will return correct information only during the invocation of the events in this interface. The application should not attempt to use it at any other time.
|
startDocument(self)Receive notification of the beginning of a document. The SAX parser will invoke this method only once, before any other methods in this interface or in DTDHandler (except for setDocumentLocator).
|
startElementNS(self, name, qname, attrs)Signals the start of an element in namespace mode. The name parameter contains the name of the element type as a (uri, localname) tuple, the qname parameter the raw XML 1.0 name used in the source document, and the attrs parameter holds an instance of the Attributes class containing the attributes of the element. The uri part of the name tuple is None for elements which have no namespace.
|
Property Details |
---|
current
|
next
|
parent
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Jun 29 09:50:16 2005 | http://epydoc.sf.net |