List Info

Thread: Pagination and handling subproperties




Pagination and handling subproperties
country flaguser name
Spain
2007-05-26 06:32:20
Hi, a couple of doubts
 
1: I wonder how I could paginate my resources for the view.
I know in my controller I can do something like:
FOAF:Person.find :all, :limit =>15
But I don’t really know how to apply this on my views afterwards.
 
2: I have a property with subproperties. I’ve managed to obtain the subproperties with:
o_super = Namespace.lookup(:obi, :irisProperty)   
results = Query.new.select(:s).where(:s,RDFS::subPropertyOf,o_super).execute
However, you already have a subproperties() method. Trying to use it:
resource = Namespace.lookup(:obi, :irisProperty)
results = $db.subproperties(resource)
This does not work. Suggestions?
 
(3: Thanks for the property issue, it’s not the first time I have problems with the uppercase stuff, with the names.)
 
Lots of thanks.



¡Descubre una nueva forma de obtener respuestas a tus preguntas!
Entra en Yahoo! Respuestas.
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )