W3C home > Mailing lists > Public > public-sparql-dev@w3.org > July to September 2009

Retrieving all classes

From: On Lee <onlee2000@hotmail.com>
Date: Fri, 14 Aug 2009 08:52:31 -0700
Message-ID: <BAY104-DAV475E0FD220FB85D9F3E7FA0020@phx.gbl>
To: <public-sparql-dev@w3.org>
Message-ID: <003f01ca1cf7$3b9f35b0$b2dda110$@com>
I am reading "A Semantic Web Primer, Second Edition" book. One of the
examples (page 105) is

 

PREFIX rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 

PREFIX rdfs:    <http://www.w3.org/2000/01/rdf-schema#> 

 

 SELECT  ?c 

  WHERE {  ?c rdf:type rdfs:Class .  }

 

It says that it will retrieve all classes.

 

But when I executed it on Jena 2.6.0. It returned nothing. What did I do
wrong? I'd appreciate any help/pointer.

 

Thanks in advance for your help.

 

Best,

-- On Lee

 
Received on Sunday, 16 August 2009 10:32:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 16 August 2009 10:32:08 GMT