public class IdTranslator extends Object
Constructor and Description |
---|
IdTranslator() |
Modifier and Type | Method and Description |
---|---|
String |
expandPrefix(String prefix)
Expands an OBO prefix such as "GO" to "http://purl.obolibrary.org/obo/GO_".
|
static boolean |
isURI(String id)
True if id starts with a standard URI prefix (http, ftp, https) followed by a ":".
|
String |
translateIdToIRIString(String id) |
static String |
translateIRI(IRI iri) |
@Nullable public static String translateIRI(IRI iri)
iri
- iripublic static boolean isURI(String id)
id
- id@Nullable public String translateIdToIRIString(String id)
id
- idCopyright © 2020 The University of Manchester. All rights reserved.