From b0339e5350f4b9f41f534a7f17e4bec4947fcd5f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 31 Jul 2016 03:22:58 -0400 Subject: Add sratom_set_env() for setting prefixes --- sratom/sratom.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'sratom') diff --git a/sratom/sratom.h b/sratom/sratom.h index a86f67e..3e76954 100644 --- a/sratom/sratom.h +++ b/sratom/sratom.h @@ -1,5 +1,5 @@ /* - Copyright 2012 David Robillard + Copyright 2012-2016 David Robillard Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -100,6 +100,17 @@ SRATOM_API void sratom_free(Sratom* sratom); +/** + Set the environment for reading or writing Turtle. + + This can be used to set namespace prefixes and a base URI for + sratom_to_turtle() and sratom_from_turtle(). +*/ +SRATOM_API +void +sratom_set_env(Sratom* sratom, + SerdEnv* env); + /** Set the sink(s) where sratom will write its output. -- cgit v1.2.1