Closed (fixed)
Project:
RDF Extensions
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2011 at 15:26 UTC
Updated:
17 Aug 2011 at 16:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedOne potential problem I see is that 'node' is hardcoded in rdf_mappings_features_rebuild. I doubt whether this is the cause of the problem, but something to note.
Comment #2
scor commentedthat is a known missing feature, see comment in rdf_mappings_features_export_options()
Comment #3
Anonymous (not verified) commentedWhat would be the first step in making this a non-missing feature?
Comment #4
Anonymous (not verified) commentedI think I figured out the first step. Will post a patch when it's ready.
Comment #5
Anonymous (not verified) commentedThis patch gets as far as exporting the mapping. It still needs some work to update rdf_mappings_features_revert() and rdf_mappings_features_rebuild()
Comment #6
Anonymous (not verified) commentedPatch attached.
Comment #7
scor commentedThis should clash is there are bundles with the same machine name in different entity types. we need to have a unique key here like entity-bundle. The label should also reflect that, e.g. "Node: Article".
Comment #8
Anonymous (not verified) commentedThanks for mentioning that, good thinking. This works using the compound key.
Comment #9
Anonymous (not verified) commentedWhoops, there was a line left in there that I meant to delete but just uncommented by accident.
Comment #10
scor commentedLooking good.
minor nitpick:
I find bundle_type confusing... bundle_name would be more accurate and in line with core conventions.
Comment #11
Anonymous (not verified) commentedbundle_name it is, then :)
Comment #12
Anonymous (not verified) commentedForgot to load $rdf_mapping in the first function. This doesn't seem to be needed, so I'm not sure whether we should take it out and just load the mapping in the render function or not.
Also, this adds the fix to the last function.
Comment #13
scor commentedThe syntax in the feature's .info file also needs to be updated to include the entity type.
Comment #14
Anonymous (not verified) commentedI'm not sure what change you made there. Can you highlight the code in a comment?
Comment #15
scor commentedComment #16
scor commentedComment #17
Anonymous (not verified) commentedI'm confused as to what you mean here.
Comment #18
scor commentedplease generate a feature with #12 and inspect the .info file. the feature elements are not right and do not contain the bundle name. The $export array in rdf_mappings_features_export() can only have three levels of nesting (any deeper element will be lost).
Comment #19
Anonymous (not verified) commentedAh, ok, I get what you were saying now.
Works like a charm for me.
Comment #20
scor commentedGlad it works Lin. Clay was also able to test it on IRC.
Fixed with http://drupalcode.org/project/rdfx.git/commit/8b2df89
Comment #21.0
(not verified) commentedforgot <