knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
DataSource.cpp File Reference
#include <utility>
#include <filesystem>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/phoenix_operator.hpp>
#include "knowrob/integration/python/utils.h"
#include "knowrob/DataSource.h"
#include "knowrob/semweb/OntologyLanguage.h"
#include "knowrob/semweb/OntologyFile.h"
#include "knowrob/semweb/SPARQLService.h"
#include "knowrob/semweb/GraphSelector.h"
Include dependency graph for DataSource.cpp:

Go to the source code of this file.

Namespaces

 knowrob
 
 knowrob::py
 

Macros

#define DATA_SOURCE_SETTING_FORMAT   "format"
 
#define DATA_SOURCE_SETTING_LANG   "language"
 
#define DATA_SOURCE_SETTING_TYPE   "type"
 
#define DATA_SOURCE_SETTING_FRAME   "frame"
 
#define DATA_SOURCE_TYPE_SPARQL   "sparql"
 
#define DATA_SOURCE_TYPE_ONTOLOGY   "ontology"
 

Functions

template<typename TP >
std::time_t to_time_t (TP tp)
 
template<>
void knowrob::py::createType< DataSource > ()
 

Macro Definition Documentation

◆ DATA_SOURCE_SETTING_FORMAT

#define DATA_SOURCE_SETTING_FORMAT   "format"

Definition at line 17 of file DataSource.cpp.

◆ DATA_SOURCE_SETTING_FRAME

#define DATA_SOURCE_SETTING_FRAME   "frame"

Definition at line 20 of file DataSource.cpp.

◆ DATA_SOURCE_SETTING_LANG

#define DATA_SOURCE_SETTING_LANG   "language"

Definition at line 18 of file DataSource.cpp.

◆ DATA_SOURCE_SETTING_TYPE

#define DATA_SOURCE_SETTING_TYPE   "type"

Definition at line 19 of file DataSource.cpp.

◆ DATA_SOURCE_TYPE_ONTOLOGY

#define DATA_SOURCE_TYPE_ONTOLOGY   "ontology"

Definition at line 23 of file DataSource.cpp.

◆ DATA_SOURCE_TYPE_SPARQL

#define DATA_SOURCE_TYPE_SPARQL   "sparql"

Definition at line 22 of file DataSource.cpp.

Function Documentation

◆ to_time_t()

template<typename TP >
std::time_t to_time_t ( TP  tp)

Definition at line 41 of file DataSource.cpp.

41  {
42  // needed to convert file modification time to string
43  using namespace std::chrono;
44  auto sctp = time_point_cast<system_clock::duration>(tp - TP::clock::now() + system_clock::now());
45  return system_clock::to_time_t(sctp);
46 }
std::time_t to_time_t(TP tp)
Definition: DataSource.cpp:41
TimePoint now()
Definition: TimePoint.cpp:12