Closed ferzcam closed 2 years ago
Hi Fernando, This is happening calling just OntologyProjection right? I think I will need the input ontology to reproduce the problem. Thanks Ernesto
Hi. Yes, it happens with OntologyProjection. I have tried with goslim_yeast.owl
and go.owl
, both from the Gene Ontology.
An example with goslim_yeast
could be the following:
For the annotation axiom
<owl:Axiom>
<owl:annotatedSource rdf:resource="http://purl.obolibrary.org/obo/GO_0005085"/>
<owl:annotatedProperty rdf:resource="http://www.geneontology.org/formats/oboInOwl#hasDbXref"/>
<owl:annotatedTarget>Reactome:R-HSA-170979</owl:annotatedTarget>
<rdfs:label>(Frs2)C3G stimulates nucleotide exchange on Rap1</rdfs:label>
</owl:Axiom>
These two triples are generated:
('GO:0005085', 'http://www.geneontology.org/formats/oboInOwl#hasDbXref', 'Reactome:R-HSA-170979')
('199', 'rdfs:label', '(Frs2)C3G stimulates nucleotide exchange on Rap1')
But in the second triple, the node 199
(that may change in different runs) seems not to be used anywhere else.
I see, interesting, the problem here is that the rdfs:label annotation is over an axiom/triple (this case another annotation).
We were not directly considering these cases, so the triple ends-up being isolated. I guess owlready creates this blank-node with id 199 and possibly does the reification to annotate an axiom/triple.
Best Ernesto
El vie, 11 feb 2022 a las 12:47, Fernando Zhapa @.***>) escribió:
Hi. Yes, it happens with OntologyProjection. I have tried with goslim_yeast.owl and go.owl, both from the Gene Ontology. An example with goslim_yeast could be the following: For the annotation axiom
<owl:Axiom> <owl:annotatedSource rdf:resource="http://purl.obolibrary.org/obo/GO_0005085"/> <owl:annotatedProperty rdf:resource="http://www.geneontology.org/formats/oboInOwl#hasDbXref"/> <owl:annotatedTarget>Reactome:R-HSA-170979</owl:annotatedTarget> <rdfs:label>(Frs2)C3G stimulates nucleotide exchange on Rap1</rdfs:label> </owl:Axiom>
These two triples are generated:
('GO:0005085', 'http://www.geneontology.org/formats/oboInOwl#hasDbXref', 'Reactome:R-HSA-170979') ('199', 'rdfs:label', '(Frs2)C3G stimulates nucleotide exchange on Rap1')
But in the second triple, the node 199 (that may change in different runs) seems not to be used anywhere else.
— Reply to this email directly, view it on GitHub https://github.com/KRR-Oxford/OWL2Vec-Star/issues/5#issuecomment-1036178168, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYLZ6USJJGT5PH2WRFPVX3U2UANVANCNFSM5NZPO4TA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>
-- Ernesto Jiménez-Ruiz Lecturer in Artificial Intelligence
Department of Computer Science School of Mathematics, Computer Science and Engineering City, University of London T: +44 (0)20 7040 0212 https://www.city.ac.uk/people/academics/ernesto-jimenez-ruiz
I see, so those extra triples can be ignored. Thank you very much.
When calling the class
OntologyProjection
withinclude_literals=True
, some triples with blank nodes are generated. Those blank nodes do not seem to be used somewhere else, so I wondered if such triples are being used at some point or can just be ignored.