Class Jena2SpringUtils

java.lang.Object
org.dice_research.rdf.spring_jena.Jena2SpringUtils

public class Jena2SpringUtils extends Object
A class with utility methods that ease to connect the Jena and Spring libraries.
Author:
Michael Röder (michael.roeder@uni-paderborn.de)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String[]
    Array containing all media type strings supported by the classes of this library
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.springframework.http.MediaType
    contentType2MediaType(org.apache.jena.atlas.web.ContentType contentType)
    Function to transform the given ContentType instance into a MediaType instance.
    static String[]
    langs2MediaTypeStrings(org.apache.jena.riot.Lang... langs)
    This function transforms the given Lang instances into the content type strings that they represent.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SUPPORTED_MEDIA_TYPES

      public static final String[] SUPPORTED_MEDIA_TYPES
      Array containing all media type strings supported by the classes of this library
  • Constructor Details

    • Jena2SpringUtils

      private Jena2SpringUtils()
  • Method Details

    • contentType2MediaType

      public static org.springframework.http.MediaType contentType2MediaType(org.apache.jena.atlas.web.ContentType contentType)
      Function to transform the given ContentType instance into a MediaType instance.
      Parameters:
      contentType - the content type that should be transformed into a media type
      Returns:
      the media type expressing the same information as the given content type
    • langs2MediaTypeStrings

      public static String[] langs2MediaTypeStrings(org.apache.jena.riot.Lang... langs)
      This function transforms the given Lang instances into the content type strings that they represent.
      Parameters:
      langs -
      Returns: