Hello,

I'd like to refer to an attribute in a relevancy expression, but the attribute I want to refer to is some levels higher. How do I go about this?

attribute to refer to: /sample_plot/region

attribute with expression: /sample_plot/trees/samplecandidate

Thanks!

asked 09 Oct '14, 21:13

Andras's gravatar image

Andras
18482253
accept rate: 0%

edited 09 Oct '14, 21:14


Hi, you have to consider that the expression defined in the attribute samplecandidate will have the entity trees as context, so it will be evaluated starting from that node. The expression you need will be something like this: parent()/region = 'REGION_CODE'. Thanks

permanent link

answered 09 Oct '14, 21:45

Stefano%20%28OF%29's gravatar image

Stefano (OF) ♦♦
4.8k119
accept rate: 19%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×494

question asked: 09 Oct '14, 21:13

question was seen: 73,912 times

last updated: 09 Oct '14, 21:45