Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Can this module be used tag nodes with RDF terms as attributes of nodes, same way as nodes can be tagged with taxonomy terms?
Comments
Comment #1
mgodfrey CreditAttribution: mgodfrey commentedAt the moment you have two options for attaching RDF tuples to nodes: You can do it manually, or you can do it in code. Taxonomy, meanwhile, has an entire user interface built up for a variety of tasks.
Manually, you can use the form at admin/content/rdf/add. The subject is the URI of your node, the predicate is your "tag type," and the object is another URI, or some other content as specified by your RDF schema.
The API call to insert a new rdf statement is rdf_insert, and the API call to remove an existing rdf statement is rdf_delete. They work about the same as the manual form. With taxonomy, the equivalent functions would be a bit harder to find on your first try.
To find the tuples attached to a given node, the easiest API call for that seems to be rdf_query.
Comment #2
jmiccolis CreditAttribution: jmiccolis commentedI'm working on a UI to allow for relating nodes to RDF metadata that is based on the relations module. I have something preliminary working, and if it looks like it would be generally useful I'm going to submit it as a patch to that module. I'll be sure to post back is if/when that happens.
Comment #3
jmiccolis CreditAttribution: jmiccolis commentedI've written a proof-of-concept module to which lets you store a relationship between a node on your drupal site and a URI that has a dc:title statement in the RDF module's tables.
The module is here http://svn3.cvsdude.com/devseed/sandbox/drupal-6/relations_rdf/ I'm looking to suggestions as the best way to move forward with it and feedback as to how useful it would be.
Comment #4
no2e CreditAttribution: no2e commented(subscribing)
Comment #5
scor CreditAttribution: scor commentedI wrote the RDF CCK module which allows CCK fields to be mapped to RDF properties. In your case you would use nodereference field, though the RDF CCK module is generic and applies to any type of CCK field. It features an autocomplete mapping mechanism which makes it easier to choose the right mappings from imported vocabularies (via the evoc module).
Comment #6
drewish CreditAttribution: drewish commentedsubscribing... i've found the relations module to be... incomplete at best.
Comment #7
mitchell CreditAttribution: mitchell commentedAutoRDF is a new project for automatically tagging content.
Comment #8
smustgrave CreditAttribution: smustgrave at Mobomo commented