Ticket #27 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

rdfBest descriptor

Reported by: http://openvest.myopenid.com/ Owned by: http://openvest.myopenid.com/
Priority: major Milestone: RDFAlchemy 0.2
Component: rdfAlchemy Keywords: descriptor
Cc: bdarcus.lists@… Billing Source:
Max Authorized Hours:

Description

1) localization. If I define, say, dc:title as an rdfSingle, then what happens if I have two title properties, each with a different language tag? Wondering if maybe something like this would be valuable?

title = rdfSingle(DCtitle?, localized=True)

... where by default it would return the property for the current locale, but where one could also specify a language?

Change History

Changed 4 years ago by http://openvest.myopenid.com/

  • owner changed from phil to http://openvest.myopenid.com/
  • status changed from new to assigned
  • cc philip.cooper@… added

something like

rdfBest(self, pred, selectFun, range_type=None) 

where selectFun is a callable Your LocaleSingle descriptor should be rdfBest with a "stock" selectFun.

Changed 4 years ago by http://openvest.myopenid.com/

This and an rdfLocale descriptor in changeset:127

Changed 4 years ago by http://openvest.myopenid.com/

  • status changed from assigned to closed
  • resolution set to fixed

fixed in changeset:127

Note: See TracTickets for help on using tickets.