Artsdata Shortcodes
Wordpress plugin for Artsdata
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/culturecreates/artsdata-shortcode/archive/refs/heads/master.zipWordpress shortcodes for Artsdata
This is a Wordpress plugin that adds shortcodes for retrieving and displaying data from Artsdata and Wikidata in a WordPress site. This plugin is currently only used to power the CAPACOA LIVE directory, but it could be used to power other kinds of directories on WordPress websites.
The 3 shortcodes are:
- [artsdata_orgs] => lists organization names from Artsdata located in a source graph
- [artsdata_id] => displays details of a specific entity using ranked graphs from Artsdata
- [artsdata_admin] => displays buttons for admin to reload CAPACOA database or reload data from Wikidata (https://capacoa.ca/en/artsdata-admin/)
How to install
- Download the zip file in the release
- Open WP Admin
- Navigate to the Plugins panel
- Click "Add New"
- Click "Upload Plugin"
- Activate the plugin
Sample member profile generated by the plugin
Logic for retrieving venue information from Wikidata
The required triples for retrieving venue information are desribed in this diagram:
Trouble shooting
The following URLs can be used to test data without passing through a cache.
-
Example Organization in JSON National Arts Centre (K14-29) http://api.artsdata.ca/query?adid=K14-29&sparql=https://raw.githubusercontent.com/culturecreates/artsdata-shortcode/refs/heads/master/public/sparql/member_detail.sparql&frame=https://raw.githubusercontent.com/culturecreates/artsdata-shortcode/refs/heads/master/public/frame/member.jsonld&format=json
-
Example Person in JSON Richard Stoker (K14-141) http://api.artsdata.ca/query?adid=K14-141&sparql=https://raw.githubusercontent.com/culturecreates/artsdata-shortcode/refs/heads/master/public/sparql/member_detail.sparql&frame=https://raw.githubusercontent.com/culturecreates/artsdata-shortcode/refs/heads/master/public/frame/member.jsonld&format=json
-
Example Events for a member Events where National Arts Centre (K14-29) is an organizer. http://api.artsdata.ca/events.json?frame=event_location&predicate=schema:organizer&object=adr:K14-29
Local Wordpress Development
- Clone this repo
- Edit docker-compose.yml to set your
volumespath to your local path for editing the plugin code. - Run
docker compose up & - Note: To view social media icons add the following line to artsdata-shortcodes.php
wp_enqueue_style('font-awesome', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');
Releases
Newest 25 of 48 recorded releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.