From: Richard C. <ric...@hp...> - 2005-05-31 09:04:34
|
FYI: As someone pointed out on jena-dev, regular expressions are written like this in Jena's RDQL implementation: AND ?x =~ /regex/ In RAP's implementation, it would be (according to the tutorial): AND ?x =~ "/regex/" I don't think anything has to be done about it, but you should be aware of the issue. Richard -------- Forwarded Message -------- From: abelssoft <Ne...@ab...> Reply-To: jen...@ya... To: jen...@ya... Subject: [jena-dev] regular expressions in RDQL? Date: Fri, 27 May 2005 12:41:33 -0000 Hi guys, we wanted to use the ~~ or =~ in an RDQL for using regular expressions. Logically, I would assume that we need to write something like this: SELECT ?id WHERE (?x, <ns:id>, ?id) ... AND ?name ~~ "demoname" USING ns for <http://www.test.com/test#> However: In my Java-Implementation, Jena said that we should remove the quotes and so does your tutorial at http://jena.sourceforge.net/tutorial/RDQL/index.html However: In all other cases, Strings are used WITH quotes and if we remove the quotes then how do we use white spaces??? In the W3C-website at http://www.w3.org/Submission/RDQL/#prod25 it sais: STR_MATCH ::= '=~' | '~~' StringEqualityExpression ::= ...<STR_MATCH> PatternLiteral ... PatternLiteral ::= (nothing on the left side) :-( Furthermore, there is another API for rdql that uses quotes: http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/tutorial/rdql_tutorial.htm So what is correct? Best greetings, Sven Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/jena-dev/ <*> To unsubscribe from this group, send an email to: jen...@ya... <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |