summaryrefslogtreecommitdiff
path: root/src/raptor_rdfxml.c
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2005-11-03 06:34:26 +0000
committerDave Beckett <dave@dajobe.org>2005-11-03 06:34:26 +0000
commitbaf2b66f091e7d80e83fd66ac00d1adeec12a9af (patch)
tree7207e977f407861be039f4e923e259e43a6dd7db /src/raptor_rdfxml.c
parent7fd47f7573af03897dfa5a05f115d824185bf5d8 (diff)
downloadraptor-baf2b66f091e7d80e83fd66ac00d1adeec12a9af.tar.gz
(raptor_generate_statement): Make predicate revert fix actually work.
Diffstat (limited to 'src/raptor_rdfxml.c')
-rw-r--r--src/raptor_rdfxml.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/raptor_rdfxml.c b/src/raptor_rdfxml.c
index 8d900d61..3833da72 100644
--- a/src/raptor_rdfxml.c
+++ b/src/raptor_rdfxml.c
@@ -1377,7 +1377,7 @@ raptor_generate_statement(raptor_parser *rdf_parser,
const raptor_uri_source subject_uri_source,
raptor_uri *predicate_uri,
const unsigned char *predicate_id,
- const raptor_identifier_type predicate_type,
+ raptor_identifier_type predicate_type,
const raptor_uri_source predicate_uri_source,
raptor_uri *object_uri,
const unsigned char *object_id,
@@ -1409,11 +1409,11 @@ raptor_generate_statement(raptor_parser *rdf_parser,
statement->predicate=predicate_uri ? (void*)predicate_uri : (void*)predicate_id;
/* FIXME. Deprecated fixup.
- * Leave this inplace until depenedent code - rasqal and redland
+ * Leave this inplace until dependent code - rasqal and redland
* expect RAPTOR_IDENTIFIER_TYPE_RESOURCE in the predicate position
*/
- if(statement->predicate_type == RAPTOR_IDENTIFIER_TYPE_RESOURCE)
- statement->predicate_type=RAPTOR_IDENTIFIER_TYPE_PREDICATE;
+ if(predicate_type == RAPTOR_IDENTIFIER_TYPE_RESOURCE)
+ predicate_type=RAPTOR_IDENTIFIER_TYPE_PREDICATE;
statement->predicate_type=predicate_type;
statement->object=object_uri ? (void*)object_uri : (void*)object_id;
@@ -1475,7 +1475,7 @@ raptor_generate_statement(raptor_parser *rdf_parser,
/* generate reified statements */
statement->subject_type=RAPTOR_IDENTIFIER_TYPE_RESOURCE;
/* FIXME. Deprecated fixup.
- * Leave this inplace until depenedent code - rasqal and redland
+ * Leave this inplace until dependent code - rasqal and redland
* expect RAPTOR_IDENTIFIER_TYPE_RESOURCE in the predicate position
*/
statement->predicate_type=RAPTOR_IDENTIFIER_TYPE_PREDICATE;
@@ -2806,7 +2806,7 @@ raptor_end_element_grammar(raptor_parser *rdf_parser,
} else {
predicate_uri=raptor_xml_element_get_name(xml_element)->uri;
/* FIXME. Deprecated fixup.
- * Leave this inplace until depenedent code - rasqal and redland
+ * Leave this inplace until dependent code - rasqal and redland
* expect RAPTOR_IDENTIFIER_TYPE_RESOURCE in the predicate position
*/
predicate_type=RAPTOR_IDENTIFIER_TYPE_PREDICATE;