Skip to content

node incorrect in definition of ALP #314

@pfps

Description

@pfps

The comment in the definition below is not correct, as ALP can be started with any RDF term.

Definition: Function ALP

Let ppe be an algebraic property path expression.
Let reachableTerms(x:term, ppe) be the set of RDF terms
reached by repeated matches of ppe,
when starting at RDF term x.

ALP(x:term, ppe) =
Let V = empty set
ALP(x:term, ppe, V)
return is V

V is the set of nodes visited

ALP(x:term, ppe, V:set of RDF terms) =
if ( x in V ) return
add x to V
X = reachableTerms(x, ppe)
For n:term in X
ALP(n, ppe, V)
End

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions