/** * Tries to match a MIME type against the list of tuple query result formats that can be parsed. * * @param mimeType * A MIME type, e.g. "application/sparql-results+xml". * @return An RDFFormat object if a match was found, or {@link Optional#empty()} otherwise. * @see #getParserFormatForMIMEType(String, TupleQueryResultFormat) */ public static Optional<QueryResultFormat> getParserFormatForMIMEType(String mimeType) { return TupleQueryResultParserRegistry.getInstance().getFileFormatForMIMEType(mimeType); }
/** * Tries to match a MIME type against the list of tuple query result formats that can be parsed. * * @param mimeType * A MIME type, e.g. "application/sparql-results+xml". * @return An RDFFormat object if a match was found, or {@link Optional#empty()} otherwise. * @see #getParserFormatForMIMEType(String, TupleQueryResultFormat) */ public static Optional<QueryResultFormat> getParserFormatForMIMEType(String mimeType) { return TupleQueryResultParserRegistry.getInstance().getFileFormatForMIMEType(mimeType); }