Search Mailing List Archives
[protege-discussion] Modify value <xsd:minInclusive rdf:datatype="&xsd; float">
Timothy Redmond
tredmond at stanford.edu
Fri Sep 24 09:56:01 PDT 2010
On 09/23/2010 06:47 AM, Matteo Dany wrote:
> Hi everybody.
>
> I don't know if it is possible, I searched in google but I didn't find
> nothing.
It is quite possible. First you need to choose the Java library that
you are going to use to change the value. If you use the OWL API, then
the technique would be to retrieve the owl:equivalentClass axiom from
the ontology, modify the axiom and finally delete the retrieved axiom
from the ontology and replace it with the new axiom. If you use a tool
like Jena, I suspect that you can do the modification in place.
-Timothy
>
> I want change dynamically the value of <xsd:minInclusive
> rdf:datatype="&xsd;float">:
> (Obviously with a java program )
>
>
> <owl:Class rdf:about="#TooUmiditySensor">
> <owl:equivalentClass>
> <owl:Class>
> <owl:intersectionOf rdf:parseType="Collection">
> <rdf:Description rdf:about="#Umidity"/>
> <owl:Restriction>
> <owl:onProperty rdf:resource="#hasUmidity"/>
> <owl:someValuesFrom>
> <rdf:Description>
> <rdf:type rdf:resource="&rdfs;Datatype"/>
> <owl:onDatatype rdf:resource="&xsd;float"/>
> <owl:withRestrictions rdf:parseType="Collection">
> <rdf:Description>
> <xsd:minExclusive rdf:datatype="&xsd;float">60</xsd:minExclusive>
> <---------- this value
> </rdf:Description>
> </owl:withRestrictions>
> </rdf:Description>
> </owl:someValuesFrom>
> </owl:Restriction>
> </owl:intersectionOf>
> </owl:Class>
> </owl:equivalentClass>
> </owl:Class>
>
>
> I don't know which function can modify the value of minExlusive and if
> it's possible.
>
> Thanks
> Best Regards
>
> Matteo Danieletto
>
>
>
>
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20100924/9ba2d150/attachment.html>
More information about the protege-discussion
mailing list