Skip to contents

Helper recursive function to extract 'uri' nodes from JSON document based on edamize

Usage

extract_uri(node)

Arguments

node

a JSON document (list)

Value

a list of URI strings extracted from node

Note

From perplexity.ai

Examples

node <- list(uri = "http://edamontology.org/topic_3308",
             children = list(
                 list(uri = "http://edamontology.org/topic_3170")))
extract_uri(node)
#> [[1]]
#> [1] "http://edamontology.org/topic_3170"
#> 
#> [[2]]
#> [1] "http://edamontology.org/topic_3308"
#>