Class Jena2SpringUtils
java.lang.Object
org.dice_research.rdf.spring_jena.Jena2SpringUtils
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
FieldsModifier and TypeFieldDescriptionstatic final String[]Array containing all media type strings supported by the classes of this library -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.http.MediaTypecontentType2MediaType(org.apache.jena.atlas.web.ContentType contentType) Function to transform the givenContentTypeinstance into aMediaTypeinstance.static String[]langs2MediaTypeStrings(org.apache.jena.riot.Lang... langs) This function transforms the givenLanginstances into the content type strings that they represent.
-
Field Details
-
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 givenContentTypeinstance into aMediaTypeinstance.- 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
This function transforms the givenLanginstances into the content type strings that they represent.- Parameters:
langs-- Returns:
-