ecl-logo Documentation

LinkP

LinkP[]pattern

returns a pattern which matches a link to any object.

LinkP[types]pattern

returns a pattern which matches an link to any object of the given types.

LinkP[types,fields]pattern

returns a pattern which matches an link to any object of the given fields in the given types.

LinkP[types,fields,indices]pattern

returns a pattern which matches an link to any object of the given fields in the given types at the specific indices.

LinkP[objects]pattern

returns a pattern which matches a link to any of the specified objects.

LinkP[head]pattern

returns a pattern which matches a link to any object with the given head.

Details

    Input
    Output
    General Options

Examples

Basic Examples  (4)

Match a new link to a specific field:

Match a new one-way link:

Restrict the match to a specific object ID:

Match any existing Link to an indexed field with a link-id:

Additional Examples  (9)

Match an existing one-way link with a link ID:

Match a link to only model objects:

Fields  (2)

Restrict the match to a specific type/field:

Match links to objects of a given type and given fields:

Names  (1)

Matches an object with an ID to its named object:

Subfields  (2)

Matches a link to an indexed subfield:

Matches a link to a named subfield:

Types  (2)

Match only links to objects of a given type:

Match a link to any object (but not a Model object):

Options  (2)

IncludeTemporalLinks  (2)

Extends the pattern to Temporal versions of the link:

Setting IncludeTemporalLinks->True still matches on links without a Date: