On 28-May-09, at 8:52 AM, Peter Coetzee wrote: > > The following query, executed via the SPARQL endpoint returns no > results. This is the encoded version of either of the above queries: > > SELECT+%3Fabstract+WHERE+%7B+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource > %2FToronto%2C_Ohio%3E+%3Chttp%3A%2F%2Fdbpedia.org%2Fproperty > %2Fabstract%3E+%3Fabstract.+FILTER+langMatches%28+lang%28%3Fabstract > %29%2C+%27en%27%29+%7D > > Alas, this is the encoded version of the /latter/ query only. The > two have different forms, and thus should have different encodings. > The encoding of the first should encode the "%" in the resource URI > as "%25", so that your encoded query is: > > SELECT+%3Fabstract+WHERE+%7B+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource > %2FToronto%252C_Ohio%3E+%3Chttp%3A%2F%2Fdbpedia.org%2Fproperty > %2Fabstract%3E+%3Fabstract.+FILTER+langMatches%28+lang%28%3Fabstract > %29%2C+%27en%27%29+%7D%0D > > Note that you can get this from SNORQL directly by grabbing the > contents of the URL after ?query= > > Hope that helps :) > > Cheers, > Peter
Appreciate the help Peter. Should have caught that one myself. Next time.... Also, thanks for the tip re: SNORQL URLs Best, Matthew ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Dbpedia-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
