web/views/rdf.py
branchstable
changeset 7987 0977d9594d3c
parent 7911 5ab88d05083f
child 8035 f98012ec7c53
--- a/web/views/rdf.py	Fri Oct 21 11:32:04 2011 +0200
+++ b/web/views/rdf.py	Fri Oct 21 13:05:26 2011 +0200
@@ -89,17 +89,14 @@
                             except xy.UnsupportedVocabulary:
                                 pass
                     else:
-                        try:
-                            for related in entity.related(rtype, role, entities=True, safe=True):
-                                if role == 'subject':
-                                    add( (cwuri, CW[rtype], URIRef(related.cwuri)) )
-                                    try:
-                                        for item in xy.xeq('%s %s' % (entity.e_schema.type, rtype)):
-                                            add( (cwuri, urijoin(item), URIRef(related.cwuri)) )
-                                    except xy.UnsupportedVocabulary:
-                                        pass
-                                else:
-                                    add( (URIRef(related.cwuri), CW[rtype], cwuri) )
-                        except Unauthorized:
-                            pass
+                        for related in entity.related(rtype, role, entities=True, safe=True):
+                            if role == 'subject':
+                                add( (cwuri, CW[rtype], URIRef(related.cwuri)) )
+                                try:
+                                    for item in xy.xeq('%s %s' % (entity.e_schema.type, rtype)):
+                                        add( (cwuri, urijoin(item), URIRef(related.cwuri)) )
+                                except xy.UnsupportedVocabulary:
+                                    pass
+                            else:
+                                add( (URIRef(related.cwuri), CW[rtype], cwuri) )