You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by SOULLARD Clement <cl...@renault.com> on 2003/09/10 14:41:13 UTC

I don't understand RDF

Hello,

I'm new to turbine and thought it look very powerfull I find it quite 
hard to find information about the concepts of turbine. So, this is my 
first question is there another tutorial that tdk explaining at the same 
time the concepts of turbine ?

Second question, what kind of apps are interested by this framework, is 
it a restricted to Secure Data Management Apps or any app using model 2 
is concerned by turbine.

And my last question is very precise.
In the sample app a table named RDF is created. Does it contain turbine 
data or only the apps data ?
I ask this question because when I tried to rename the table in the 
sample app, I have

TorqueException: The table RDF does not have a proper entry in the ID_TABLE.

Is RDF a component of turbine or a part of my app ?

Thank you,


Re: I don't understand RDF

Posted by Brad Oaks <br...@earthlink.net>.
SOULLARD Clement wrote:

> And my last question is very precise.
> In the sample app a table named RDF is created. Does it contain 
> turbine data or only the apps data ?
> I ask this question because when I tried to rename the table in the 
> sample app, I have
>
> TorqueException: The table RDF does not have a proper entry in the 
> ID_TABLE.
>
> Is RDF a component of turbine or a part of my app ?

Hello,

I think I can answer this part of your post, but I'll leave the rest to 
more experienced folk.

If you look at the contents of ID_TABLE, there is a row for the table 
RDF.  You'll need to change the TABLE_NAME for that row.  There are lots 
of other places in the templates sql source, and java source where 
you'll need to change  RDF, Rdf, and rdf to your new table name.  Below 
is what my ID_TABLE looks like:

> mysql> select * from ID_TABLE;
> +-------------+-------------------------+---------+----------+
> | ID_TABLE_ID | TABLE_NAME              | NEXT_ID | QUANTITY |
> +-------------+-------------------------+---------+----------+
> |         101 | TURBINE_PERMISSION      |    1000 |       10 |
> |         102 | TURBINE_ROLE            |    1000 |       10 |
> |         103 | TURBINE_GROUP           |    1000 |       10 |
> |         104 | TURBINE_ROLE_PERMISSION |    1000 |       10 |
> |         105 | TURBINE_USER            |    1000 |       10 |
> |         106 | TURBINE_USER_GROUP_ROLE |    1000 |       10 |
> |         107 | TURBINE_SCHEDULED_JOB   |    1000 |       10 |
> |        1101 | INDIVIDUAL              |    1000 |       10 |
> +-------------+-------------------------+---------+----------+
> 8 rows in set (0.00 sec)

So the RDF table is data for your application which can be changed.  But 
ID_TABLE which is a component of turbine needs to know the name of this 
table.

In playing with the latest TDK, I've modified the newapp-schema.xml with 
a new table name.  This is before running the "ant init" of the 
application.  Doing the change at this point lets turbine build the "om" 
classes with the new table name.  There is still a fair amount of 
editing left to do in the templates and java files.  Good luck from 
another relatively fresh turbine user!

--bradoaks.


Re: I don't understand RDF

Posted by Eric Emminger <er...@ericemminger.com>.
> I'm new to turbine and thought it look very powerfull I find it quite 
> hard to find information about the concepts of turbine. So, this is my 
> first question is there another tutorial that tdk explaining at the same 
> time the concepts of turbine ?

Search the list archives. I've seen some mentioned, but I've never 
looked at them.

> 
> Second question, what kind of apps are interested by this framework, is 
> it a restricted to Secure Data Management Apps or any app using model 2 
> is concerned by turbine.

You can build anything you want. It's just a framework. Bug trackers and 
web sites are two examples.

> 
> And my last question is very precise.
> In the sample app a table named RDF is created. Does it contain turbine 
> data or only the apps data ?
> I ask this question because when I tried to rename the table in the 
> sample app, I have
> 
> TorqueException: The table RDF does not have a proper entry in the 
> ID_TABLE.
> 
> Is RDF a component of turbine or a part of my app ?

As Brad said, RDF is part of the sample app. To make changes to data 
objects, including renaming them, you have to change your 
<project>-schema.xml file and make Torque regenerate your model. Read up 
on Torque.

Eric