knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
TripleFormat.h
Go to the documentation of this file.
1 /*
2  * This file is part of KnowRob, please consult
3  * https://github.com/knowrob/knowrob for license details.
4  */
5 
6 #ifndef KNOWROB_TRIPLE_FORMAT_H
7 #define KNOWROB_TRIPLE_FORMAT_H
8 
9 #include "string_view"
10 
11 namespace knowrob::semweb {
15  enum TripleFormat {
16  RDF_XML,
17  RDFA,
18  TRIG,
19  GRDDL,
20  TURTLE,
21  N_TRIPLES
22  };
23 
28  TripleFormat tripleFormatFromString(std::string_view format);
29 
34  std::string_view tripleFormatToString(TripleFormat format);
35 
40  std::string_view tripleFormatMimeType(TripleFormat format);
41 
46  bool isTripleFormatString(std::string_view format);
47 }
48 
49 #endif //KNOWROB_TRIPLE_FORMAT_H
bool isTripleFormatString(std::string_view format)
std::string_view tripleFormatToString(TripleFormat format)
TripleFormat tripleFormatFromString(std::string_view format)
std::string_view tripleFormatMimeType(TripleFormat format)