On 05/08/11 05:50, Andrew Young wrote:
Guys

Why do I get an empty ResultSet with queryString3 but I get the correct, 
non-empty ResultSet with queryString4?

Using NetBeans 6.8, Jena 2.6.4 both UTF-8

String queryString3 =
                 "PREFIX :<http://process/ontology1#>"
                 + " SELECT ?process"
                 + " WHERE{ ?process :Title \"Design System\"."
                 + "}";

String queryString4 =
                 "PREFIX :<http://process/ontology1#>"
                 + " SELECT ?process"
                 + " WHERE{ ?process :Title ?title."
                 + " FILTER (?title = \"Design System\")."
                 + "}";

regards,
Andy Young

What's in the data?
What's the storage layer?

If "Design System" is actually "Design System"^^xsd:string in the data AND you are using a database of some kind, then they do not match in pattern matching (different terms) but match by FILTER (same value).

BTW, this is likely to change in the next RDF. All "abc" will really be "abc"^^xsd:string. But that working group is a long way from final publication.

        Andy

Reply via email to