Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Page Tree
rootTUP:Bean Session
The [Bean Session|http://dlt-dev.ncsa.uiuc.edu/javadoc/t2/current/org/tupeloproject/kernel/BeanSession.html] is Tupelo's stateful class to manage mapping java bean properties to and from RDF. It provides a higher level of abstraction than[Thing Session|http://dlt-dev.ncsa.uiuc.edu/javadoc/t2/current/org/tupeloproject/kernel/ThingSession.html] and shares a very similar API.

Quick summary of features

Bean Session has a variety of features. A short list is given here for reference.

  • Bean sessions are fully compatible with Tupelo's Contexts.
  • Each bean is associated with an RDF subject.
  • Beans are not required to be altered in any way to be used with the system as long as they have supported property types.
  • The mappings between beans and RDF predicates may be customized, allowing great flexibility.
  • Tools for generating and working with RDF vocabularies. A great deal of the work making mappings can be done automatically.

Working with new beans

[bean mapping|http://tupeloproject.ncsa.uiuc.edu/node/67] is specified and added to the session for use. A bean is then registered if new, meaning it is associated with a subject and the session will track changes to it, or if it has already been serialized, it is fetched.

...