Package rdflib :: Package syntax :: Package parsers :: Module RDFaParser
[show private | hide private]
[frames | no frames]

Module rdflib.syntax.parsers.RDFaParser

RDFa parser.

RDFa is a set of attributes used to embed RDF in XHTML. An important goal of
RDFa is to achieve this RDF embedding without repeating existing XHTML content
when that content is the metadata.

REFERENCES:

        http://www.w3.org/2001/sw/BestPractices/HTML/2005-rdfa-syntax

LICENSE:

  BSD

CHANGE HISTORY:

  2006/06/03 - Initial Version
  2006/06/08 - Added support for role (as per primer not syntax spec)
               Added support for plaintext and flattening of XMLLiterals
               ... (Sections 5.1.1.2 and 5.1.2.1)
               Fixed plaintext bug where it was being resolved as CURIE
               Added support to skip reserved @rel keywords from:
                 http://www.w3.org/TR/REC-html40/types.html#h-6.12
  2006/08/12 - Changed reserved @rel resolution to include a '#'
               Fixed subject resolution for LINK/META when inside HEAD
               Fixed blank node extraction [_:address] -> [_:_:address]
               Added support for passing prefix mappings to the Graph
               via RDFaSink
               Added @id support as part of subject resolution

Copyright (c) 2006, Elias Torres <elias@torrez.us>

Classes
RDFaParser  
RDFaSink  

Function Summary
  _urljoin(base, uri)

Variable Summary
str __version__ = '$Id: RDFaParser.py 863 2006-08-12 16:29:2...
Namespace rdf = u'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
list rdfa_attribs = ['about', 'property', 'rel', 'rev', 'href...
list reserved_links = ['alternate', 'stylesheet', 'start', 'n...
Namespace xhtml = u'http://www.w3.org/1999/xhtml'
Namespace xml = u'http://www.w3.org/XML/1998/namespace'
SRE_Pattern _urifixer = ^([A-Za-z][A-Za-z0-9+-.]*://)(/*)(.*?)

Variable Details

__version__

Type:
str
Value:
'$Id: RDFaParser.py 863 2006-08-12 16:29:26Z eliast $'                 

rdf

Type:
Namespace
Value:
u'http://www.w3.org/1999/02/22-rdf-syntax-ns#'                         

rdfa_attribs

Type:
list
Value:
['about', 'property', 'rel', 'rev', 'href', 'content', 'role', 'id']   

reserved_links

Type:
list
Value:
['alternate',
 'stylesheet',
 'start',
 'next',
 'prev',
 'contents',
 'index',
 'glossary',
...                                                                    

xhtml

Type:
Namespace
Value:
u'http://www.w3.org/1999/xhtml'                                        

xml

Type:
Namespace
Value:
u'http://www.w3.org/XML/1998/namespace'                                

_urifixer

Type:
SRE_Pattern
Value:
^([A-Za-z][A-Za-z0-9+-.]*://)(/*)(.*?)                                 

Generated by Epydoc 2.1 on Mon Oct 23 14:11:24 2006 http://epydoc.sf.net