Re: How to access <owl:Axiom>?
Posted by
fsutter on
URL: http://owlready.306.s1.nabble.com/How-to-access-owl-Axiom-tp3406p3408.html
Hi,
thanks for the reply.
Maybe I should better explain what I want to achieve:
In the file I've currently a lot of block like that:
<owl:Axiom>
<owl:annotatedSource rdf:resource="
http://xxxxxxx/ID1"/> <owl:annotatedProperty rdf:resource="
http://XXXXXXX/core#CONCEPT_hasMapping"/> <owl:annotatedTarget rdf:resource="
http://id.nlm.nih.gov/mesh/D016584"/> <dcterm:source>IDMESH</dcterm:source>
<rdfs:label>Panic Disorder</rdfs:label>
</owl:Axiom>
And want to replace <owl:annotatedProperty rdf:resource="
http://XXXXXXX/core#CONCEPT_hasMapping"/> depending of the value of dcterm:source
So I need two things:
* have a way to find all AnnotatedRelation with annotatedProperty ==
http://XXXXXXX/core#CONCEPT_hasMapping* replace
http://XXXXXXX/core#CONCEPT_hasMappingI can access a specif disease with this code:
disease_ontology = get_ontology("class.owl").load()
disease = disease_ontology["ID1"]
But after I don't know how to continue.
Once again, sorry fo my stupid questions.
Thanks a lot