Skip to content

Main content

Document Relation Self Loop Flag Tool

Inspect exact supplied document identities on one directed relation edge.

Loading tool…

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

  1. Enter source, target. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read selfLoop. Inspect selfLoop before interpreting the associated values.

Return selfLoop when source equals target exactly.1

Input fieldMeaning and unitsAccepted input
sourceSource label or index interpreted under the specific calculation above.Required. Text; maximum UTF-16 length 8192.
targetTargetRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
selfLoopSelf LoopRequired. 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

  1. Calculation and input contract: information-science/document-relation-self-loop-flag — tool.io

Similar or alternative tools