OK, that works, but I would really like to do
the following:
PREFIX property: <http://dbpedia.org/property/>
SELECT ?x ?abstract
WHERE
{
?x property:abstract ?abstract.
FILTER regex(?abstract, "(?i)engine"@en).
}
so I could get all references for "engine"
such as "jet engine"
"steam engine"
"rocket engine"
"search engine"
but when I try the above I get a 500 error???
-John
-----Original Message-----
From: Richard Cyganiak [mailto:[email protected]]
Sent: Tuesday, December 15, 2009 12:43 PM
To: John Abjanic
Cc: [email protected]
Subject: Re: [Dbpedia-discussion] problem with SPARQL query
Hi John,
Try "Jet engine"@en. The literal has an RDF language tag to indicate
that it's the English label.
Best,
Richard
On 15 Dec 2009, at 19:47, John Abjanic wrote:
> Hello all,
>
> I am trying to do the following:
>
> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
>
> SELECT ?label ?x
> WHERE
> {
> ?x rdfs:label ?label.
> ?x rdfs:label "Jet engine"
>
> }
>
>
> and I get no results
> but when I try:
>
> SELECT ?s ?p ?o
> WHERE {
> ?s ?p ?o.
> FILTER(?s = <http://dbpedia.org/resource/Jet_engine> ).
> }
>
> I get results and there is label for "Jet engine"
>
> http://dbpedia.org/resource/Jet_engine
> http://www.w3.org/2000/01/rdf-schema#label
> Jet engine
>
>
>
>
> Why does the 1st SPARQL not work right?
>
> Thanks, John
>
------------------------------------------------------------------------
------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast
> and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> Dbpedia-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion