fingerprint.service_layer package¶
Submodules¶
fingerprint.service_layer.handlers module¶
-
generate_endpoint_fingerprint_report
(sparql_endpoint_url: str, output_location: Union[str, pathlib.Path], selected_graphs: List[str] = [''], external_template_location: Union[str, pathlib.Path] = None) → str[source]¶ Calculate the fingerprint of a given endpoint and write the report in the output location. Optionally the fingerprint calculation could be restricted to a particular named graph.
- Parameters
sparql_endpoint_url – URL to fingerprint
output_location – location of where to generate the report
selected_graphs – a list of valid graph URIs or empty string for the default graph
external_template_location – location of custom template (if None -> use the default template)
- Returns
path to the main report document
-
generate_report_builder_config
(sparql_endpoint_url: str, selected_graphs: List[str], external_template_location: Union[str, pathlib.Path]) → Dict[source]¶ Read the default config json from the fingerprint_report and set the endpoint and the graph uri if necessary
- Parameters
sparql_endpoint_url – URL to fingerprint
selected_graphs – a list of valid graph URIs or empty string for the default graph
external_template_location – location of the custom template
- Returns
the new configuration