web/views/rdf.py
brancholdstable
changeset 8462 a14b6562082b
parent 8035 f98012ec7c53
child 10234 a12e4459eee5
equal deleted inserted replaced
8231:1bb43e31032d 8462:a14b6562082b
    43     SKIP_RTYPES = VIRTUAL_RTYPES | set(['cwuri', 'is', 'is_instance_of'])
    43     SKIP_RTYPES = VIRTUAL_RTYPES | set(['cwuri', 'is', 'is_instance_of'])
    44 
    44 
    45     class RDFView(EntityView):
    45     class RDFView(EntityView):
    46         """rdf view for entities"""
    46         """rdf view for entities"""
    47         __regid__ = 'rdf'
    47         __regid__ = 'rdf'
    48         title = _('rdf')
    48         title = _('rdf export')
    49         templatable = False
    49         templatable = False
    50         content_type = 'text/xml' # +rdf
    50         content_type = 'text/xml' # +rdf
    51 
    51 
    52         def call(self):
    52         def call(self):
    53             graph = rdflib.Graph()
    53             graph = rdflib.Graph()