Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

References should be lists of lists #102

Open
szeke opened this issue Jun 6, 2020 · 1 comment
Open

References should be lists of lists #102

szeke opened this issue Jun 6, 2020 · 1 comment

Comments

@szeke
Copy link
Collaborator

szeke commented Jun 6, 2020

References are currently implemented the same way as qualifiers. However, references should be list of lists as in

# OECD mapping
statementMapping:
  region: 
    - range: D6:K12
      skip_cell:
        - =value[$col, $row] == " .."
  template:
    # The next line should wikify the extracted country
    #item: '=get_item(regex(value[B, 2], "profile: (.*) \d{4}", 1))' 
    item: Q31 # Belgium
    property: =item[B, $row]
    value: =replace(value[$col, $row], "[^\d.-]", "")
    reference: 
      - - property: P246 # stated in
          value: Q41550 # OECD
        - property: P2006010001 # Datamart dataset id
          value: Q2006050001 # OECD dataset
      - - property: P246 # stated in
          value: Q123456 
        - property: PP1234567 # Datamart dataset id
          value: "hi there"
@devowit
Copy link
Contributor

devowit commented Mar 22, 2021

@szeke can this be closed at this point? is adding references in still on the agenda?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants