-
Notifications
You must be signed in to change notification settings - Fork 5
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
Schema changed, breaking our code #200
Comments
@yongqunh - it looks like the xml representation has changed for the response. more generally we are interested in the details of a given URI. is there a better way to programmatically query the details instead of doing a |
There appear to be some bugs during our recent server updating. We are now doing the debugging ... |
Sorry to pester -- any progress @yongqunh ? |
Sorry for the delayed reply. I would like to know more about your question. You said that the responses from these URLs recently changed so no Class elements any more, and the elements seem to have been renamed to rdf:Description. Actually, I don't know what happen. Can you provide more details about this? |
@yongqunh The problem seems to have been resolved at some point; I can't tell when. At the moment, a request to, say, http://purl.obolibrary.org/obo/NCBITaxon_10090 returns the following, which has the schema we want: <?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="https://ontobee.org/ontology/view/NCBITaxon?iri=http://purl.obolibrary.org/obo/NCBITaxon_10090"?>
<rdf:RDF xmlns="http://www.w3.org/2002/07/owl#"
xml:base="http://www.w3.org/2002/07/owl"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:oboInOwl="http://www.geneontology.org/formats/oboInOwl#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:obo="http://purl.obolibrary.org/obo/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:ns3="http://purl.obolibrary.org/obo/ncbitaxon#">
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Annotation properties
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<AnnotationProperty rdf:about="http://www.geneontology.org/formats/oboInOwl#hasOBONamespace"/>
<AnnotationProperty rdf:about="http://www.geneontology.org/formats/oboInOwl#hasExactSynonym"/>
<AnnotationProperty rdf:about="http://www.geneontology.org/formats/oboInOwl#hasDbXref"/>
<AnnotationProperty rdf:about="http://www.geneontology.org/formats/oboInOwl#hasAlternativeId"/>
<AnnotationProperty rdf:about="http://purl.obolibrary.org/obo/ncbitaxon#has_rank"/>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Datatypes
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Classes
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<!-- http://purl.obolibrary.org/obo/NCBITaxon_10090 -->
<Class rdf:about="http://purl.obolibrary.org/obo/NCBITaxon_10090">
<rdfs:label>Mus musculus</rdfs:label>
<rdfs:subClassOf rdf:resource="http://purl.obolibrary.org/obo/NCBITaxon_862507"/>
<oboInOwl:hasAlternativeId>NCBITaxon:85055</oboInOwl:hasAlternativeId>
<oboInOwl:hasExactSynonym>house mouse</oboInOwl:hasExactSynonym>
<oboInOwl:hasOBONamespace>ncbi_taxonomy</oboInOwl:hasOBONamespace>
<oboInOwl:hasExactSynonym>mouse</oboInOwl:hasExactSynonym>
<oboInOwl:hasDbXref>GC_ID:1</oboInOwl:hasDbXref>
<ns3:has_rank rdf:resource="http://purl.obolibrary.org/obo/NCBITaxon_species"/>
</Class>
<!-- http://purl.obolibrary.org/obo/NCBITaxon_862507 -->
<Class rdf:about="http://purl.obolibrary.org/obo/NCBITaxon_862507">
<rdfs:label>Mus <subgenus></rdfs:label>
</Class>
<!-- http://purl.obolibrary.org/obo/NCBITaxon_species -->
<Class rdf:about="http://purl.obolibrary.org/obo/NCBITaxon_species">
<rdfs:label>species</rdfs:label>
</Class>
</rdf:RDF>
<!-- Generated by the OWL API (version 3.2.4.1806) http://owlapi.sourceforge.net --> As of March 25, requests to the same URL were instead returning the following, which broke our code: <?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 <subgenus></rdfs:label>
</rdf:Description>
<rdf:Description rdf:about="&obo;NCBITaxon_species">
<rdfs:label>species</rdfs:label>
</rdf:Description>
</rdf:RDF> |
I see. I am glad that this problem has been resolved mysteriously :-). It appears that the previous broken code has a slightly different format. It is possible that we did some debugging earlier for some debugging purpose, and their debugging resolved this issue without our notice. Anyway, it appears to be a good result. |
FWIW, I have now added (after fixing for allowing larger number of redirects, see #201) a check for the target content in such a response: https://github.com/dandi/upptime/blob/master/.upptimerc.yml#L48 - name: PURL redirect example1 (ontobee)
url: http://purl.obolibrary.org/obo/PATO_0000384
maxRedirects: 6
__dangerous__body_down_if_text_missing: '<Class rdf:about="http://purl.obolibrary.org/obo/PATO_0001894">' anyone ( @yongqunh ) wants to be added as a target for alerts happen such a test (or also ontobee just going down) fails? ;-) |
Sounds good. Is it monitored automatically? How it works? |
Ok, I will add you ;-) Yes, automatically, see https://github.com/upptime/upptime project which pretty much provides a number of ci jobs which periodically hit the prescribed urls to get timing/availability information and then render time trends in the GitHub repo. Also it takes nice care about opening issue when resource disappears, it closing it when it reemerges |
Great. Thanks!
From: Yaroslav Halchenko ***@***.***>
Sent: Wednesday, April 17, 2024 12:17 AM
To: OntoZoo/ontobee ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [OntoZoo/ontobee] Schema changed, breaking our code (Issue #200)
External Email - Use Caution
Ok, I will add you ;-)
Yes, automatically, see https://github.com/upptime/upptime project which pretty much provides a number of ci jobs which periodically hit the prescribed urls to get timing/availability information and then render time trends in the GitHub repo. Also it takes nice care about opening issue when resource disappears, it closing it when it reemerges
-
Reply to this email directly, view it on GitHub<#200 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABPQBGKN4X7S3SYHBQ3STJ3Y5XZTHAVCNFSM6AAAAABFHKW44WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRQGMYTENZYGA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.******@***.***>>
**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues
|
did assignment of @yongqunh in dandi/upptime@702fe03 Feel welcome to submit PR if want to have others added. I guess we could consider this issue resolved for now AFAIK ;) |
Great. I will then close this issue for now. Thanks. |
We have a program that makes queries to URLs like http://purl.obolibrary.org/obo/NCBITaxon_10090 and extracts data from the first
Class
element satisfying some condition. However, the responses from these URLs recently changed so that there are no longer anyClass
elements; the elements seem to have been renamed tordf:Description
. Why is this happening? Is this change intentional?CC @yarikoptic @satra
The text was updated successfully, but these errors were encountered: