Any way to define @Namespace globally?

4 views
Skip to first unread message

Andrey

unread,
Aug 1, 2011, 9:37:09 AM8/1/11
to jenabean-dev
Hi,

There's a good "Quick start" example that shows how to save objects to
a clean ontology. Fine. Now I want to use my existing ontology
"schema" and fill it with individuals. By default Jenabean creates new
ontology classes with generated names - I've been able to workaround
this by adding @Namespace annotation that matches my ontology base.
But looks like I need to add them for every class of mine. That's
inconvenient, because in 99% use cases those namespaces are similiar
for all classes. Is there a way to define Namespace globally, so that
I don't have to add it everywhere? (it seems like this should be a
property of Bean2RDF)

Thanks,
Andrey

thewebs...@gmail.com

unread,
Aug 10, 2011, 3:48:25 PM8/10/11
to jenabean-dev
Hi Andrey,

There is not way to do this today, globally defining a namespace.
Should the global namespace coincide with the package, one to one per
package?

Please give me some ideas on how you'de like that to work and I'll
devote a little time to providing it.

Taylor
Reply all
Reply to author
Forward
0 new messages