/** * returns a list of all mimetypes which can be parsed by implemented parsers * @return */ @Override public List<String> getAcceptTypes() { Set<String> acceptTypes = new LinkedHashSet<>(); for(RDFFormat format : RDFParserRegistry.getInstance().getKeys()) { // Ignore binary formats if(format.hasCharset()) { acceptTypes.addAll(format.getMIMETypes()); } } return new ArrayList<>(acceptTypes); }
/** * returns a list of all mimetypes which can be produced by implemented serializers * @return */ @Override public List<String> getProducedTypes() { Set<String> producedTypes = new LinkedHashSet<>(); for(RDFFormat format : RDFWriterRegistry.getInstance().getKeys()) { // Ignore binary formats if(format.hasCharset()) { producedTypes.addAll(format.getMIMETypes()); } } return new ArrayList<>(producedTypes); }
/** * returns a list of all mimetypes which can be parsed by implemented parsers * @return */ @Override public List<String> getAcceptTypes() { Set<String> acceptTypes = new LinkedHashSet<>(); for(RDFFormat format : RDFParserRegistry.getInstance().getKeys()) { // Ignore binary formats if(format.hasCharset()) { acceptTypes.addAll(format.getMIMETypes()); } } return new ArrayList<>(acceptTypes); }
/** * returns a list of all mimetypes which can be produced by implemented serializers * @return */ @Override public List<String> getProducedTypes() { Set<String> producedTypes = new LinkedHashSet<>(); for(RDFFormat format : RDFWriterRegistry.getInstance().getKeys()) { // Ignore binary formats if(format.hasCharset()) { producedTypes.addAll(format.getMIMETypes()); } } return new ArrayList<>(producedTypes); }
throws IOException, RDFParseException, RepositoryException, UnauthorizedException final Charset charset = dataFormat.hasCharset() ? dataFormat.getCharset() : Charset.forName("UTF-8");
if (rdfFormat.hasCharset()) { Charset charset = rdfFormat.getCharset(); mimeType += "; charset=" + charset.name();
if (format.hasCharset() && entity != null && entity.getContentType() != null) {
if (format.hasCharset()) {
if (format.hasCharset()) {