Do you have too many quotes ' '  " " around Louisiana?

(unfortunately can't test now as the endpoit seems to be down)

Best
Pablo
On Oct 23, 2011 6:39 PM, "Lushan Han" <[email protected]> wrote:

> Hi,
>
> I have been trying to run the following sparql query on
> http://dbpedia.org/sparql but failed to get any result. Could someone tell
> me why?
>
> PREFIX dbo: <http://dbpedia.org/ontology/>
>
> SELECT DISTINCT ?x, ?z, ?y WHERE {
>   ?z a dbo:Organisation .
>   ?y a dbo:RadioStation .
>   ?0 rdfs:label ?label0 .
>   ?label0 bif:contains '"Louisiana"' .
>   ?x dbo:state ?0 .
>   ?y dbo:city ?x .
>   ?y dbo:owner ?z .
> }
>
> Instead, if I don't use the bif:contains function, the query works, as
> shown below
>
> PREFIX dbo: <http://dbpedia.org/ontology/>
> PREFIX db: <http://dbpedia.org/resource/>
>
> SELECT DISTINCT ?x, ?z, ?y WHERE {
>   ?z a dbo:Organisation .
>   ?y a dbo:RadioStation .
>   ?x dbo:state db:Louisiana .
>   ?y dbo:city ?x .
>   ?y dbo:owner ?z .
> }
>
> However, it seems the bif:contains works for some other queries.
>
> Many thanks,
> Lushan Han
>
>
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> Dbpedia-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>
>
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to