Git Product home page Git Product logo

owl-toolkit's Introduction

owl-toolkit

owl-toolkit is a set of command line tools for OWL files based on the owl-api library.

Download

https://github.com/ghxiao/owl-toolkit/releases

Build from source

  1. git clone https://github.com/ghxiao/owl-toolkit.git
  2. cd owl-toolkit
  3. ./gradlew distZip

Then you will find the generated zip file in the folder build/distributions.

Usage

owl-convert

  • owl-convert converts the input OWL ontology to another format
$ owl-convert {-rdfxml | -owlxml | -turtle | -manchester} input.owl

owl-declarations

  • owl-declarations extracts the OWL Declaration Axioms from the input ontology. It is very useful when user wants to disable the ontology reasoning.
$ owl-declarations input.owl

owl-merge

  • owl-merge merges several OWL files into a single one
$ owl-merge [-iri <iri>] file1.owl ... filen.owl

owl-metrics

  • owl-metrics prints the metrics (e.g. number of concepts/propertes/ABox assertions) of an OWL file
$ owl-metrics [-v] file.owl

owl-individuals

  • owl-individuals extract OWLIndividuals from an OWL file
$ owl-individuals file.owl

owl-pdf

  • owl-pdf converts the OWL file to a pdf file in DL format
$ owl-pdf file.owl

owl-profilize

  • owl-profilize cuts the OWL file to a profile (incl. RL, EL, QL) by dropping violated axioms
$ owl-profilize {-rl | -el | -ql} file.owl

owl-materialize-imports

  • owl-materialize-imports materializes the imports of the input ontology, that is, it replaces the import declaration by the concrete axioms from the imported ontologies.
$ owl-materialize-imports file.owl 

owl-toolkit's People

Contributors

braddockcg avatar ghxiao avatar lorenzleutgeb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

owl-toolkit's Issues

"INFO" output pollutes stdout in owl-converter

I get a bunch of Java INFO logging to stdout when I run owl-converter. It corrupts the output and I have to go in and delete it by hand. Any idea what this is or how to get rid of it?
Java 7 on Linux, owl-toolkit built from latest sources.

07:12:26,624 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
07:12:26,624 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
07:12:26,624 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/mnt/data/home-orlop-2014/braddock/expire/rdf/owl-toolkit-1.2/owl-toolkit-1.2.jar!/logback.xml]
07:12:26,646 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@58fdd99 - URL [jar:file:/mnt/data/home-orlop-2014/braddock/expire/rdf/owl-toolkit-1.2/owl-toolkit-1.2.jar!/logback.xml] is not of type file
07:12:26,705 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
07:12:26,705 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
07:12:26,718 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
07:12:26,727 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
07:12:26,856 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
07:12:26,858 |-ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - Could not find an appender named [STDERR]. Did you define it below instead of above in the configuration file?
07:12:26,858 |-ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - See http://logback.qos.ch/codes.html#appender_order for more details.
07:12:26,858 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
07:12:26,861 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@6b1274d2 - Registering current configuration as safe fallback point

@prefix : <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://xmlns.com/foaf/0.1/> .

<http://xmlns.com/foaf/0.1/> rdf:type owl:Ontology ;
[...SNIP...]

bash error

Hi, just downloaded and followed the README file, but on my MAc, I have the following error: "-bash: owl-metrics: command not found". Did I miss something? TIA.

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.