GithubHelp home page GithubHelp logo

neuroidss / osf-ontologies-management-tool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from structureddynamics/osf-ontologies-management-tool

0.0 3.0 0.0 33 KB

Command line tool used to manage ontologies in a Open Semantic Framework (OSF) instance

Home Page: http://opensemanticframework.org

PHP 100.00%

osf-ontologies-management-tool's Introduction

OSF-Ontologies-Management-Tool

The Ontologies Management Tool (OMT) is a command line tool used to manage ontologies of a OSF Web Services network instance. It can be used to list ontologies of a OSF Web Services instance, to create/import new ones, to delete existing ones, to generate underlying ontological structures, etc.

Installing & Configuring the Ontologies Management Tool

The Ontologies Management Tool can easily be installed on your server using the OSF-Installer:

  ./osf-installer --install-osf-ontologies-management-tool -v
  

The OMT is using the OSF Web Services PHP API library to communicate with any OSF Web Services network instance. If the OSF Web Services PHP API is not currently installed on your server, then follow these steps to download and install it on your server instance:

  ./osf-installer --install-osf-ws-php-api -v 

Once both packages are installed, you will be ready to use the Ontologies Management Tool.

Usage Documentation

Usage: omt [OPTIONS]


Usage examples:
    Load all ontologies: php sync.php --load-all --load-list="/data/ontologies/sync/ontologies.lst" --osf-web-services="http://localhost/ws/"
    Load one ontology: omt --load="http://purl.org/ontology/bibo/" --osf-web-services="http://localhost/ws/"
    List loaded ontologies: omt --list --osf-web-services=http://localhost/ws/"
    Deleting an ontology: omt --delete="http://purl.org/ontology/bibo/" --osf-web-services="http://localhost/ws/"
    Generate structures: omt --generate-structures="/data/ontologies/structure/" --osf-web-services="http://localhost/ws/"



Options:
-l, --load-all                          Load all the ontologies from a list of URLs

--load="[URL]"                          Load a single ontology

--list                                  List all loaded ontologies

--delete                                Show a list of loaded ontologies, select one for deletation

--delete="[URL]"                        Delete a specific ontology from the instance using its URI

--save                                  Show a list of loaded ontologies, select one for saving

--save="[URL]"                          Save a specific ontology from the instance using its URI

--generate-structures="[PATH]"          Generate all the derivate structures of the ontology.
                                        Specify where the structure files should be saved.

-h, --help                              Show this help section

General Options:
--osf-web-services="[URL]"                     (required) Target OSF Web Services network endpoints URL.
                                                   Example: 'http://localhost/ws/'
--osf-web-services-query-extension="[CLASS]"   (optional) Query Extension Class (with its full namespace) to use for querying the OSF Web Services
                                                   Example: 'StructuredDynamics\osf\framework\MYQuerierExtension'
Load Options:
--load-list="[FILE]"                    (required) File path where the list can be read.
                                                   The list is a series of space-seperated
                                                   URLs where ontologies files are accessible
--load-advanced-index="[BOOL]"          (optional) Default is false. If true, it means Advanced Indexation
                                                   is enabled. This means that the ontology's description
                                                   (so all the classes, properties and named individuals)
                                                   will be indexed in the other data management system in
                                                   the OSF Web Services. This means that all the information in these
                                                   ontologies will be accessible via the other endpoints
                                                   such as the Search and the SPARQL web service endpoints.
                                                   Enabling this option may render the creation process
                                                   slower depending on the size of the created ontology.
--load-force-reload="[BOOL]"            (optional) Default is false. If true, it means all the ontologies
                                                   will be deleted and reloaded/re-indexed in the OSF Web Services

osf-ontologies-management-tool's People

Contributors

fgiasson avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.