Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] a newbie question in regard to ontology population

kookaburra shaledova at
Wed Aug 12 19:42:02 PDT 2009


 I developed an owl ontology. I also developed a program to generate a bunch
of instances in OWL format from an existing data base. Now I want to load
the ontology as well as all those instances together.

What I tried are:

(1) simply added the instance into the created ontology OWl file . Note I
did this in the text file, not in the Protege editor!!

(2) in the generated instance text file, import this ontology by adding
lines like:
 <owl:Ontology rdf:about="">
    <owl:imports rdf:resource="file:///home/people.owl"/>

But both of the two methods presented the same problems for me:
after successfully load the integrated ontology (including instances using
the above two methods) into protege 3.4, I found an extra class named
"protege:ExternalResource"  is added in the class structure and some
duplicated individuals(instances) are also added into this class as well.
(there are some occations that the protege will hangs after some navigations
over the individuals)

I know this is related to the format of the instances I generated. But I can
not determine what a proper format for the instances I should generate from
a programe to avoid this problem.

I don't want to create these instance using protege editor and I also want
to get away with using Protege OWl API. I attached the integrated OWL sample
I used  for you to duplicate this problem I have encountered.

Any tips are welcomed and appreciated!!



<?xml version="1.0"?>
  <owl:Ontology rdf:about=""/>
  <owl:Class rdf:ID="city"/>
  <owl:Class rdf:ID="people"/>
  <owl:Class rdf:ID="company"/>
  <owl:ObjectProperty rdf:ID="workat">
    <rdfs:range rdf:resource="#company"/>
    <rdfs:domain rdf:resource="#people"/>
  <owl:ObjectProperty rdf:ID="livein">
    <rdfs:range rdf:resource="#city"/>
    <rdfs:domain rdf:resource="#people"/>
  <owl:DatatypeProperty rdf:ID="name">
    <rdfs:range rdf:resource=""/>
        <owl:unionOf rdf:parseType="Collection">
          <owl:Class rdf:about="#people"/>
          <owl:Class rdf:about="#city"/>
          <owl:Class rdf:about="#company"/>
  <owl:DatatypeProperty rdf:ID="sex">
    <rdfs:range rdf:resource=""/>
    <rdfs:domain rdf:resource="#people"/>
  <owl:DatatypeProperty rdf:ID="age">
    <rdfs:domain rdf:resource="#people"/>
    <rdfs:range rdf:resource=""/>

<tt:people rdf:ID="people_1">
    <tt:livein rdf:resource="city_1"/>
    <tt:workat rdf:resource="company_1"/>
    <tt:name  rdf:datatype="
    <tt:sex  rdf:datatype="
<tt:people rdf:ID="people_2">
    <tt:livein rdf:resource="city_2"/>
    <tt:workat rdf:resource="company_1"/>
    <tt:name  rdf:datatype="
    <tt:sex  rdf:datatype="

<tt:city rdf:ID="city_1">
<tt:name  rdf:datatype="
 <tt:city rdf:ID="city_2">
<tt:name  rdf:datatype="
<tt:company rdf:ID="company_1">
<tt:name  rdf:datatype="

<!-- Created with Protege (with OWL Plugin 3.4, Build 533) -->
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the protege-owl mailing list