[tracker] tracker-sparql: Use colon as prefix delimiter to align with SPARQL
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-sparql: Use colon as prefix delimiter to align with SPARQL
- Date: Thu, 29 Oct 2009 12:54:11 +0000 (UTC)
commit 653b30f8e925c466bc41082efc38d8c7bb3a070e
Author: Jürg Billeter <j bitron ch>
Date: Thu Oct 29 13:53:03 2009 +0100
tracker-sparql: Use colon as prefix delimiter to align with SPARQL
docs/manpages/tracker-sparql.1 | 8 ++++----
src/tracker-utils/tracker-sparql.c | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/docs/manpages/tracker-sparql.1 b/docs/manpages/tracker-sparql.1
index 5f22d80..cb949cb 100644
--- a/docs/manpages/tracker-sparql.1
+++ b/docs/manpages/tracker-sparql.1
@@ -56,12 +56,12 @@ Returns a list of properties which pertain to a class. You can use
both formats here for the class, either the full name
.B http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Video
or the shortened prefix name
-.B nfo#Video.
+.B nfo:Video.
This gives the following result:
.NF
-$ tracker-sparql -p nfo#Video
+$ tracker-sparql -p nfo:Video
Properties: 2
http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#frameRate
@@ -69,9 +69,9 @@ Properties: 2
.FI
These properties
-.B nfo#frameRate
+.B nfo:frameRate
and
-.B nfo#frameCount
+.B nfo:frameCount
can be used in more complex queries (see --query).
.SH EXAMPLES
diff --git a/src/tracker-utils/tracker-sparql.c b/src/tracker-utils/tracker-sparql.c
index 4de30b3..a2756e5 100644
--- a/src/tracker-utils/tracker-sparql.c
+++ b/src/tracker-utils/tracker-sparql.c
@@ -61,7 +61,7 @@ static GOptionEntry entries[] = {
NULL,
},
{ "list-properties", 'p', 0, G_OPTION_ARG_STRING, &list_properties,
- N_("Retrieve properties for a class, prefixes can be used too (e.g. rdfs#Resource)"),
+ N_("Retrieve properties for a class, prefixes can be used too (e.g. rdfs:Resource)"),
N_("CLASS"),
},
{ NULL }
@@ -271,12 +271,12 @@ main (int argc, char **argv)
gchar *class_name_no_property;
prefix = g_strdup (list_properties);
- p = strchr (prefix, '#');
+ p = strchr (prefix, ':');
if (!p) {
g_printerr ("%s\n",
_("Could not find property for class prefix, "
- "e.g. #Resource in 'rdfs#Resource'"));
+ "e.g. :Resource in 'rdfs:Resource'"));
g_free (prefix);
tracker_disconnect (client);
return EXIT_FAILURE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]