Entity API does not yet supports link.module but there is a patch: #1079782-7: support hook_entity_property_info().

Even wit this patch applied, RDFx does not work out of the box because the link module uses its own url key for storing the link URI.

CommentFileSizeAuthor
#1 1273450_1_rdfx_link.patch679 bytesscor

Comments

scor’s picture

Status: Active » Needs work
StatusFileSize
new679 bytes

This patch adds the 'url' key in the EntityStructureWrapper case of rdfx_get_rdf_model(). It feels like a hack, and I'm not sure at this point if there is a better way of doing this. A caveat is that the link value is added as a literal in rdfx_add_statement() because entity API types it as a EntityValueWrapper. EntityDrupalWrapper would yield a proper RDF resource, maybe we can convince the Entity maintainers to fix that. Still, a literal is better than no link at all for now...

It's probably best to wait until there is a proper support for Entity API before looking for the ideal solution.