When i wrote j b my assumption was all objects have a type. U can give the property a type uri , itll just load tje uri..
Sent from my HTC
-----Original Message-----
From: uoccou <
uoc...@googlemail.com>
Sent: 01 May 2010 5:07 AM
To: jenabean-dev <
jenabe...@googlegroups.com>
Subject: Re: NotBoundException
Gentle bump....
BTW - thanks for creating JenaBean - as I learn my way thru it, trying
to break it :-) its becoming more useful and exciting. Im looking
forward to combining my object model with jena inferencing over
ontologies. Its the future.....
Any "powered by" graphics for when my PoC turns into a real product ?
On Apr 26, 8:25 pm, Taylor Cowan <
thewebseman...@gmail.com> wrote:
> Got the message, looks familiar, I'll have some input shortly.
>
>
>
> On Mon, Apr 26, 2010 at 5:59 AM, uoccou <
uoc...@googlemail.com> wrote:
> > Stepping thru the source code I see that in
> > private Class<?> javaclass(Resource source, Class<?> c)
>
> > when this is called with source with nodeURIhttp://
uoccou.wordpress.com
> > - object of the foaf:homepage property the iterator retrieved from the
> > call
> > StmtIterator it = source.listProperties(RDF.type);
>
> > is empty
>
> > The Model doesnt contain any information about the resource at that
> > URI, so it doesnt attempt to check if it isAssignableFrom the declared
> > class, the method throws a NotBoundException and nothing gets loaded.
>
> > So, if I catch the exception in applyProperties I can at least get
> > some of the data back.
> > private void applyIndividual(ValuesContext ctx, Resource i) {
> > try {
> > ctx.setProperty(toObject(ctx.type(), i));
> > } catch (NotBoundException nbe){
> > System.err.println("That resource cant be bound : " + i);
> > }
> > }
>
> > In doing so, I can see that any subject with an object which is an
> > external URI has this problem. Ideally, something would be returned
> > here, at least a URI. I tried getting the foaf classes to extend Thing
> > and the javaclass method to return Thing when no properties are found,
> > but it starts getting messy. Is there anything that can be done h
[The entire original message is not included]
--
You received this message because you are subscribed to the Google Groups "jenabean-dev" group.
To post to this group, send email to
jenabe...@googlegroups.com.
To unsubscribe from this group, send email to
jenabean-dev...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/jenabean-dev?hl=en.