GithubHelp home page GithubHelp logo

isuruamantha / owl-to-aiml Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 274 KB

Convert RDF/OWL to AIML

Java 100.00%
aiml aiml-bots owl rdf pandora swrl sparql sparql-query aiml-interpreter aiml-parser aiml-chatbot aiml-converter aiml-java-interpreter aiml-files aiml2 protege protege-owl-editor ontology coronavirus twinkle

owl-to-aiml's Introduction

OWL-to-AIML

I've created this application for my university project. This basically convert OWl/RDF file to AIML. We've told to create a simple ontology regarding the Cornavirus and using that ontology, create a simple chatbot. Following screenshot shows my ontology.

Ontology

For this I've used Protege. Additionally to mine the ontology, I've used Twinkle as the software to execute SPARQL queries.

SPARQL query 1

SPARQL query 2

After generating the RDF/OWL file from Protege, for converting that to AIML I've created a small java program using swrlapi. This is how my SQWRL looks like.

queryEngine.runSQWRLQuery("Q1", "Treatments(?p) ^ available_for(?p, ?c) ^ name(?p, ?g)-> sqwrl:select(?g)");

After that using a custom parser I've generated a simple AIML file. (It may require some modifications after generating) . Add below AIML tag to the file

<aiml version="2.0"><aiml>

For the chatbot I've used online platform called Pandorabots. Below diagram shows the simple architecture of my little system.

Architecture diagram

The final outcome of the chatbot would be as follows after importing the AIML to pandora.

Chatbot example

owl-to-aiml's People

Contributors

isuruamantha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.