diff options
author | Dave Beckett <dave@dajobe.org> | 2010-01-06 08:47:35 -0800 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2010-01-06 08:47:35 -0800 |
commit | f2e9e07a29b2c7766769b50e4431b7c1f2c4f62c (patch) | |
tree | 522ea22d9a79587a31f2f329e55c9a489f554344 /utils/rapper.c | |
parent | ed5016e98aa7154481854b54bf40ec96e886906c (diff) | |
download | raptor-f2e9e07a29b2c7766769b50e4431b7c1f2c4f62c.tar.gz |
Make a raptor_statement into a 3-tuple of raptor_term.
This is a short term stage before merging raptor_term with
raptor_identifier and getting rid of raptor_triple (in N3 and Turtle
parsers). Also want to make the 3 raptor_terms in raptor_statement
as object references not statics, and add a graph term.
raptor_identifier_type should be raptor_term_type and have less
values: kill ordinal and predicate types.
Lots of structure name field changes everywhere statement is used.
Diffstat (limited to 'utils/rapper.c')
-rw-r--r-- | utils/rapper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/rapper.c b/utils/rapper.c index c609acc6..e4cd4fe2 100644 --- a/utils/rapper.c +++ b/utils/rapper.c @@ -107,9 +107,9 @@ void print_triples(void *user_data, const raptor_statement *triple) /* replace newlines with spaces if object is a literal string */ if(replace_newlines && - triple->object_type == RAPTOR_IDENTIFIER_TYPE_LITERAL) { + triple->object.type == RAPTOR_IDENTIFIER_TYPE_LITERAL) { char *s; - for(s = (char*)triple->object; *s; s++) + for(s = (char*)triple->object.value; *s; s++) if(*s == '\n') *s=' '; } |