Package doapfiend :: Package plugins :: Module n3 :: Class OutputPlugin
[hide private]
[frames] | no frames]

Class OutputPlugin

source code

 object --+    
          |    
base.Plugin --+
              |
             OutputPlugin

Class for formatting DOAP output

Instance Methods [hide private]
 
__init__(self)
Setup N3 OutputPlugin class
source code
unicode
serialize(self, doap_xml, color=False)
Serialize RDF/XML DOAP as N3 syntax
source code
 
add_options(self, parser, output, search)
Add plugin's options to doapfiend's opt parser
source code

Inherited from base.Plugin: configure, help

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  name = 'n3'
  enabled = False
  enable_opt = None
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Setup N3 OutputPlugin class

Overrides: object.__init__

serialize(self, doap_xml, color=False)

source code 

Serialize RDF/XML DOAP as N3 syntax

Parameters:
  • doap_xml (string) - DOAP in RDF/XML serialization
Returns: unicode
DOAP in Notation 3

add_options(self, parser, output, search)

source code 

Add plugin's options to doapfiend's opt parser

Overrides: base.Plugin.add_options