Giter Site home page Giter Site logo

kingler / themis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oeg-upm/themis

0.0 0.0 0.0 16.85 MB

Verification tool for executing test cases on one or more ontologies

Home Page: http://themis.linkeddata.es/

License: Apache License 2.0

JavaScript 3.02% Java 26.10% CSS 0.25% HTML 70.63%

themis's Introduction

Themis

This repository stores the code of Themis, which is a web application that provides an interface to execute tests on one or more ontologies, and also a REST API to be used by third-party services.

Inputs

Themis needs two inputs:

  • Ontology URI: the user can add one or more than one ontology, which will be loaded and its glossary of terms automatically generated
  • Test: the user can add one or more tests. Check here the supported tests

Outputs

Themis will provide the result for each test and each ontology, indicating as well the problem found (if any). Users can also download the test suite as an RDF file.

Using the Rest API

In order to use our REST API, check our online documentation

Using the JAR

Command: java-jar themis.jar -t test file -o ontology file [-g glossary of terms] [-r format of the results]

Example

java -jar themis.jar -t testsuite.ttl -o ontology.ttl -r junit

Inputs

The command can receive the following inputs:

  • Ontology file: the user can add one ontology in a file, which will be loaded and its glossary of terms automatically generated
  • Test file: the user can add one or more tests in a file (check here the supported tests) written in RDF or RDFa following the VTC ontology. Moreover, Themis accepts as input a text file with a list of tests that uses the following Themis syntax and that are separated by ";" (for example, a text file that includes: "Sensor type Class;Sensor subclassOf Device"). The supported file formats are the following:
    • RDFa: HTML and XML files
    • RDF: TTL, OWL and RDF files
    • List of tests: TXT files
  • Glossary of terms [optional]: the user can add a glossary of terms of the ontology to be analysed as a JSON array. If there is not glossary of terms, Themis creates one automatically with the format [Term, URI] where the fragment of the URI of each term represents the Term field. These glossary of terms is used to map each term in the test with each term in the ontology. An example of glossary of terms is the following:
{
   "OntologyNameOrKey":[
      {
         "Term":"Sensor",
         "URI":"http://iot.linkeddata.es/def/core#Sensor"
      }
   ]
}
  • Format [optional]: Themis will provide the result for each test. Three possible formats for the results are provided:
    • JSON (output by default)
    • RDFa following the VTC ontology
    • JUnit (see JUnit website for more information about the stucture of the test report)

themis's People

Contributors

albaizq 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.