Open mdorf opened 4 years ago
Here is another example with SNOMED (Term with ID: http://purl.bioontology.org/ontology/SNOMEDCT/773397000)
Produces:
{
"prefLabel": "Non-hypoproteinemic hypertrophic gastropathy",
"synonym": [
"Hypertrophic gastropathy without hypoproteinemia"
],
"definition": [ ],
"submission": "http://data.bioontology.org/ontologies/SNOMEDCT/submissions/20",
"@id": "http://purl.bioontology.org/ontology/SNOMEDCT/773397000",
"@type": "http://www.w3.org/2002/07/owl#Class"
}
Where as:
Produces:
{
"synonym": [
"Hypertrophic gastropathy without hypoproteinemia"
],
"definition": [
"A rare gastroesophageal disease characterized by diffusely enlarged gastric folds, excessive mucus secretion, normal serum protein and gastric TGF-alpha levels. Patients typically present anemia, abdominal pain not related to eating or bowel habits and absence of peripheral edema."
],
"submission": "http://data.bioontology.org/ontologies/SNOMEDCT/submissions/20",
"@id": "http://purl.bioontology.org/ontology/SNOMEDCT/773397000",
"@type": "http://www.w3.org/2002/07/owl#Class"
}
The "definition" is absent in the first case and present in the second. The term itself contains both a prefLabel and definition:
{
"prefLabel": "Non-hypoproteinemic hypertrophic gastropathy",
"synonym": [
"Hypertrophic gastropathy without hypoproteinemia"
],
"definition": [
"A rare gastroesophageal disease characterized by diffusely enlarged gastric folds, excessive mucus secretion, normal serum protein and gastric TGF-alpha levels. Patients typically present anemia, abdominal pain not related to eating or bowel habits and absence of peripheral edema."
],
"submission": "http://data.bioontology.org/ontologies/SNOMEDCT/submissions/20",
"@id": "http://purl.bioontology.org/ontology/SNOMEDCT/773397000",
"@type": "http://www.w3.org/2002/07/owl#Class"
}
This does not happen with every ontology. But while running the new server_data_comparator script, I've discovered the following behavior:
https://stagedata.bioontology.org/ontologies/PDQ/classes?no_links=true&no_context=true&display=prefLabel,synonym,definition,submission&pagesize=30
If you look for the class: "http://purl.bioontology.org/ontology/PDQ/CDR0000660818, you will discover the following output (note that "definition" is missing):
If you then change the order of the fields in the
display
parameter, the results come back with different fields populated. "definition" is now present, while "prefLabel" is null.https://stagedata.bioontology.org/ontologies/PDQ/classes?no_links=true&no_context=true&display=synonym,definition,prefLabel,submission&pagesize=30
This class contains both the prefLabel and definition, which is evident by running this call:
https://data.bioontology.org/ontologies/PDQ/classes/http%3A%2F%2Fpurl.bioontology.org%2Fontology%2FPDQ%2FCDR0000660818?no_links=true&no_context=true&display=prefLabel,synonym,definition,submission
So, the order of the display parameters appears to affect the results, which should not be the case. This does not appear to be an issue across the board.