obo.obolibrary.idrules
Class IdTranslator
java.lang.Object
obo.obolibrary.idrules.IdTranslator
public class IdTranslator
- extends Object
This class will eventually replace the id to uri translation in Owl2Obo and OboO2Owl
It is currently in-progress.
- Author:
- cjm
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdTranslator
public IdTranslator()
translateIRI
public String translateIRI(org.semanticweb.owlapi.model.IRI iri)
translateIdToIRIString
public String translateIdToIRIString(String id)
isURI
public boolean isURI(String id)
- True if id starts with a standard URI prefix (http, ftp, https) followed by a ":".
Does not check if it actually conforms to URI syntax.
- Parameters:
id
-
- Returns:
- boolean
expandPrefix
public String expandPrefix(String prefix)
- Expands an OBO prefix such as "GO" to "http://purl.obolibrary.org/obo/GO_"
By default a prefix XX maps to http://purl.obolibrary.org/obo/XX_
- Parameters:
prefix
-
- Returns:
- expanded prefix
Copyright © 2010-2013. All Rights Reserved.