danielebarchiesi@0: 'Stores custom RDF mappings for user defined content types or overriden module-defined mappings', danielebarchiesi@0: 'fields' => array( danielebarchiesi@0: 'type' => array( danielebarchiesi@0: 'type' => 'varchar', danielebarchiesi@0: 'length' => 128, danielebarchiesi@0: 'not null' => TRUE, danielebarchiesi@0: 'description' => 'The name of the entity type a mapping applies to (node, user, comment, etc.).', danielebarchiesi@0: ), danielebarchiesi@0: 'bundle' => array( danielebarchiesi@0: 'type' => 'varchar', danielebarchiesi@0: 'length' => 128, danielebarchiesi@0: 'not null' => TRUE, danielebarchiesi@0: 'description' => 'The name of the bundle a mapping applies to.', danielebarchiesi@0: ), danielebarchiesi@0: 'mapping' => array( danielebarchiesi@0: 'description' => 'The serialized mapping of the bundle type and fields to RDF terms.', danielebarchiesi@0: 'type' => 'blob', danielebarchiesi@0: 'not null' => FALSE, danielebarchiesi@0: 'size' => 'big', danielebarchiesi@0: 'serialize' => TRUE, danielebarchiesi@0: ), danielebarchiesi@0: ), danielebarchiesi@0: 'primary key' => array('type', 'bundle'), danielebarchiesi@0: ); danielebarchiesi@0: danielebarchiesi@0: return $schema; danielebarchiesi@0: } danielebarchiesi@0: danielebarchiesi@0: /** danielebarchiesi@0: * Implements hook_install(). danielebarchiesi@0: */ danielebarchiesi@0: function rdf_install() { danielebarchiesi@0: // Collect any RDF mappings that were declared by modules installed before danielebarchiesi@0: // this one. danielebarchiesi@0: $modules = module_implements('rdf_mapping'); danielebarchiesi@0: rdf_modules_installed($modules); danielebarchiesi@0: }