Socket
Socket
Sign inDemoInstall

@innotrade/enapso-ontology-uploader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@innotrade/enapso-ontology-uploader

ENAPSO automated ontology uploader


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

enapso-ontology-uploader

enapso automated ontology uploader in which you add ontology files in watcher and if any change occur in ontology file then it automatically upload the updated ontology file in GraphDB. To discuss questions and suggestions with the enapso, we'll be happy to meet you in our forum at https://www.innotrade.com/forum/.

Add Method

const jsonData = require("./config.json");
EnapsoOntologyUploader.add(jsonData)
  .then((res) => {
    console.log(res);
  })
  .catch((err) => {
    console.log(err);
  });

jsonData which pass the json file in which use JSON Format where you have the following information

{
	"ontologies": [
		{
			"filename": "./EnapsoOntologyRepository.owl",

			"id": "test1",

			"repository": "Test",

			"username": "admin",

			"password": "root",

			"dburl": "http://localhost:7200",

			"baseurl": "http://localhost:7200",

			"format": "application/rdf+xml",

			"baseIRI": "http://ont.enapso.com/repo#",
			"context": "http://ont.enapso.com/repo"
		},

		{
			"filename": "./EnapsoAuthorization.owl",

			"id": "test2",

			"repository": "enapso-admin",

			"username": "admin",

			"password": "root",

			"dburl": "http://localhost:7200",

			"baseurl": "http://localhost:7200",

			"format": "application/rdf+xml",

			"baseIRI": "http://ont.enapso.com/auth#",

			"context": "http://ont.enapso.com/auth"
		}
	]
}

so while adding it you will get the id and path from that json file of each record and add each ontology file in the watcher

Watch Method

EnapsoOntologyUploader.watch(function (error, result) {
  if (error) {
    console.log(error);
  } else {
    console.log(result);
  }
});

watch method watch the added ontology files and if any change occur it get the id of that file and get the detail and using it, it will clear the existing context of ontology and upload the updated file of ontology.

FAQs

Package last updated on 03 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc