RDF integrated into web forms

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
kjenkins's picture

Greetings,

I've been reading a lot about integrating RDFa into XHTML web pages. What I don't see much about is how to handle complex web forms. The idea would be to create text field and select list values that will print out submitted form data within meaningful RDFa containers. Can we do this in Drupal yet with any of the rdf modules? Can anybody share examples of the source code of a form that is RDFa enabled? My guess is that we can create very powerful forms doing so.

Cheers
Kevin

Comments

RDF CCK

linclark.research's picture

Hi Kevin,

You can set up a CCK content type and then map the fields to RDF with the module RDF CCK. This module can also output RDFa if the setting is enabled.

I demonstrated this for my boss recently. If you go to http://www.lin-clark.com/rdf-faculty-db/sparql, you can see how it works. Around the content of the first name, you will see the RDFa property foaf:firstName, etc. You can also try out the form yourself, just log in as user demo, password demo and add some content. When it saves, the tags around the content will have the appropriate RDFa property attributes.

(You can read more about the way I proposed to use RDFa in Drupal here, if you are interested: http://www.lin-clark.com/blog/universities-rdf)

-Lin

Hi Lin, I appreciate you

kjenkins's picture

Hi Lin,

I appreciate you taking the time to respond to my topic so I wanted to get back to you on your comment. Thanks for the information, I do use RDF CCK and think its a wonderful module. While I understand that we can define properties with it, my topic had more to do with creating dynamic RDF wrappers based on form data such as select lists. For example, we can only define the property 'city' for a list of cities. What I would like to do, is be able to assign a property to each item in the list. So the output page would for example have an RDF wrapper for Los Angeles or New York, rather than a generic wrapper for city. I think this capability is very important. We can't do it yet with any of the drupal modules. Scor did include a link to the PushBack project which is exactly what I'm talking about. If you haven't check it out yet you should at http://esw.w3.org/topic/PushBackDataToLegacySources#head-1ed692d3f30fd62.... I think it is a good project to check out if you're into semantic web developments. Cheers, Kevin

Instance linkage

scor's picture

What I would like to do, is be able to assign a property to each item in the list. So the output page would for example have an RDF wrapper for Los Angeles or New York, rather than a generic wrapper for city.

What you are trying to do is something different than what RDF CCK was built for, and the logical next step after linking internal properties to external ones (which is what RDF CCK/evoc do). You want to link objects (list items) to instances URI while keeping the same wrapper for all the cities (e.g. foaf:based_near for instance). I demoed such a CCK module while at DC, but it is still sitting on my local machine. I'll have to publish on d.o sometime.

that's very cool that you

kjenkins's picture

that's very cool that you already have some work in progress on your local machine. i'd be very interested in experimenting with it when you reach that point. Thanks for the great rdf modules. Cheers, Kevin

Pushback and RDForms

scor's picture

You could look into some related work such as Pusback which goes one step further and turn the current 'read-only' Semantic Web into a read/write Semantic Web. It is based on RDForms which I think is what you might be looking for.

that's exactly what i'm

kjenkins's picture

that's exactly what i'm talking about scor. but is this an option with drupal? K

That's not available today

scor's picture

That's not available today for Drupal, but hopefully it will be soon. I know some of my colleagues are working on some wrappers for Flickr and delicious for example.

Automatic objects ?

chvlad's picture

You can set up a CCK content type and then map the fields to RDF with the module RDF CCK. This module can also output RDFa if the setting is enabled.

Can this module (or other) automaticaly generate drupal material types from RDF description ( from classes & it's propities) ?

Semantic Web

Group organizers

Group notifications

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

Hot content this week