Repository: marmotta Updated Branches: refs/heads/develop 2306e05a3 -> e0ab7bc82
support nquads in ostrich Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/e0ab7bc8 Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/e0ab7bc8 Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/e0ab7bc8 Branch: refs/heads/develop Commit: e0ab7bc824ea970733ed1b6b6b9e17166bc5d792 Parents: 2306e05 Author: Sebastian Schaffert <[email protected]> Authored: Sat Jul 16 12:01:19 2016 +0200 Committer: Sebastian Schaffert <[email protected]> Committed: Sat Jul 16 12:01:19 2016 +0200 ---------------------------------------------------------------------- libraries/ostrich/backend/parser/rdf_parser.cc | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/marmotta/blob/e0ab7bc8/libraries/ostrich/backend/parser/rdf_parser.cc ---------------------------------------------------------------------- diff --git a/libraries/ostrich/backend/parser/rdf_parser.cc b/libraries/ostrich/backend/parser/rdf_parser.cc index ebfdc6b..7190686 100644 --- a/libraries/ostrich/backend/parser/rdf_parser.cc +++ b/libraries/ostrich/backend/parser/rdf_parser.cc @@ -126,6 +126,9 @@ Format FormatFromString(const std::string &name) { if (name == "json" || name == "application/json" || name == "application/rdf+json") { return RDFJSON; } + if (name == "nquads" || name == "text/nquads") { + return NQUADS; + } if (name == "auto" || name == "guess") { return GUESS; }
