...
Service Name | Description | Access Link |
---|---|---|
View Management Service | API documentation for View Management | |
GraphDB Management Service | API documentation for GraphDB Management |
Setting Up ENAPSO Demo
To perform the following tasks, you need to clone the repository and run the setup script:
Upload the ontology file
Upload the demo data file
Create CRUD templates for the
EditorialObject
classSet up REST routes for the CRUD operations
Follow these steps to set up the ENAPSO demo on your local machine.
Open a new terminal and clone the repository to your local machine by running the following command:
Code Block language bash git clone https://github.com/innotrade/enapso-demo.git
This will download all the necessary files and scripts to set up the ENAPSO demo.
Navigate to the cloned repository directory
Code Block language bash cd enapso-demo
Run the appropriate setup script for your operating system.
For macOS and Linux
Code Block language bash cd scripts chmod +x setup_enapso_media_mac.sh ./setup_enapso_media_mac.sh
For Windows
Code Block language bash cd scripts setup_enapso_media_windows.bat
The setup script will perform the following tasks:
Upload the ontology file (
ontologies/ebucoreplus.owl
)Upload the demo data file (
demo-data/editorialObject_demoData.ttl
)Create CRUD templates for the
EditorialObject
classSet up REST routes for the CRUD operations
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
Uploading Your OntologyThis guide outlines the steps to prepare and upload the
Upload EBUCoreplus Ontology via enapso-graphdb-cli toolPrerequisitesEnsure Node.js is installed on your machine. If not, install it from the Node.js official website. This installation includes npm (Node Package Manager), which manages Node packages. After installation, verify that Node.js and npm are successfully installed by doing the following:
For using the ENAPSO tools, it's important to have at least Node.js version 10 or higher, as earlier versions might not support some functionalities of the tools. If you need to update Node.js to the latest version, you can download it from the official Node.js website and install it on your system. It will automatically replace the older version with the new one. InstallationInstall the enapso-graphdb-cli tool globally using npm:
Uploading EBUCoreplus OntologyDataOpen the terminal, and navigate to the directory where the
Trigger CacheOpen the terminal and run the following
Upload EBUCoreplus Ontology via GraphDB Management Service's provided API
|
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Upload Demo DataThis guide outlines the steps to upload the demo data for the
Upload Demo Data via enapso-graphdb-cli toolPrerequisitesRefer to the prerequisite information above and follow the same procedure. InstallationRefer to the installation information above and follow the same procedure. Uploading Demo DataOpen the terminal, and navigate to the directory where the
Upload Demo Data via GraphDB Management Service's provided API
|
Expand | ||
---|---|---|
| ||
CRUD Template ManagementThis setion provides detailed instructions on how to generate CRUD (
|
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
Executing CRUD OperationsAfter generating your CRUD templates, you'll need to use them to manage data. This section explains how to execute the Executing the Read TemplateTo view existing instances of the
Creating a New InstanceTo create a new instance of the
Verifying the Creation of a New InstanceAfter creating a new instance of the
You can verify the changes made to the graph database re-executing the read template after performing CRUD operations provides an option to transparently. Updating an InstanceTo update an existing instance within your graph database, you first need to know which instance you're targeting. This is where the
Deleting an InstanceTo delete an instance from your ontology, you need to specify which instance to remove by using its IRI (Internationalized Resource Identifier). The IRI serves as a unique identifier for each instance and can be obtained by reading the instance data beforehand. Once you have the IRI, use it to indicate which instance you wish to delete.:
|
...