W3C home > Mailing lists > Public > www-archive@w3.org > April 2004

Re: RDFQ paragraph in QL chapter

From: Patrick Stickler <patrick.stickler@nokia.com>
Date: Thu, 15 Apr 2004 17:07:08 +0300
Message-Id: <2E8C30AE-8EE6-11D8-B5C8-000A95EAFCEA@nokia.com>
Cc: "www-archive@w3.org" <www-archive@w3.org>, phayes@ihmc.us, ext Chris Bizer <chris@bizer.de>, Jeremy Carroll <jjc@hplb.hpl.hp.com>
To: "ext Chris Bizer" <bizer@gmx.de>


On Apr 15, 2004, at 16:48, ext Chris Bizer wrote:

>
> Hi Patrick,
>
>>>
>>> \section{Query Languages}
>>> There are currently two query languages for Named Graphs:
>>> RDFQ~\cite{StricklerRDQL}
>>
>> {SticklerRDFQ} ?
>
> 32. P. Strickler. RDFQ. http://sw.nokia.com/rdfq/RDFQ.html, 2004

I.e., that should be "Stickler", not "Strickler"

(see my sig below...  ;-)


> Wouldn't it be nice, if you would use the same query as I did with 
> TriQL
> based on the TriG example from Section 3. Then people could easily 
> compare
> both languages.


The following RDFQ query (serialized using Turtle~\cite{turtle})
identifies people having email addresses, selecting and extracting
the person identifier and email address value pairs; furthermore, the
query is restricted to statements occurring in graphs asserted by
Chris after January 31, 2003:

\begin{rdfenv}

@prefix :     <http://sw.nokia.com/RDFQ-1/> .
@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
@prefix ex:   <http://www.example.org/exampleVocabulary/> .
@prefix doc:  <http://www.example.org/document/> .

[:select ("person" "email");
  :graph  [ex:author doc:Chris; ex:date [:gt "2003-01-31"^^xsd:date]];
  :target [:id "person"; ex:email [:id "email"]]].

\end{rdfenv}

(note that you forgot to declare xmlns:xsd in your example...)

OK?

Patrick

--

Patrick Stickler
Nokia, Finland
patrick.stickler@nokia.com
Received on Thursday, 15 April 2004 10:07:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:17:42 GMT