Relationship between several content types

Events happening in the community are now at Drupal community events on www.drupal.org.
alejandrodf's picture

Hi guys,

I'm developing my first website with Drupal, which is a sematic website. I learnt to use Joomla three years ago. I have experience with CMS, so I hope the learning curve with Drupal won't be hard :)

I would like to know if you think this is possible to do with a semantic drupal website or if you know a better way to do it.

I have 4 content types:
- Members: People of a work group (name, description, role, email, phone, address)
- Publications: Articles written by one or more members. The publications are related with the projects (Name, authors, year, link to a bibtext file)
- Projects: Projects where members works (name, description, project website link, list of resources)
- Resources: Applications related with the projects (name, description, link)

With RDF I would like to relate:
- Members with their publications
- Publications of a project
- Resource created in a Project
- Resources develop by members

I'm using schema.org/Person to describe the members of the team. I have thought I should use Node Reference to say that "this member is the author of this publication". Do you think this is right? I realized that if I use Node Reference I can only select a publication in a cck field. I would like to select more than one in the same cck field. is this possible?.

Thanks in advanced for your help :)

Comments

I've recently been looking

kehan's picture

I've recently been looking into this. I would point you towards http://drupal.org/project/biblio for a fairly good bibliography module, and also the relation module (http://drupal.org/project/relation) which lets you define semantic relationships between content types in place of Node Reference.

Unfortunately, Relation

linclark.research's picture

Unfortunately, Relation module doesn't integrate with the RDF mapping API. This means it cannot be used for RDF output using the core API.

You can use Node Reference for the relations between nodes.

You should be able to set Node Reference to hold Unlimited values. The RDFa will be output properly (or should be unless there is a bug with node reference's field output, which I don't think there is).

If you are interested in more info about how RDFa output for fields work, there is a section of a post on my blog that explains a little more, http://lin-clark.com/blog/theming-html5-and-rdfa-drupal-7#rdfa-for-fields

Hi kehan and

alejandrodf's picture

Hi kehan and lin,

[kehan]

Biblio is an amazing module to show the publications. I'm going to check if it's compatible with RDF so I could use it in my project. Do you know if I can create references using Node Reference instead of Relation?

Thanks for the info :)

[linclark]
I have been searching how to used unlimited values, but I can't find it. The module don't have configuration options and in the CCK there is no option to choose for Unlimited. Maybe I need an extra module? I have been googling and I found this widget http://drupal.org/project/node_widget but it's only for Drupal 6.

I usually visit your blog and your youtube channel. I have learned a lot of semantic website in Drupal with your work :) Thanks for your help!

I'm using node references in

scor's picture

I'm using node references in Drupal 7 on several sites and they definitely allow multiple references (see screenshot of field settings). Make sure you are using the right module: http://drupal.org/project/references (tested with beta3).

Edit: and node reference will also out put RDFa as long as you set an RDF mapping using the RDF UI.

I just tested, node reference

linclark.research's picture

I just tested, node reference does give you the Number of values dropdown when you are configuring the field. That is where you can set the number of values to unlimited. If it doesn't work for you, try the dev version of node reference.

You're welcome, glad to hear it's helped :)

oh yeah! I found it! Thanks

alejandrodf's picture

oh yeah! I found it!

Thanks scor an lin.

Finally I have used Node

alejandrodf's picture

Finally I have used Node References to create the relations between nodes. I have also try to use Biblio but I get some problems with EntityWrapper, so I decided to use my own CCK class which has less features but works fine with RDF :)

The module "Corresponding node references" http://drupal.org/project/cnr is a great option to syncs the node reference between two node types.

That's enough for today!

Semantic Web

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: