ProvSQL SQL API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
Provenance output

Functions for visualizing and exporting provenance circuits in various formats. More...

Functions

TEXT provsql.view_circuit (UUID token, REGCLASS token2desc, INT dbg=0)
 Return a DOT or TEXT visualization of the provenance circuit.
 
TEXT provsql.to_provxml (UUID token, REGCLASS token2desc=NULL)
 Return an XML representation of the provenance circuit.
 
UUID provsql.provenance ()
 Return the provenance token of the current query result tuple.
 
TEXT provsql.where_provenance (UUID token)
 Compute where-provenance for a result tuple.
 

Detailed Description

Functions for visualizing and exporting provenance circuits in various formats.

Function Documentation

◆ provenance()

UUID provsql.provenance ( )

Return the provenance token of the current query result tuple.

Source code
provsql.sql line 1409

◆ to_provxml()

TEXT provsql.to_provxml ( UUID  token,
REGCLASS  token2desc = NULL 
)

Return an XML representation of the provenance circuit.

Parameters
tokenroot provenance token
token2descoptional mapping table for gate descriptions
Source code
provsql.sql line 1402

◆ view_circuit()

TEXT provsql.view_circuit ( UUID  token,
REGCLASS  token2desc,
INT  dbg = 0 
)

Return a DOT or TEXT visualization of the provenance circuit.

Parameters
tokenroot provenance token
token2descmapping table for gate descriptions
dbgdebug level (0 = normal)
Source code
provsql.sql line 1389

◆ where_provenance()

TEXT provsql.where_provenance ( UUID  token)

Compute where-provenance for a result tuple.

Returns a TEXT representation showing which input columns contributed to each output column.

Source code
provsql.sql line 1418