@@ -103,7 +103,19 @@ def report_type_system( self ):
103103 rows .append ( [shortname ,k ,qcdetails [k ]])
104104 # print in a nice table with equal length columns
105105 report += utils .print_in_html (rows ,['Short Name' , 'URI' , 'Query Capability URI' ])
106+
107+ report += "<H2>Project Factory Resource Types, short name and URI</H2>\n "
108+ factorydetails = self .get_factory_uris ()
109+ rows = []
110+ for k in sorted (factorydetails .keys ()):
111+ shortname = k .split ('#' )[- 1 ]
112+ shortname += " (default)" if self .default_query_resource is not None and k == rdfxml .tag_to_uri (self .default_query_resource ) else ""
113+ rows .append ( [shortname ,k ,factorydetails [k ]])
114+ # print in a nice table with equal length columns
115+ report += utils .print_in_html (rows ,['Short Name' , 'URI' , 'Query Capability URI' ])
116+
106117 report += self .textreport ()
118+
107119 rows = []
108120 for prefix in sorted (rdfxml .RDF_DEFAULT_PREFIX .keys ()):
109121 rows .append ([prefix ,rdfxml .RDF_DEFAULT_PREFIX [prefix ]] )
@@ -139,6 +151,11 @@ def get_factory_uri(self,resource_type=None,context=None, return_shapes=False):
139151 resource_type = resource_type or context .default_query_resource
140152 return self .app .get_factory_uri_from_xml (factoriesxml = context .get_services_xml (), resource_type = resource_type ,context = context , return_shapes = return_shapes )
141153
154+ def get_factory_uris (self ,resource_type = None ,context = None ):
155+ context = context or self
156+ resource_type = resource_type or context .default_query_resource
157+ return self .app .get_factory_uris_from_xml (factoriesxml = context .get_services_xml (),context = context )
158+
142159 def load_type_from_resource_shape (self , el ):
143160 raise Exception ( "This must be provided by the inheriting class!" )
144161
0 commit comments