You are viewing an old version of this page. Return to the latest version.
External Data
-
- Last edited 6 years ago by Angelika
-
-
- No status information
Extension: External Data
Overview | |||
---|---|---|---|
Description: | Allows for using and displaying values retrieved from various sources: external URLs, local wiki pages and local files (in CSV, GFF, JSON and XML formats), database tables, and LDAP servers. | ||
State: | stable | Dependency: | MediaWiki |
Developer: | Yaron Koren, and others | License: | - |
Type: | MediaWiki | Category: | Rich Articles |
Edition: | BlueSpice free | ||
Features
Allows for retrieving structured data from external URLs, databases and other sources
The ExternalData extension allows MediaWiki pages to retrieve, filter, and format structured data from one or more sources. These sources can include external URLs, regular wiki pages, uploaded files, files on the local server, databases or LDAP directories.
Parser functions[<a href="https://www.mediawiki.org/w/index.php?title=Extension:External_Data&action=edit§ion=1" title="Edit section: Parser functions">edit]
The extension has nine parser functions:
- #get_web_data retrieves CSV, GFF, JSON or XML data from a URL and assigns it to variables that can be accessed on the page.
- #get_soap_data retrieves data from a URL via the SOAP protocol.
- #get_file_data retrieves data from a file on the local server, in the same formats as #get_web_data.
- #get_db_data retrieves data from a database.
- #get_ldap_data retrieves data from an LDAP server.
- #external_value displays the value of any such variable.
- #for_external_table cycles through all the values retrieved for a set of variables, displaying the same "container" text for each one.
- #store_external_table cycles through a table of values, storing them as semantic data via the Semantic MediaWiki extension, by mimicking a call to SMW's #subobject function for each row.
- #display_external_table cycles through all the values retrieved for a set of variables, displaying each "row" using a template.
- #clear_external_data erases the current set of retrieved data.
Source: mediawiki