diff options
author | David Robillard <d@drobilla.net> | 2007-05-08 03:30:37 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-05-08 03:30:37 +0000 |
commit | f6ff6e487201bdd94e584397ce829daaa424aba9 (patch) | |
tree | aedf571fe2c1db5d3d3cd1511805e51aca64a75e /slv2/plugin.h | |
parent | 816279720d70902bf1beba5a2aaaf135707ae77f (diff) | |
download | lilv-f6ff6e487201bdd94e584397ce829daaa424aba9.tar.gz lilv-f6ff6e487201bdd94e584397ce829daaa424aba9.tar.bz2 lilv-f6ff6e487201bdd94e584397ce829daaa424aba9.zip |
Reworked simple query API to allow passing either QName or URI predicates.
Hack around a Rasqal bug for the above (URI predicates).
Clean up exposed names for greppability and to not violate user namespace.
Fixed slv2_plugin_get_value and slv2_plugin_get_value_for_resource.
git-svn-id: http://svn.drobilla.net/lad/slv2@517 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2/plugin.h')
-rw-r--r-- | slv2/plugin.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/slv2/plugin.h b/slv2/plugin.h index 7e7c928..ace6e3b 100644 --- a/slv2/plugin.h +++ b/slv2/plugin.h @@ -137,10 +137,14 @@ slv2_plugin_get_class(SLV2Plugin plugin); * * Return value must be freed by caller with slv2_values_free. * + * \a predicate must be either a URI or a QName. + * See \ref SLV2URIType documentation for examples. + * * Time = Query */ SLV2Values slv2_plugin_get_value(SLV2Plugin p, + SLV2URIType predicate_type, const char* predicate); @@ -156,13 +160,17 @@ slv2_plugin_get_value(SLV2Plugin p, * May return NULL if the property was not found, or if object is not * sensibly represented as an SLV2Values (e.g. blank nodes). * + * \a predicate must be either a URI or a QName. + * See \ref SLV2URIType documentation for examples. + * * Return value must be freed by caller with slv2_values_free. * * Time = Query */ SLV2Values slv2_plugin_get_value_for_subject(SLV2Plugin p, - const char* subject, + SLV2Value subject, + SLV2URIType predicate_type, const char* predicate); |