SPARQL replace()

4 views
Skip to first unread message

HAMIZAH

unread,
Jun 26, 2014, 1:37:23 PM6/26/14
to sta...@clarkparsia.com
Hi,

I would like to ask how to use replace()? I found that in Stardog we need to use fn:replace() instead. But it gives me an error.

This is example of my query:


select ?article 
where {
  
  ?annotation rdf:type aot:ExactQualifier;
              ao:body ?terms;
              ao:annotatesResource ?article .
  
  filter (regex (str (?terms), "keyword", "i" )) .  
  fn:replace (?article, "document", "text", "i") .
}


Thanks.

Mike Grove

unread,
Jun 26, 2014, 2:14:12 PM6/26/14
to stardog
Replace is a filter expression like any other, it needs to be enclosed in a filter() block.

Cheers,

Mike
 
}


Thanks.

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

Reply all
Reply to author
Forward
0 new messages