Learn R Programming

AtlasRDF (version 1.8.0)

getLabel: Get label of an entity based on the URI.

Description

Every ontology class has a human readable label associated with it, thhis function will enable you to get that readable label based on the URI (the identifier) for that entity. For instance, the URI http://www.ebi.ac.uk/efo/EFO_0001185 has label HeLa.

Usage

getLabel(uri, endpoint = "http://www.ebi.ac.uk/rdf/services/atlas/sparql")

Arguments

uri
URI of the class for which the label is required.
endpoint
The location of the SPARQL endpoint - default value is live Atlas endpoint

Value

List of labels for the class URI

Examples

Run this code
###get the label for the class efo:EFO_0001185 (HeLa)
getLabel("efo:EFO_0001185")

Run the code above in your browser using DataLab