Attribute Keys ============== All Attribute Keys ~~~~~~~~~~~~~~~~~~ .. code-block:: http /api/repositories/{repository}/entities/{entity}/attributes/{attribute}/keys .. csv-table:: :header: Parameter, Type, Purpose :widths: 20, 20, 60 :stub-columns: 1 repository, string, the name of the :doc:`repository` entity, int, The ID of the entity to view attribute, int, The ID of the attribute to view Get +++ .. http:get:: /api/repositories/(string:repository)/entities/(int:entityID)/attributes/(int:attributeID)/keys :synopsis: Lists discovered and permanent keys of an attribute Lists discovered and permanent keys of the corresponding :doc:`attribute ` .. code-block:: http GET /api/repositories/jupiter/entities/1/keys HTTP/1.1 Accept: application/json .. csv-table:: :header: Response Code, Reason :widths: 25, 75 200, No error 500, Server error The response will be a :doc:`standard-response`, with a list of discovered and permanent keys in the corresponding :doc:`attributes`. .. _keys_columns_label: Columns ------- The ``columns`` array will contain the list of columns for each data row. .. csv-table:: :header: Human Name, Column Name, Description :widths: 25, 25, 50 "Lh Attrs", "_lhnames", "The attributes that form the primary key" "Status", "__STATUS", "Whether the key is Discovered or Permanent." "Verified", "_verified", "Whether the key quality has been verified against all rows." "Ref", "JOB_ID", "The key analysis reference number." "Quality %", "GOODNESS", "A measure of how well the attributes form a key" "Keys", "CONFIRMATIONS", "The number of non-duplicated keys." "Duplicate Keys", "SETS", "The number of distinct key values that are duplicated." "Duplicate Rows", "CONTRADICTIONS", "The number of rows with duplicate keys." "Verified Date", "_checked_date", "When the key rule was last verified." "Verified By", "CHECKED_BY", "Who verified the key rule." "Created Date", "_created_date", "When the key rule was created." "Created By", "CREATED_BY", "Who created the key rule." "Rh Attr ID", "RH_ATTR", "IDs of the right hand attributes that form the primary key" "Lh Attr IDs", "LH_ATTRS", "IDs of the left hand attributes that form the primary key" .. _keys_datarow_label: Data Row -------- The ``data row`` will contain the list of all keys of the corresponding :doc:`attributes`: .. code-block:: json "rows": [ { "dataRow": [ "Line 02,Line 03", "Permanent", "Yes", "1", "100.000", "50", "", "", "2015/02/05 11:53:01", "bob@TEST-7", "2015/02/05 11:53:01", "bob@TEST-7", "", "2 3" ], "metadata": { "url": "/api/repositories/test/entities/1/keys/-2_3/duplicates" } }, { "dataRow": [ "Line 02,Line 04", "Discovered", "Yes", "1", "100.000", "50", "", "", "2015/02/05 11:53:01", "bob@TEST-7", "2015/02/05 11:53:01", "bob@TEST-7", "", "2 4" ], "metadata": { "url": "/api/repositories/test/entities/1/keys/-2_4/duplicates" } } ``metadata`` contains the url to drill down to each row. If there are no discovered or permanent keys in the corresponding :doc:`attributes`, ``rows`` will be an empty string. Permanent Keys of an Attribute ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: http /api/repositories/{repository}/entities/{entity}/attributes/{attribute}/keys/permanent .. csv-table:: :header: Parameter, Type, Purpose :widths: 20, 20, 60 :stub-columns: 1 repository, string, the name of the :doc:`repository` entity, int, The ID of the entity to view attribute, int, The ID of the attribute to view Get +++ .. http:get:: /api/repositories/(string:repository)/entities/(int:entityID)/attributes/(int:attributeID)/keys/permanent :synopsis: Lists permanent keys of an attribute Lists permanent keys of the corresponding :doc:`attribute ` .. code-block:: http GET /api/repositories/jupiter/entities/1/attributes/1/keys/permanent HTTP/1.1 Accept: application/json .. csv-table:: :header: Response Code, Reason :widths: 25, 75 200, No error 500, Server error The response will be a :doc:`standard-response`, with a list of permanent keys in the corresponding :doc:`attributes`. The ``columns`` array will contain the list of columns for each data row as listed in above :ref:`columns `. The ``data row`` will contain the list of permanent keys in the corresponding :doc:`attributes` similar to ones listed in above :ref:`data row ` Discovered Keys of an Attribute ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: http /api/repositories/{repository}/entities/{entity}/attributes/{attribute}/keys/discovered .. csv-table:: :header: Parameter, Type, Purpose :widths: 20, 20, 60 :stub-columns: 1 repository, string, the name of the :doc:`repository` entity, int, The ID of the entity to view attribute, int, The ID of the attribute to view Get +++ .. http:get:: /api/repositories/(string:repository)/entities/(int:entityID)/attributes/(int:attributeID)/keys/discovered :synopsis: Lists discovered keys of an attribute Lists discovered keys of the corresponding :doc:`attribute ` .. code-block:: http GET /api/repositories/jupiter/entities/1/attributes/1/keys/discovered HTTP/1.1 Accept: application/json .. csv-table:: :header: Response Code, Reason :widths: 25, 75 200, No error 500, Server error The response will be a :doc:`standard-response`, with a list of discovered keys in the corresponding :doc:`attributes`. The ``columns`` array will contain the list of columns for each data row as listed in above :ref:`columns `. The ``data row`` will contain the list of discovered keys in the corresponding :doc:`attributes` similar to ones listed in above :ref:`data row `