Issue #2030953 by webflo: Fixed Remove node_rdf_mapping().
parent
50e2c7e934
commit
e855a496a7
|
@ -500,53 +500,6 @@ function node_type_update_nodes($old_id, $new_id) {
|
||||||
->execute();
|
->execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Implements hook_rdf_mapping().
|
|
||||||
*/
|
|
||||||
function node_rdf_mapping() {
|
|
||||||
return array(
|
|
||||||
array(
|
|
||||||
'type' => 'node',
|
|
||||||
'bundle' => RDF_DEFAULT_BUNDLE,
|
|
||||||
'mapping' => array(
|
|
||||||
'rdftype' => array('sioc:Item', 'foaf:Document'),
|
|
||||||
'title' => array(
|
|
||||||
'predicates' => array('dc:title'),
|
|
||||||
),
|
|
||||||
'created' => array(
|
|
||||||
'predicates' => array('dc:date', 'dc:created'),
|
|
||||||
'datatype' => 'xsd:dateTime',
|
|
||||||
'callback' => 'date_iso8601',
|
|
||||||
),
|
|
||||||
'changed' => array(
|
|
||||||
'predicates' => array('dc:modified'),
|
|
||||||
'datatype' => 'xsd:dateTime',
|
|
||||||
'callback' => 'date_iso8601',
|
|
||||||
),
|
|
||||||
'body' => array(
|
|
||||||
'predicates' => array('content:encoded'),
|
|
||||||
),
|
|
||||||
'uid' => array(
|
|
||||||
'predicates' => array('sioc:has_creator'),
|
|
||||||
'type' => 'rel',
|
|
||||||
),
|
|
||||||
'name' => array(
|
|
||||||
'predicates' => array('foaf:name'),
|
|
||||||
),
|
|
||||||
'comment_count' => array(
|
|
||||||
'predicates' => array('sioc:num_replies'),
|
|
||||||
'datatype' => 'xsd:integer',
|
|
||||||
),
|
|
||||||
'last_activity' => array(
|
|
||||||
'predicates' => array('sioc:last_activity_date'),
|
|
||||||
'datatype' => 'xsd:dateTime',
|
|
||||||
'callback' => 'date_iso8601',
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads node entities from the database.
|
* Loads node entities from the database.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue