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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1273450_1_rdfx_link.patch | 679 bytes | scor |
Comments
Comment #1
scor commentedThis 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.