Thursday, 15 October 2015

Example of using SWRL built-ins with Solar System ontology.

Introduction to SWRL


Semantic Web Rule Language (SWRL for short) is a combination of OWL DL and OWL Lite sub-languages of OWL Web Ontology. It is possible to write ontology with SWRL built-ins in Ontorion Fluent Editor. One of such example of ontology written by using Semantic Web Rule Language is Cognitum's Solar System Ontology.

To follow along open Fluent Editor, go to File -> New and type Solar System. Double click on the template to open.







Introduction to Solar System ontology



Here is the core of our solar system ontology.
In the picture above it is seen that every instance in our ontology that orbits something is either a planet or a moon. Planets orbit some stars and moons orbit some planets. Later it can be possible to ask very complex queries with Fluent Editor with these two simple rules. Then later in the ontology data modelling is utilized. 

We define relations such as:
  • has-index
  • orbits
  • has-semimajor-axis-1000-km
  • has-period
  • was-discovered-by
  • was-discovered-in-year
And with these relations assigned to each instance we can later ask very complex queries.





How does rule written in SWRL look like?



You describe concepts/instances as a thing and attributes as a value. If you want to reference previous stated instance/concept use the thing and while referencing previous stated attribute use the value
Fluent Editor supports core SWRL built-ins such as: comparisons, maths, strings, date, time and duration. In the example above it can be seen that comparison operator is used.
Rule above states which radius of orbiting of a star is higher. For instance let's ask the materialized graph (reasoner HermiT does not support SWRL yet) following query.

Who-or-What is covered by Earth?




It got us this response and indeed, it is true. Venus and Mercury are closer to the Sun than the Earth.
Now let's ask about orbiting radius of Mars.

Who-or-What is covered by Mars?




And once again it can be seen that our ontology, thus SWRL is working correctly. Not only the Venus and Mercury is included but also the Earth.

Other types of query

It is possible to directly make SPARQL queries.

SELECT ?y WHERE {:Mars :covers ?y}



Or use SWRL Debugger in Tools tab.





Complex queries

Try following query:

Who-or-What was-discovered-in-year greater-than 1900 and is a planet and covers Neptune?



While debate about Pluto being a planet is still up to date Fluent Editor, will provide an answer regardless of others people opinion. 

Not only we had built SWRL feature into Fluent Editor but also we expanded it. We implemented SOUNDEX algorithm into semantics of Fluent Editor. Check example below.



SOUNDEX algorithm allows us to approximate and compare words which have similar pronunciation. For instance, ask following query:


It responded with all moons which were discovered by a person with approximately the same name.
In this case - identical.

Summary


Fluent Editor provides necessary tools to write simple and quite complex rules using SWRL built-ins. You can easily query the materialized graph, or use SPARQL queries directly to achieve response you expect.

More Resources:

14 comments:

  1. How does one say in Fluent CNL, "if a thing has-end-date equal-to value(1) and the thing has-start-date equal-to value(2) then the value(2) must be greater-than-or-equal-to the value(1)" ?

    ReplyDelete
  2. SWRL as a proposed language for the semantic web as I am using for programming for logic etc... is a huge help for the simulations I'm currently on. Thanks for the tips btw, if you happen to know some writing services, would you mind recommending one too. This Edusson reviews has too many promises but failed to even deliver one.

    ReplyDelete
  3. I came to 123helpme service searching for information on kibin.com and coursehero.com. From the first sight, they seem to be very similar service except for one crucial thing. They don't have any contacts. Some people like them for their grading tool which is similar to Grammarly online checker, the others for the huge essay sample database. They claim to have more than 400,000 samples for all kind of essays, term papers, course works, etc. If I were a student, I would definitely use them at least once. However, the major part of the essay examples are not free, and you have to but a prescription for them. Moreover, those papers are for paraphrasing only, and it is not easy to cancel the prescription if you signed up for it. See the full review to decide if https://scamfighter.net/review/123helpme.com
    is a scam or a decent service.

    ReplyDelete
    Replies
    1. The development of artificial intelligence (AI) has propelled more programming architects, information scientists, and different experts to investigate the plausibility of a vocation in machine learning. Notwithstanding, a few newcomers will in general spotlight a lot on hypothesis and insufficient on commonsense application. machine learning projects for final year In case you will succeed, you have to begin building machine learning projects in the near future.

      Projects assist you with improving your applied ML skills rapidly while allowing you to investigate an intriguing point. Furthermore, you can include projects into your portfolio, making it simpler to get a vocation, discover cool profession openings, and Final Year Project Centers in Chennai even arrange a more significant compensation.


      Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account.

      Delete
    2. The development of artificial intelligence (AI) has propelled more programming architects, information scientists, and different experts to investigate the plausibility of a vocation in machine learning. Notwithstanding, a few newcomers will in general spotlight a lot on hypothesis and insufficient on commonsense application. machine learning projects for final year In case you will succeed, you have to begin building machine learning projects in the near future.

      Projects assist you with improving your applied ML skills rapidly while allowing you to investigate an intriguing point. Furthermore, you can include projects into your portfolio, making it simpler to get a vocation, discover cool profession openings, and Final Year Project Centers in Chennai even arrange a more significant compensation.


      Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account.

      Delete
  4. New school year starts and students have to deal with their homeworks, essays and summaries as basis. Some students get through this on their own meanwhile others face difficulties. While some students still need to work homeworks take a lot of time and energy. Hence the question arises “Who can help me to write my essays?”. It's obvious that they'll want to apply to source like this https://rocketpaper.net/buy-college-term-paper

    ReplyDelete
  5. Before graduating from the University, students are expected to write many assignments that take the essay format. I know the company that takes the opportunity to extend its services to a team of writers to ensure the students access help with their overwhelmingly demanding essays. The essay help https://speedypaper.com that offered for academic purpose comes at a very cheap fee. Cases of students paying for services which were never dispensed are common in this writing field. Students can track the progress of their assignments from time to time.

    ReplyDelete
  6. Wonderful day! Thank you for posting such a great article! It contains wonderful and helpful posts. Keep up the good work! http://edu-answers.com

    ReplyDelete
  7. Seeking for the Physics Assignment Help ? If yes then have a look here.

    ReplyDelete
  8. Assignment help in Saudi Arabia allows students to finish their papers on time without having any mistakes. If you want to submit error-free papers in your universities, you must think about Online Assignment help in Saudi Arabia.

    ReplyDelete
  9. thank u for such great example which u have keft here. Some great tios in usig swrl built. I would like also to leave essaysbank.com/essay/mary-gaitskill-s-tiny-smiling-daddy great link for essay writing

    ReplyDelete
  10. Cash App is the easiest way to send, spend, save, and invest your money. It's the SAFE, FAST, and FREE mobile banking app. First of all, you need to install Cash App on your mobile. Tap on the “Sign In” tab. Fill up your login details.
    Cash app login | Cash App Login

    ReplyDelete
  11. MyAssignmentHelpNow, who help students globally at all academic level. We work 24*7 so that you don’t need to wait for any certain time, you can reach us any time. For our assignment help you can directly get into touch with our expert.

    ReplyDelete
  12. When it comes to professional assignment help online many students become skeptical. Many face doubts about whether or not they should try such services. If you are one of such students, we are here to eradicate all doubts by letting you know some of the pros. One of the best thing that you will get by hiring a genuine team is a well-structured assignment before your deadline. Secondly, you can get to learn a lot of new things with expert guidance. Other than this, you do not have to pay a huge sum of money because today we have an array of affordable assignment help online options.
    marketing assignment help
    mba assignment help
    mathematics assignment help
    nursing assignment help
    chemistry assignment help
    economics assignment help

    ReplyDelete