getExFactorURIFromLabel: Get the EFO URI from a given label

Description Usage Arguments Value Author(s) Examples

View source: R/AtlasRDF.R

Description

Find the EFO ontology class URI for a given search label.

Usage

1
    getExFactorURIFromLabel(label, endpoint="http://www.ebi.ac.uk/rdf/services/atlas/sparql")

Arguments

label

Search string to find the EFO class URI by

endpoint

SPARQL endpoint to query data from. Default value is the live Atlas SPARQL endpoint but this can be overidden.

Value

EFO class URI for the given search term

Author(s)

James Malone, Simon Jupp

Examples

1
2
    ####find the efo class uri for "asthma"
    getExFactorURIFromLabel("asthma")   #<http://www.ebi.ac.uk/efo/EFO_0000270>

Example output

Loading required package: hash
hash-3.0.1 provided by Decision Patterns

Loading required package: SPARQL
Loading required package: XML
Loading required package: RCurl
Loading required package: bitops
An error occured when trying SPARQL query for getExFactorURIFromLabel function Error in function (type, msg, asError = TRUE) : Could not resolve host: www.ebi.ac.uk

NULL

AtlasRDF documentation built on Nov. 17, 2017, 9:33 a.m.