
https://digicult.atlassian.net/wiki/spaces/mI/pages/2884370488/Matching

```
Discovery Method
simpleString, simpleString*, VECTOR_SIMILARITY

Discovery Strategy
„exact → bei 0 Treffern truncated“

Matching Strategy
spätere Bewertung/Entscheidung zwischen Candidates.
```


Für den nächsten Schnitt heißt das aus meiner Sicht:

1. **Rx Discovery Testbench auf Multi-Discovery erweitern** – Qdrant, xTree, Lobid GND, LocalStore.
2. Dabei `ReconciliationRun.configuration` so vorbereiten, dass **Discovery Method + Discovery Strategy** sauber beschrieben werden können.
3. Pro `ReconciliationRunItem` zunächst nur die **tatsächlich ausgeführten Discovery-Schritte** nachvollziehbar machen – noch keine generische Rule Engine.
4. Erst wenn das stabil läuft, gehen wir an alternative Interpretationen und danach an die OR-Run-Integration.






Für RX-CLN-001 zu Teil A
```

InterpretationNode
└── technique_uri
    → fachlich definiertes Konzept
    → wird verwendet
    → beschreibt das Interpretationsverfahren
    → Beispiele: LEMMATIZATION, TOKENIZATION, NER ...

ReconciliationRun.configuration
└── discovery_method
    → fachlich definiertes Konzept
    → wird verwendet
    → beschreibt die Candidate-Suche
    → Beispiele: SIMPLE_STRING, SIMPLE_STRING_PREFIX, HIERARCHY, VECTOR_SIMILARITY

ReconciliationResult
├── matching_strategy_uri
│   → reserviert
│   → derzeit NULL
│
└── vocabulary_matching_pattern_uri
    → reserviert
    → derzeit NULL

```

## Test Rx Discovery Testbench

### Qdrant
```JSON
{
	"discovery_method": "VECTOR_SIMILARITY",
	"discovery_strategy": {
		"steps": [
			{
				"sequence": 0,
				"adapter_id": "vector-qdrant:qdrant-marburg",
				"method": "VECTOR_SIMILARITY",
				"condition": "ALWAYS"
			}
		]
	},
	"adapter_id": "vector-qdrant:qdrant-marburg",
	"testbench_discovery_key": "qdrant",
	"context_type_uris": [
		"https://reconcilix.vocnet.org/context/0001"
	],
	"context_roles": [
		"item_discovery"
	],
	"language": "*",
	"offset": 0,
	"limit": 1,
	"candidate_limit": 10,
	"discovery_options": {
		"rerank": true,
		"outputLanguage": "de"
	}
}

```

### xTree
```JSON
Missing credentials for tenant/client: source-delivery-test_id / xtree-json

```

### GND
```JSON
{
	"discovery_method": "reconciliation-api",
	"discovery_strategy": {
		"steps": [
			{
				"sequence": 0,
				"adapter_id": "lobid-gnd:subject-heading",
				"method": "reconciliation-api",
				"condition": "ALWAYS"
			}
		]
	},
	"adapter_id": "lobid-gnd:subject-heading",
	"testbench_discovery_key": "lobid-gnd",
	"context_type_uris": [
		"https://reconcilix.vocnet.org/context/0001"
	],
	"context_roles": [
		"item_discovery"
	],
	"language": "*",
	"offset": 0,
	"limit": 1,
	"candidate_limit": 10,
	"discovery_options": [
	]
}

```


### Local Store
- funktioniert mit einem Datensatz
```JSON
{
  "discovery_method": "exact-with-token-fallback",
  "discovery_strategy": {
    "steps": [
      {
        "sequence": 0,
        "adapter_id": "local-reconciliation-store:matcult-the_vocnet_org_00000019",
        "method": "exact-with-token-fallback",
        "condition": "ALWAYS"
      }
    ]
  },
  "adapter_id": "local-reconciliation-store:matcult-the_vocnet_org_00000019",
  "testbench_discovery_key": "local-store",
  "context_type_uris": [
    "https://reconcilix.vocnet.org/context/0001"
  ],
  "context_roles": [
    "item_discovery",
    "structural_context_discovery"
  ],
  "language": "*",
  "offset": 0,
  "limit": 1,
  "candidate_limit": 10,
  "discovery_options": [
  ]
}

```



















