6 #include "knowrob/storage/UnReificationContainer.h"
7 #include "knowrob/storage/reification.h"
8 #include "knowrob/semweb/rdf.h"
9 #include "knowrob/semweb/Property.h"
10 #include "knowrob/Logger.h"
16 if (it ==
triples_.end())
return nullptr;
17 auto &triple = it->second;
34 static std::map<std::string_view, PropertyHandler> propertyHandler = {
35 {
rdf::type->stringForm(), [](
auto &triple,
auto &unReified) {
75 auto it = propertyHandler.find(triple.
predicate());
76 if (it == propertyHandler.end()) {
80 auto &handler = it->second;
std::function< const TriplePtr *()> ConstGenerator
virtual std::string_view valueAsString() const =0
virtual void setSubject(std::string_view subject)=0
virtual double valueAsDouble() const =0
void setConfidence(double confidence)
virtual std::string_view subject() const =0
virtual void setPerspective(std::string_view perspective)=0
void setIsUncertain(bool isUncertain)
void setIsOccasional(bool isOccasional)
virtual std::string_view predicate() const =0
void setBegin(double begin)
virtual void setObjectIRI(std::string_view object)=0
virtual void setObjectBlank(std::string_view str)=0
virtual void setSubjectBlank(std::string_view str)=0
virtual void setPredicate(std::string_view predicate)=0
virtual bool valueAsBoolean() const =0
void setXSDValue(std::string_view v, XSDType type)
std::map< std::string_view, TriplePtr > triples_
void add(const Triple &triple)
ConstGenerator cgenerator() const override
TriplePtr & getUnReifiedTriple(std::string_view subject)
static knowrob::IRIAtomPtr unReifiedIRI(std::string_view iri)
FunctionRule & function()
const IRIAtomPtr hasSubject
const IRIAtomPtr isUncertain
const IRIAtomPtr hasConfidence
const IRIAtomPtr isOccasional
const IRIAtomPtr hasEndTime
const IRIAtomPtr hasLiteral
const IRIAtomPtr hasBeginTime
const IRIAtomPtr hasPerspective
const IRIAtomPtr hasObject
RDFNodeType rdfNodeTypeGuess(std::string_view str)
TripleTemplate< std::string_view > TripleView