From 24669bfb50d643330cd50cbeea21d19d51107a36 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 19 Oct 2009 18:28:16 +0000 Subject: =?UTF-8?q?-=20Patch=20#493030=20by=20scor,=20Stefan=20Freudenberg?= =?UTF-8?q?,=20pwolanin,=20fago,=20Benjamin=20Melan=C3=A7on,=20kriskras,?= =?UTF-8?q?=20dmitrig01,=20sun:=20added=20RDFa=20support=20to=20Drupal=20c?= =?UTF-8?q?ore.=20Oh=20my,=20oh=20my.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/rdf/tests/rdf_test.module | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 modules/rdf/tests/rdf_test.module (limited to 'modules/rdf/tests/rdf_test.module') diff --git a/modules/rdf/tests/rdf_test.module b/modules/rdf/tests/rdf_test.module new file mode 100644 index 000000000..72959705f --- /dev/null +++ b/modules/rdf/tests/rdf_test.module @@ -0,0 +1,44 @@ + array( + 'type' => 'test_entity', + 'bundle' => 'test_bundle', + 'mapping' => array( + 'rdftype' => array('sioc:Post'), + 'title' => array( + 'predicates' => array('dc:title'), + ), + 'created' => array( + 'predicates' => array('dc:created'), + 'datatype' => 'xsd:dateTime', + 'callback' => 'date_iso8601', + ), + 'uid' => array( + 'predicates' => array('sioc:has_creator', 'dc:creator'), + ), + 'foobar' => array( + 'predicates' => array('foo:bar'), + ), + ), + ), + 1 => array( + 'type' => 'node', + 'bundle' => 'blog', + 'mapping' => array( + 'rdftype' => array('sioct:Weblog'), + ) + ), + ); +} -- cgit v1.2.3