Package RDFMessage :: Module Format
[show private | hide private]
[frames | no frames]

Module RDFMessage.Format

Constants for parsing and writing.

Copyright (C) 2006, 2007 Paul Boddie <paul@boddie.org.uk>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA

Function Summary
  get_property_label(property_name)
Return the special property label for the given 'property_name', or None if a generic label is to be used (for example, to construct a predicate for RDF triple stores).

Variable Summary
list all_labels = ['uri', 'related-to', 'details', 'datetime'...
dict attribute_names = {'From': 'from', 'Cc': 'cc', 'To': 'to...
list connector_labels = ['related-to', 'from', 'to', 'cc']
dict permitted_labels = {'cc': 'uri', 'to': 'uri', 'from': 'u...
dict property_names = {'from': 'From', 'cc': 'Cc', 'to': 'To'...
str rdfmessage = 'http://www.boddie.org.uk/ns/rdfmessage/'
str rdftype = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#ty...
list supported_item_types = ['e-mail']
list uriref_labels = ['uri', 'related-to']

Function Details

get_property_label(property_name)

Return the special property label for the given 'property_name', or None
if a generic label is to be used (for example, to construct a predicate for
RDF triple stores).

Variable Details

all_labels

Type:
list
Value:
['uri', 'related-to', 'details', 'datetime']                           

attribute_names

Type:
dict
Value:
{'Cc': 'cc',
 'Date': 'date',
 'From': 'from',
 'In-Reply-To': 'in-reply-to',
 'Message-ID': 'message-id',
 'References': 'references',
 'Subject': 'subject',
 'To': 'to'}                                                           

connector_labels

Type:
list
Value:
['related-to', 'from', 'to', 'cc']                                     

permitted_labels

Type:
dict
Value:
{'cc': 'uri', 'to': 'uri', 'from': 'uri', 'date': 'datetime'}          

property_names

Type:
dict
Value:
{'cc': 'Cc',
 'date': 'Date',
 'from': 'From',
 'in-reply-to': 'In-Reply-To',
 'message-id': 'Message-ID',
 'references': 'References',
 'subject': 'Subject',
 'to': 'To'}                                                           

rdfmessage

Type:
str
Value:
'http://www.boddie.org.uk/ns/rdfmessage/'                              

rdftype

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

supported_item_types

Type:
list
Value:
['e-mail']                                                             

uriref_labels

Type:
list
Value:
['uri', 'related-to']                                                  

Generated by Epydoc 2.1 on Tue Mar 27 01:15:17 2007 http://epydoc.sf.net