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] Transforming an OWL file

Ghajar, Anoosh AGhajar at imc.com
Mon Jan 28 08:20:36 PST 2008


Hi,

I have an owl file that needs to be modified to properly reflect the
class names. The existing class names in <owl:Class> tags are in the
format 'PRO_XXXXX" where XXXX is a sequence of numbers and I would like
the class names to be changed to the textual content of the first child
node <rdfs:label> . 

I am thinking of using java and XSLT(are there better options?) for the
transformation but my problem is with the <rdf:SubClassOf> node that
reports another class name of the format 'PRO_XXXX' which has its
details(I mean <rdfs:label> further down in the .owl file). Any idea of
how to implement this transformation will be greatly appreciated.

Thank You.

Here is a section of my .owl file:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++

<owl:Class rdf:ID="PRO_00019440">

    <rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string"

    >Smad2 sequence 1 phosphorylated and ubiquitinated form</rdfs:label>

    <oboInOwl:hasDbXref>

      <oboInOwl:DbXref rdf:nodeID="A0">

        <rdfs:label
rdf:datatype="http://www.w3.org/2001/XMLSchema#string"

        >MOD:00696 has_modification - phosphorylated
residue</rdfs:label>

      </oboInOwl:DbXref>

    </oboInOwl:hasDbXref>

    <oboInOwl:hasDbXref>

      <oboInOwl:DbXref rdf:nodeID="A1">

        <rdfs:label
rdf:datatype="http://www.w3.org/2001/XMLSchema#string"

        >MOD:00688 has_modification - isopeptide crosslinked
residues</rdfs:label>

      </oboInOwl:DbXref>

    </oboInOwl:hasDbXref>

    <rdfs:subClassOf>

      <owl:Restriction>

        <owl:someValuesFrom>

          <owl:Class rdf:ID="PRO_00000011"/>

        </owl:someValuesFrom>

        <owl:onProperty>

          <owl:TransitiveProperty rdf:ID="UNDEFINED_derives_from"/>

        </owl:onProperty>

      </owl:Restriction>

    </rdfs:subClassOf>

    <rdfs:subClassOf
rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>

  </owl:Class>

 

 

 

 

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-owl/attachments/20080128/c5688c00/attachment.html>


More information about the protege-owl mailing list