Dataset-Abstammung abrufen
curl --request GET \
--url https://api.truthlocks.com/v1/datasets/lineage/{datasetId} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/datasets/lineage/{datasetId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/datasets/lineage/{datasetId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/datasets/lineage/{datasetId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lineage": [
{
"transformation": "<string>",
"source_dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Datasets & Modelle
Dataset-Abstammung abrufen
Rufen Sie den vollständigen Abstammungsgraphen für einen Datensatz ab, einschließlich Upstream-Quellen und Downstream-Verbrauchern.
GET
/
v1
/
datasets
/
lineage
/
{datasetId}
Dataset-Abstammung abrufen
curl --request GET \
--url https://api.truthlocks.com/v1/datasets/lineage/{datasetId} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/datasets/lineage/{datasetId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/datasets/lineage/{datasetId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/datasets/lineage/{datasetId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lineage": [
{
"transformation": "<string>",
"source_dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Gibt den vollständigen Lineage-Graphen für eine Dataset-Bestätigung zurück. Der Graph stellt die Herkunftskette als gerichteten azyklischen Graphen (DAG) von Dataset- und Modellreferenzen dar, die durch Transformationsbeziehungen verbunden sind.
Verwenden Sie die Datenherkunft, um die Datenprovenienz zu prüfen, zu überprüfen, ob die Trainingsdatenquellen vertrauenswürdig sind, und nachzuvollziehen, wie Rohdaten durch Vorverarbeitungs-Pipelines in das Modelltraining fließen.
Antwort
Array von Lineage-Knoten. Jeder Knoten enthält: -
id (string) — Ressource
Bezeichner (maip-ds:... oder maip-model:...) – type (String) – Knotentyp:
dataset oder model - name (string) — Menschenlesbarer Name - version
(String) — Ressourcenversion - status (String) — Aktueller Attestierungsstatuscreated_at(string) — ISO 8601 Zeitstempel
Array von Transformationsbeziehungen, die Knoten verbinden. Jede Kante enthält: -
source (string) — Quellknoten-Identifikator - target (string) — Zielknoten
Bezeichner – relationship (String) – Transformationstyp (z. B.
derived_from, trained_on, preprocessed_from, merged_from) - metadata
(Objekt) — Optionale Edge-Metadaten (z. B. Transformationsparameter)
