Merge pull request #2014 from ostephens/fix-formatguesser

Fixer format guesser to return format for N3/Turtle files
This commit is contained in:
Antonin Delpeuch 2019-04-11 08:39:53 +01:00 committed by GitHub
commit 4e7e73432a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,7 @@ public class TextFormatGuesser implements FormatGuesser {
return "text/json";
} else if (openAngleBrackets >= 5 && closeAngleBrackets >= 5) {
if (trailingPeriods > 0) {
return "text/rdf+n3";
return "text/rdf/n3";
} else if (firstChar == '<') {
return "text/xml";
}