Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_parseobourl failing due to change in ontobee schema #1424

Closed
jwodder opened this issue Mar 25, 2024 · 4 comments
Closed

test_parseobourl failing due to change in ontobee schema #1424

jwodder opened this issue Mar 25, 2024 · 4 comments
Assignees
Labels
tests Add or improve existing tests

Comments

@jwodder
Copy link
Member

jwodder commented Mar 25, 2024

The test_parseobourl test in test_metadata.py is currently failing because parse_purlobourl() is returning None for all input URLs. It appears that the XML documents returned by the URLs no longer have Class elements (which parse_purlobourl() looks for) and that they have been replaced with rdf:Description.

Example current response for http://purl.obolibrary.org/obo/NCBITaxon_10090:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="https://ontobee.org/ontology/view/NCBITaxon?iri=http://purl.obolibrary.org/obo/NCBITaxon_10090"?>
<!DOCTYPE rdf:RDF [
<!ENTITY obo 'http://purl.obolibrary.org/obo/'>
<!ENTITY owl 'http://www.w3.org/2002/07/owl#'>
<!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
<!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<!ENTITY oboInOwl 'http://www.geneontology.org/formats/oboInOwl#'>
]>

<rdf:RDF xmlns:obo="http://www.geneontology.org/formats/oboInOwl#"  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"  xmlns:owl="http://www.w3.org/2002/07/owl#"  xmlns:oboInOwl="http://www.geneontology.org/formats/oboInOwl#"  xmlns:dc="http://purl.org/dc/elements/1.1/"  xmlns:foaf="http://xmlns.com/foaf/0.1/"  xmlns:ns3="http://purl.obolibrary.org/obo/ncbitaxon#" >
<rdf:Description rdf:about="&obo;NCBITaxon_10090">
    <rdf:type rdf:resource="&owl;Class" />
    <rdfs:label>Mus musculus</rdfs:label>
    <rdfs:subClassOf rdf:resource="&obo;NCBITaxon_862507" />
    <obo:hasAlternativeId>NCBITaxon:85055</obo:hasAlternativeId>
    <obo:hasDbXref>GC_ID:1</obo:hasDbXref>
    <obo:hasExactSynonym>mouse</obo:hasExactSynonym>
    <obo:hasExactSynonym>house mouse</obo:hasExactSynonym>
    <obo:hasOBONamespace>ncbi_taxonomy</obo:hasOBONamespace>
    <ns3:has_rank rdf:resource="&obo;NCBITaxon_species" />
  </rdf:Description>
<rdf:Description rdf:about="&obo;NCBITaxon_862507">
    <rdf:type rdf:resource="&owl;Class" />
  </rdf:Description>
<rdf:Description rdf:about="&obo;NCBITaxon_species">
    <rdf:type rdf:resource="&owl;Class" />
  </rdf:Description>
<rdf:Description rdf:about="&obo;NCBITaxon_862507">
    <rdfs:label>Mus &lt;subgenus&gt;</rdfs:label>
  </rdf:Description>
<rdf:Description rdf:about="&obo;NCBITaxon_species">
    <rdfs:label>species</rdfs:label>
  </rdf:Description>
</rdf:RDF>
@yarikoptic
Copy link
Member

could you please file an issue with https://github.com/OntoZoo/ontobee to discuss this change? we don't have an example of prior record in full do we?

@jwodder
Copy link
Member Author

jwodder commented Mar 25, 2024

@yarikoptic

could you please file an issue with https://github.com/OntoZoo/ontobee to discuss this change?

I think @satra should do that, as he's the one who wrote the function for fetching data from ontobee in the first place, and thus he should be more familiar with the service.

we don't have an example of prior record in full do we?

No.

@jwodder
Copy link
Member Author

jwodder commented Mar 25, 2024

@yarikoptic Issue filed: OntoZoo/ontobee#200

@yarikoptic
Copy link
Member

I think this was fixed on the side of ontobee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Add or improve existing tests
Projects
None yet
Development

No branches or pull requests

3 participants