Description
Return selfLoop when source equals target exactly.
Metadata obligations and relations apply to a declared record scope. Field presence, source coverage, cardinality, and value correctness are independent properties.
Return selfLoop when source equals target exactly.
When to use this tool
Use Document Relation Self Loop Flag when you need a narrow metadata consistency or coverage check.
How to use the tool and how it works
- Enter source, target. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read selfLoop. Inspect selfLoop before interpreting the associated values.
Return selfLoop when source equals target exactly.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| source | Source label or index interpreted under the specific calculation above. | Required. Text; maximum UTF-16 length 8192. |
| target | Target | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| selfLoop | Self Loop | Required. Boolean. |
json
{
"input": {
"source": "a",
"target": "a"
},
"output": {
"selfLoop": true
}
} Limitations and assumptions
- This is one identifier comparison without relation semantics, graph traversal, or an assessment that the loop is invalid.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Apply the complete metadata profile and inspect field values and provenance before accepting a record.
References
Similar or alternative tools
- Metadata Relation Inverse Flag
Find forward, return known, and compare its mapped inverse exactly with suppliedInverse.
- Vocabulary Polyhierarchy Parent Count
Select rows with childIds equal to concept, deduplicate their parent IDs, and return the ordered list and count.