/*
* Copyright (c) 2009 Mysema Ltd.
* All rights reserved.
*
*/
package com.mysema.rdfbean.sesame;
import org.openrdf.rio.RDFFormat;
import com.mysema.rdfbean.model.Format;
/**
* FormatHelper provides Format to RDFFormat conversion functionality
*
* @author tiwe
* @version $Id$
*/
public final class FormatHelper {
private FormatHelper() {
}
public static RDFFormat getFormat(Format format) {
switch (format) {
case N3:
return RDFFormat.N3;
case NTRIPLES:
return RDFFormat.NTRIPLES;
case RDFXML:
return RDFFormat.RDFXML;
case TRIG:
return RDFFormat.TRIG;
case TURTLE:
return RDFFormat.TURTLE;
case RDFA:
return RDFFormat.RDFA;
}
throw new IllegalArgumentException("Unsupported format : " + format);
}
}