Skip to content

Algorithm Terms and IRI expansion algorithm contradict each other #642

Open
@daenney

Description

@daenney

In section 1.4.1 Algorithm Terms (emphasis mine):

IRI expanding
Used as a macro within various algorithms as to reduce the language used to describe the process of expanding a string value representing an IRI or keyword using an active context either specified directly, or coming from the scope of the algorithm step using this term. Optional defined and local context arguments are used, if explicitly provided. Unless specified, the document relative flag defaults to false, and the vocab flag defaults to true.

  • default relative: false
  • default vocab: true

In section 5.2.2 IRI Expansion Algorithm (emphasis mine):

The algorithm takes two required and four optional input
variables. The required inputs are an active context and a
value to be expanded. The optional inputs are two flags,
document relative and vocab, that specifying whether value
can be interpreted as a relative IRI reference against the
document's base IRI or the active context's vocabulary
mapping, respectively, and a local context and a map
defined to be used when this algorithm is used during
Context Processing. If not passed, the two flags are set to
false
and local context and defined are initialized to null.

  • default relative: false
  • default vocab: false

Step 13.4.4 of expansion, section 5.1.2, does not specify the value for vocab, so I went with false as per the default specified by the IRI expansion algorithm. This makes things not work. Seeing as step 13.4.3 explicitly specifies false for vocab it does seem like the default should be true and the IRI expansion algorithm introduction contains a mistake.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Future Work

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions