Skip to content

Main content

RDF Blank Node Local Scope Guard Tool

Compare explicitly scoped blank-node labels; the accepted label grammar is a documented ASCII subset rather than the complete RDF grammar.

Loading tool…

Description

Return literal label equality and equality of both label and scope; serialize firstScope and firstLabel for scopedFirstKey.

RDF literals distinguish lexical spelling, datatype identifiers, language tags, and local blank-node scope. A token-shape check covers only part of RDF term validity.

Return literal label equality and equality of both label and scope; serialize firstScope and firstLabel for scopedFirstKey.

When to use this tool

Use RDF Blank Node Local Scope Guard when you need one explicit RDF term or scope consistency check.

How to use the tool and how it works

  1. Enter firstScope, firstLabel, secondScope, secondLabel. 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 sameLabel, sameScopedNode, scopedFirstKey. Inspect sameLabel, sameScopedNode before interpreting the associated values.

Require nonempty scopes and the implemented ASCII blank-node label shape. Return literal label equality and equality of both label and scope; serialize firstScope and firstLabel for scopedFirstKey.1

Input fieldMeaning and unitsAccepted input
firstScopeFirst ScopeRequired. Text; maximum UTF-16 length 8192.
firstLabelFirst LabelRequired. Text; maximum UTF-16 length 8192.
secondScopeSecond ScopeRequired. Text; maximum UTF-16 length 8192.
secondLabelSecond LabelRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
sameLabelSame LabelRequired. Boolean.
sameScopedNodeSame Scoped NodeRequired. Boolean.
scopedFirstKeyScoped First KeyRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "firstScope": "graph-A",
    "firstLabel": "_:b1",
    "secondScope": "graph-B",
    "secondLabel": "_:b1"
  },
  "output": {
    "sameLabel": true,
    "sameScopedNode": false,
    "scopedFirstKey": "[\"graph-A\",\"_:b1\"]"
  }
}

Limitations and assumptions

  • Blank-node labels are local to a scope; this does not infer cross-document identity, perform graph isomorphism, or accept every legal RDF label spelling.
  • 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

Use a conforming RDF parser and the relevant datatype and language-tag rules for complete graph validation.

References

  1. Calculation and input contract: information-science/rdf-blank-node-local-scope-guard — tool.io

Similar or alternative tools