diff options
Diffstat (limited to 'www/api/export_sioc.php')
-rw-r--r-- | www/api/export_sioc.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/www/api/export_sioc.php b/www/api/export_sioc.php index 746d0ea..90713e7 100644 --- a/www/api/export_sioc.php +++ b/www/api/export_sioc.php @@ -1,12 +1,12 @@ <?php -/* Export data with semantic format (SIOC: http://sioc-project.org/, FOAF, SKOS, Annotea Ontology) */
-
-require_once('../header.inc.php'); -header('Content-Type: text/xml; charset=utf-8'); //we change headers html defined in headers.inc.php
+/* Export data with semantic format (SIOC: http://sioc-project.org/, FOAF, SKOS, Annotea Ontology) */ -/* Service creation: only useful services are created */
-$userservice =& ServiceFactory::getServiceInstance('UserService'); -$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService'); +require_once '../../src/SemanticScuttle/header.php'; +header('Content-Type: text/xml; charset=utf-8'); //we change headers html defined in headers.inc.php + +/* Service creation: only useful services are created */ +$userservice =SemanticScuttle_Service_Factory::getServiceInstance('User'); +$bookmarkservice =SemanticScuttle_Service_Factory::getServiceInstance('Bookmark'); ?> <?php echo "<?xml version=\"1.0\" encoding=\"utf-8\"\n?>"; ?> |