All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.semanticweb.owlapi.formats.AbstractRioRDFOntologyFormatFactory Maven / Gradle / Ivy

The newest version!
package org.semanticweb.owlapi.formats;

import java.util.List;

import org.openrdf.rio.RDFFormat;

/**
 * An abstract implementation of the RioRDFOntologyFormatFactory interface that uses the Rio RDFFormat class to provide information for common methods
 * @author Peter Ansell [email protected]
 *
 */
public abstract class AbstractRioRDFOntologyFormatFactory extends AbstractOWLOntologyFormatFactory implements RioRDFOntologyFormatFactory
{
    
    public AbstractRioRDFOntologyFormatFactory()
    {
        super();
    }

    @Override
    public String getKey()
    {
        return getNewFormat().getKey();
    }

    @Override
    public List getMIMETypes()
    {
        return getRioFormat().getMIMETypes();
    }

    @Override
    public RDFFormat getRioFormat()
    {
        return ((RioRDFOntologyFormat)getNewFormat()).getRioFormat();
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy