Knowledge Space WP Plugin
Provides a plugin for the Wordpress CMS to display data in a 3-dimensional graph.
Development
Installation
- Install a webserver which supports PHP as well as a database.
- Download and setup Wordpress.
- Clone the repository into the WP-directory wp-conntent/plugins.
- Activate the plugin in Wordpress in the admin control page.
- Install dependencies with npm using
npm install
.
Notes
This project uses prettier and eslint. Make sure to configure your IDE to use them.
To run the project run npm run watch
. This starts a parcel instance which automatically builds the project and updates the webserver via HMR.
Datasets Formats
List Spaces - Example
{
"spaces": [
{
"space_id": "1",
"name": "AuD",
"description": "Algorithmen und Datenstrukturen"
},
{
"space_id": "6",
"name": "Sample",
"description": "Such wow samples"
},
... more spaces
]
}
Space - Example
{
"spaces": [
{
"space_id": "1",
"name": "AuD",
"description": "Algorithmen und Datenstrukturen",
"nodes": [
{
"node_id": "1",
"space_id": "1",
"title": "Sortieren",
"description": "So sortiert man graphen",
"icon_url": "https://tu-bs.de/icon.png",
"header_url": "https://tu-bs.de/header.png",
"video_url": "https://tu-bs.de/video.mp4",
"type": {
"nodetype_id": "3",
"name": "Vorlesung",
"color": "85D0AB"
},
"references": [
{
"node_id": "1",
"reference_id": "35",
"url": "https://tu-bs.de/reference.html"
},
... more references
]
},
... more nodes
],
"links": [
{
"link_id": "9",
"source_node_id": "1",
"target_node_id": "10"
},
{
"link_id": "75",
"source_node_id": "65",
"target_node_id": "89"
},
... more links
]
},
... more spaces
]
}