obo.obolibrary.idrules
Class IdTranslator

java.lang.Object
  extended by 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

Constructor Summary
IdTranslator()
           
 
Method Summary
 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_
 boolean isURI(String id)
          True if id starts with a standard URI prefix (http, ftp, https) followed by a ":".
 String translateIdToIRIString(String id)
           
 String translateIRI(org.semanticweb.owlapi.model.IRI iri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdTranslator

public IdTranslator()
Method Detail

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:

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:


Copyright © 2010-2012. All Rights Reserved.