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:

37 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
  13. Which language would you suggest to us for making web applications? Can you tell me who I should focus on, PHP or Java? Dissertation Writing Services

    ReplyDelete
  14. Do not waste countless hours on your college assignments anymore. Get Solution Manual For Computer Security Principles And Practice 3 E and work smart with better results.

    ReplyDelete
  15. Hard exams, assignments and homework are a now things of the past with Chemistry The Central Science 13th Edition Test Bank. Order and download now!

    ReplyDelete
  16. Thanks for sharing this outstanding post with people like us, it is very insightful and helpful for students need programming help online.

    ReplyDelete

  17. Are you looking for the best fantasy app to start your journey? Do you want to earn real cash while playing fantasy cricket? Then fantasypower11 is a one-stop shop, where you can get the solution for all your fantasies. fantasy cricket tips and tricks

    ReplyDelete
  18. This is a great inspiring article. I am very satisfied to peer your article.Thank you a lot and I am having a look forward to touch you kundali Matching

    ReplyDelete
  19. I pay a visit every day a few websites and information sites to read articles or reviews, but this weblog provides quality based writing 12 jyotirling

    ReplyDelete
  20. Thank you for sharing superb informations. Your web site is very cool. I am impressed by the details that you’ve on this site jyotirlinga in India

    ReplyDelete
  21. when you submit a request for homework and assignment help from ABC assignment help, we guarantee you of premium administrations where you get total altered assistance. Here, our subject-explicit specialists focus on dealing with assignments, articles, research projects or coursework as per the particular writing style of each paper. essay writing help

    ReplyDelete
  22. Hey nice to see you there being posting again yea? I like your post a lot seriously hook me up sometime dude. Also visit my website: 온라인카지노사이트

    ReplyDelete
  23. Very useful information shared in this article, nicely written! I will be reading your articles and using the informative tips. Looking forward to read such knowledgeable articles Also visit my website: 카지노사이트링크

    ReplyDelete
  24. Thank you for the helpful tips! I would never have gotten this on my own! Is it alright to reference part of this on my website basically include a backlink to this webpage? Also visit my website: 온라인카지노사이트넷

    ReplyDelete
  25. I blog often and I seriously appreciate your information. Your article has really peaked my interest. I will bookmark your blog and keep checking for new information about once per week. Also visit my website: 바카라사이트닷컴

    ReplyDelete
  26. If you want to write a super essay, it will require lots of research, investigation, looking for sources, referencing, citations, and actual writing. This number of hours should be multiplied when it goes about dissertation writing but it easier with super essays service https://super-essays-service.com/

    ReplyDelete
  27. Gain better scores in every assignment and exam with Test Bank For Fire Dynamics. Be on the top of your class.

    ReplyDelete
  28. You can find Test Bank For Nutrition For Healthy Living 3rd Edition See Newer Edition online in pdf/word format. Avail instant assistance for issues 24/7. There is no waiting time!

    ReplyDelete
  29. You’re a very skilled blogger. I have joined your feed and look forward to seeking more of your fantastic post. I wanted help with that. Dissertation Writing Services suggest by a companion was an excellent deal

    ReplyDelete
  30. When working on a book review, a person is expected to provide only a brief summary of the content but mainly focus on the assessment and evaluation of the book, and also present personal viewpoint. But for super successful results you can refer to best book report writing service

    ReplyDelete
  31. Our automatic alphabetizer is based on highly advanced algorithms that can reorganize lists accurately within a matter of seconds. And that isn’t all we have in store for you! You can use our word alphabetizer online for FREE.

    Allessaywriter.com is dedicated to offering premium quality essay writer across all genres, including cause and effect, descriptive, comparative, argumentative and more. If you need flawlessly drafted and well-referenced essay writing at the best price, look nowhere else, and count on us.

    ReplyDelete
  32. Updated version of Solution Manual For Introduction To Automotive Service available for instant download. Avail great discounts and offers now.

    ReplyDelete
  33. I am stresses for the long time and do not idea how to tackle academic responsibility. I have gone through your site and find its inspiring post to make creative content. Meanwhile, you go through Assignment Help USA navigational link available on our website.

    ReplyDelete
  34. Students look for some homework help online to complete the tasks on time. But many websites provide such services and help the students. You need to be careful while looking for the assignment writing website.
    You can access automated tools like essay typer, paraphrasing, and other tools to get through with the tasks. You will also get connected with the right experts and get the right help with your assignments and tasks.

    ReplyDelete