Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4616890
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:02:48+00:00 2026-05-22T02:02:48+00:00

My work requires a construction of ontologies modules. For this I need to construct

  • 0

My work requires a construction of ontologies modules.
For this I need to construct owl files to contain those ontologies.
My input is an xml file with parsed and splitted sentences.

<Subject> A tumor </Subject> 
<Verb> is </Verb> 
<Object> an abnormal growth </Object> 
</sentence> 
<sentence> 
<Subject> A kidney tumor </Subject> 
<Verb> is </Verb> 
<Object> an abnormal growth </Object> 

What I need to do now is:

  • convert “subject” and “object” into OntClass
  • convert “verb” into a transitive property between “obj” and “sub”

I am new on the ontology domain, may be those are basic questions, but I am struggling with the creation of those files, and especially with the transitive property.

Any help is welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:02:49+00:00Added an answer on May 22, 2026 at 2:02 am

    To create an OntClass, you simply need to call OntModel.createClass( uri ). Of course, that then leaves the question of which uri you should use. You’ll need a namespace, something of the form http://yourcompany.com/ontology/diagnosis#; ideally this namespace will correspond to a web address where your ontology document can be retrieved.

    Then you’ll need an algorithm for converting a phrase like ‘A tumor’ into a class name. This could be quite simple:

    • remove prefixes such as definite and indefinite articles (a, an, the)
    • remove spaces and use CamelCase to denote word boundaries

    Then the uri will be the concatenation of the namespace and the converted name.

    Creating transitive properties is also straightforward (OntModel.createTransitiveProperty()), but in the sample that you show, it appears that you’re actually talking about the sub-class relationship between classes. If it is always true that all ns:KidneyTumor instances are also in the set of ns:AbnormalGrowth instances, then your <Verb>is</Verb> corresponds to the existing RDF property rdfs:subClassOf. Of course, if that relationship is more subtle (e.g. may be conditionally or probabilistically true), then you’ll need a different relationship with your particular semantics.

    As for reading the XML file, there are many tutorials on the web or questions on Stackoverflow to help with that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this construction for my element: $freetext = $this->CreateElement('textarea', 'freetext') ->setLabel('Comments') ->setAttrib('class','input-textarea') ->setOptions(array('rows'
My work requires that I perform a mathematical simulation whose parameters come from a
I am required to work on a php project that requires the database to
I have an third-party applet that requires JRE v1.5_12 to work correctly. THe user
I have a blogengine.net install that requires privatization. I'm doing research work at the
From what I've read about ASP.NET MVC, it appears it requires posting to work,
As title. ruby test/functionals/whatevertest.rb doesn't work, that requires me to replace all require 'test_helper'
What will work faster - using PEAR package or require Some_Library.php files in code?
I have a feeling this should be a common requirement, but I can't work
Is there a way to make this work (Scala 2.8.1): class A class B

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.