rdfxml
An RDF/XML parser for RDFLib
Classes:
-
BagID– -
ElementHandler– -
RDFXMLHandler– -
RDFXMLParser–An RDF/XML parser.
Functions:
CORE_SYNTAX_TERMS
module-attribute
NODE_ELEMENT_EXCEPTIONS
module-attribute
NODE_ELEMENT_EXCEPTIONS = CORE_SYNTAX_TERMS + [li] + OLD_TERMS
OLD_TERMS
module-attribute
OLD_TERMS = [URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#aboutEach'), URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#aboutEachPrefix'), URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#bagID')]
PROPERTY_ATTRIBUTE_EXCEPTIONS
module-attribute
PROPERTY_ATTRIBUTE_EXCEPTIONS = CORE_SYNTAX_TERMS + [Description, li] + OLD_TERMS
PROPERTY_ELEMENT_EXCEPTIONS
module-attribute
PROPERTY_ELEMENT_EXCEPTIONS = CORE_SYNTAX_TERMS + [Description] + OLD_TERMS
UNQUALIFIED
module-attribute
UNQUALIFIED = {'about': about, 'ID': ID, 'type': type, 'resource': resource, 'parseType': parseType}
__all__
module-attribute
ElementHandler
Methods:
-
next_li–
Attributes:
-
__slots__– -
base– -
char– -
data– -
datatype– -
declared– -
end– -
id– -
language– -
li– -
list– -
object– -
start– -
subject–
Source code in rdflib/plugins/parsers/rdfxml.py
RDFXMLHandler
RDFXMLHandler(store: Graph)
Bases: ContentHandler
Methods:
-
absolutize– -
add_reified– -
characters– -
convert– -
document_element_start– -
endElementNS– -
endPrefixMapping– -
error– -
get_current– -
get_next– -
get_parent– -
ignorableWhitespace– -
list_node_element_end– -
literal_element_char– -
literal_element_end– -
literal_element_start– -
node_element_end– -
node_element_start– -
processingInstruction– -
property_element_char– -
property_element_end– -
property_element_start– -
reset– -
setDocumentLocator– -
startDocument– -
startElementNS– -
startPrefixMapping–
Attributes:
-
current– -
next– -
parent– -
preserve_bnode_ids– -
store–
Source code in rdflib/plugins/parsers/rdfxml.py
absolutize
absolutize(uri: str) -> URIRef
Source code in rdflib/plugins/parsers/rdfxml.py
add_reified
add_reified(sid: Identifier, spo: _TripleType)
Source code in rdflib/plugins/parsers/rdfxml.py
characters
convert
convert(name: Tuple[Optional[str], str], qname, attrs: AttributesImpl) -> Tuple[URIRef, Dict[URIRef, str]]
Source code in rdflib/plugins/parsers/rdfxml.py
document_element_start
Source code in rdflib/plugins/parsers/rdfxml.py
endElementNS
endPrefixMapping
error
get_current
get_current() -> Optional[ElementHandler]
get_next
get_next() -> Optional[ElementHandler]
get_parent
get_parent() -> Optional[ElementHandler]
ignorableWhitespace
list_node_element_end
Source code in rdflib/plugins/parsers/rdfxml.py
literal_element_char
literal_element_end
Source code in rdflib/plugins/parsers/rdfxml.py
literal_element_start
Source code in rdflib/plugins/parsers/rdfxml.py
node_element_end
Source code in rdflib/plugins/parsers/rdfxml.py
node_element_start
Source code in rdflib/plugins/parsers/rdfxml.py
311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 | |
processingInstruction
property_element_char
property_element_end
Source code in rdflib/plugins/parsers/rdfxml.py
property_element_start
Source code in rdflib/plugins/parsers/rdfxml.py
405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 | |
reset
Source code in rdflib/plugins/parsers/rdfxml.py
setDocumentLocator
startDocument
startElementNS
Source code in rdflib/plugins/parsers/rdfxml.py
startPrefixMapping
RDFXMLParser
Bases: Parser
An RDF/XML parser.
Methods:
-
parse–
parse
parse(source: InputSource, sink: Graph, **args: Any) -> None
Source code in rdflib/plugins/parsers/rdfxml.py
create_parser
create_parser(target: InputSource, store: Graph) -> XMLReader