Dear All, thanks everybody for the replies.
Thanks, Chris, it is a good piece of advice! Thanks, Joshua, again, yes, that's I wanted to do. I have read the specifications but they are not so easy understandable because when I try something it does not work as it is supposed to work that's the reason I ask. Perhaps it is helpful for others newbies as well. It looks that it is sometimes very sensitive to small details, and the errors are not identified so easily. Even your example "bind( substr(str(?person),4) as ?pName)" did not work for me at the beginning but, when I modified as "bind( substr(str(?person),4) as ?person)" it started to work. You see how, the hell, sensitive it is. "bind( strafter(str(?person)," http://www.semanticweb.org/darius/ontologies/2013/6/rooms#") as ?pName)" I changed as well as "bind( strafter(str(?person)," http://www.semanticweb.org/darius/ontologies/2013/6/rooms#") as ?person)". Moreover, it looks that the tags of functions are not case sensitive while the variable names are like allways. FILTER controls which solutions are included in the final result as you said but why does not it work with the logical AND (&&), only with logical OR (||)? Thanks, Dave, that's an interesting example of syntax. It helped, and I will use it in other queries. Sincerely Yours, Darius 2013/8/20 Chris Dollin <[email protected]> > On Tuesday, August 20, 2013 06:01:43 PM Darius Miliauskas wrote: > > > The example of my code (Java) is the following: > > > > String queryString2 ="PREFIX base: < > > http://www.semanticweb.org/darius/ontologies/2013/6/rooms#>" > > + "PREFIX rdf: < > http://www.w3.org/1999/02/22-rdf-syntax-ns# > > >" > > Aside: you'll find it helpful to start each of these strings with \n. > > This means you can print the query out without it rushing off to the right, > and if a syntax error is reported the line number will be useful rather > than 1. > > Chris > > -- > "You're down as expendable. You don't get a weapon." /Dark Lord of > Derkholm/ > > Epimorphics Ltd, http://www.epimorphics.com > Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 > 6PT > Epimorphics Ltd. is a limited company registered in England (number > 7016688) > >
