equal
deleted
inserted
replaced
28 |
28 |
29 class OWLView(StartupView): |
29 class OWLView(StartupView): |
30 id = 'owl' |
30 id = 'owl' |
31 title = _('owl') |
31 title = _('owl') |
32 templatable =False |
32 templatable =False |
|
33 content_type = 'application/xml' # 'text/xml' |
33 |
34 |
34 def call(self): |
35 def call(self): |
35 skipmeta = int(self.req.form.get('skipmeta', True)) |
36 skipmeta = int(self.req.form.get('skipmeta', True)) |
36 self.visit_schema(display_relations=True, |
37 self.visit_schema(display_relations=True, |
37 skiprels=('is', 'is_instance_of', 'identity', |
38 skiprels=('is', 'is_instance_of', 'identity', |
174 class OWLABOXView(EntityView): |
175 class OWLABOXView(EntityView): |
175 id = 'owlabox' |
176 id = 'owlabox' |
176 title = _('owlabox') |
177 title = _('owlabox') |
177 templatable =False |
178 templatable =False |
178 accepts = ('Any',) |
179 accepts = ('Any',) |
|
180 content_type = 'application/xml' # 'text/xml' |
179 |
181 |
180 def call(self): |
182 def call(self): |
181 |
183 |
182 rql = ('Any X') |
|
183 rset = self.req.execute(rql) |
|
184 skipmeta = int(self.req.form.get('skipmeta', True)) |
184 skipmeta = int(self.req.form.get('skipmeta', True)) |
185 self.w(u'''<?xml version="1.0" encoding="UTF-8"?> |
185 self.w(u'''<?xml version="1.0" encoding="UTF-8"?> |
186 <!DOCTYPE rdf:RDF [ |
186 <!DOCTYPE rdf:RDF [ |
187 <!ENTITY owl "http://www.w3.org/2002/07/owl#" > |
187 <!ENTITY owl "http://www.w3.org/2002/07/owl#" > |
188 <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" > |
188 <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" > |