summaryrefslogtreecommitdiffstats
path: root/sord/sordmm.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'sord/sordmm.hpp')
-rw-r--r--sord/sordmm.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp
index 4ab25e2..da1e49c 100644
--- a/sord/sordmm.hpp
+++ b/sord/sordmm.hpp
@@ -466,6 +466,10 @@ public:
const Node& predicate,
const Node& object);
+ inline Node get(const Node& subject,
+ const Node& predicate,
+ const Node& object);
+
inline World& world() const { return _world; }
private:
@@ -631,6 +635,18 @@ Model::find(const Node& subject,
return Iter(_world, sord_find(_c_obj, quad));
}
+inline Node
+Model::get(const Node& subject,
+ const Node& predicate,
+ const Node& object)
+{
+ return Node(_world, sord_get(_c_obj,
+ subject.c_obj(),
+ predicate.c_obj(),
+ object.c_obj(),
+ NULL));
+}
+
} // namespace Sord
#endif // SORD_SORDMM_HPP