cyberborean / rdfbeans

Java persistence with RDF
Other
11 stars 12 forks source link

Try binding resolution for other types a resource might have. #19

Closed wherget closed 8 years ago

wherget commented 8 years ago

This PR fixes #18. So long as no matching binding has been found, keep trying to find one for remaining rdf:types of the resource in question.

There might be cases where one binding is to be preferred over another out of multiple available, and this solution only considers the first one it finds. I still think this is better then not finding a binding at all.

wherget commented 8 years ago

I'll be merging this on my own @cyberborean, since I sort-of need it urgently. Hope you don't mind.