Not sure if this is intended or not, so I figured I would ask.

I have added the property dc:title to my story content type title. Now when I go to node/[nid]/rdf the RDF document that is returned has two elements for the title. Here is the doc.

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:site="http://drupal6/ns#" xmlns:sioc="http://rdfs.org/sioc/ns#">
  <site:Story rdf:about="http://drupal6/story/something-about-politics">
    <rdf:type rdf:resource="http://rdfs.org/sioc/ns#Post"/>
    <site:story_Title>Something about politics</site:story_Title>
    <site:story_Body>Body goes here</site:story_Body>
    <site:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2008-08-26T17:47:45Z</site:created>
    <site:changed rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2009-02-20T19:42:01Z</site:changed>
    <dc:title>Something about politics</dc:title>
  </site:Story>
</rdf:RDF>

Is the title field supposed to appear twice with each RDF type? If I give the body a type it appears twice as well. Is this intended?

Comments

scor’s picture

yes this intended. By default the module outputs all the value with a local mapping as well as with the default mapping *if* it is defined. We chose to leave the local mapping in case some people prefer to use. Mapping to external classes might change or be undefined but the local mappings are likely to be more stable. This looks like duplicate data, but multiple mapping such as this one are not uncommon in RDF. (more details are in the paper RDFa in Drupal: Bringing Cheese to the Web of Data).

febbraro’s picture

Status: Active » Closed (works as designed)

Thanks Stéphane.