Skip to content

Commit

Permalink
Merge pull request #829 from EBISPOT/update-api-fields-tests-api
Browse files Browse the repository at this point in the history
API_TESTS - Update ontolog_purl and mailing_list fields
  • Loading branch information
haideriqbal authored Jan 27, 2025
2 parents 8012d73 + ef2ef39 commit 6829053
Show file tree
Hide file tree
Showing 39 changed files with 126 additions and 125 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@ public enum DefinedFields {
"Set to true if this entity is a preferred root or not.", "boolean"),
LABEL("label", "", "The name or names of this entity.", "string"),
LANGUAGE("language", "", "The language or languages this ontology is available in.", "array"),
MAILING_LIST("mailingList", "", "The mailing list for the ontology.", "string"),
NUM_DESCENDANTS ("numDescendants", "", "Number of descendants of this entity.", "integer"),
NUM_HIERARCHICAL_DESCENDANTS ("numHierarchicalDescendants", "",
"Number of hierarchical descendants of this entity.", "integer"),
ONTOLOGY_PURL("ontologyPurl", "", "The URL of the ontology to download the ontology file.", "string"),
PREFERRED_ROOT("preferredRoot", "",
"A list of entities that serve as roots for this ontology.", "array"),
RELATED_FROM("relatedFrom","", "The list of classes in which this class is used as part of its definition. " +
Expand All @@ -49,9 +51,7 @@ public enum DefinedFields {
" in defining this class. It only considers classes in the filler position, not classes expressions in the filler position." +
"I.e. 'liver disease' (EFO:0001421) has a relatedTo relation with 'liver' (UBERON:0002107) because " +
"'liver disease' is a subclass of 'has_disease_location some liver'.", "array"),
SYNONYM("synonym", "", "The list of names that are synonyms of this entity.", "array"),
MAILING_LIST("mailingList", "", "The mailing list for the ontology.", "string"),
ONTOLOGY_PURL("ontologyPurl", "", "The URL of the ontology to download the ontology file.", "string");
SYNONYM("synonym", "", "The list of names that are synonyms of this entity.", "array");

private final String text;
private final String ols3Text;
Expand Down
1 change: 1 addition & 0 deletions testcases_expected_output_api/ontologies.json
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,7 @@
"id": "labelsingle",
"isSkos": false,
"labelProperty": "http://www.w3.org/2000/01/rdf-schema#label",
"mailingList": "help@ols.ebi.ac.uk",
"namespace": "labelsingle",
"oboSlims": false,
"preferredPrefix": "labelSingle",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
"graph": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000408/graph"
},
"is_quality_measurement_of": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000408/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000221"
},
"has_measurement_unit_label": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000408/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000039"
},
"is_quality_measurement_of": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000408/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000221"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
"graph": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000572/graph"
},
"has_specified_input": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000572/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FOBI_0000293"
},
"has_specified_output": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000572/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FOBI_0000299"
},
"has_specified_input": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000572/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FOBI_0000293"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@
"graph": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000574/graph"
},
"has_specified_output": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000574/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FOBI_0000299"
},
"has_participant": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000574/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0000057"
},
"has_specified_output": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000574/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FOBI_0000299"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@
"has_specified_output": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000580/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FOBI_0000299"
},
"has_specified_input": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000580/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FOBI_0000293"
},
"has_participant": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000580/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0000057"
},
"has_specified_input": {
"href": "http://localhost:8080/api/ontologies/duo/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FIAO_0000580/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FOBI_0000293"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"graph": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FGO_0019226/graph"
},
"has_part": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FGO_0019226/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000051"
},
"part_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FGO_0019226/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000050"
},
"has_part": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FGO_0019226/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000051"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@
"graph": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000062/graph"
},
"part_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000062/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000050"
},
"capable_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000062/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002215"
},
"has_2D_boundary": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000062/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002002"
},
"part_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000062/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000050"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@
"graph": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000068/graph"
},
"precedes": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000068/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000063"
"part_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000068/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000050"
},
"simultaneous_with": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000068/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002082"
},
"part_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000068/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000050"
"precedes": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000068/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000063"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
"graph": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000071/graph"
},
"ends": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000071/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002229"
},
"part_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000071/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000050"
},
"ends": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000071/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002229"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@
"graph": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000092/graph"
},
"preceded_by": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000092/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000062"
"simultaneous_with": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000092/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002082"
},
"part_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000092/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000050"
},
"simultaneous_with": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000092/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002082"
"preceded_by": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000092/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000062"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
"graph": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000108/graph"
},
"preceded_by": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000108/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000062"
},
"part_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000108/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000050"
},
"preceded_by": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000108/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000062"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
"graph": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000109/graph"
},
"simultaneous_with": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000109/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002082"
},
"preceded_by": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000109/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000062"
},
"only_in_taxon": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000109/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002160"
},
"simultaneous_with": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000109/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002082"
},
"part_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000109/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000050"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
"only_in_taxon": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000110/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002160"
},
"preceded_by": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000110/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000062"
},
"simultaneous_with": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000110/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002082"
},
"preceded_by": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000110/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000062"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
"graph": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000463/graph"
},
"part_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000463/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000050"
},
"has_quality": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000463/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0000086"
},
"part_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000463/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000050"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
"graph": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000467/graph"
},
"has_part": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000467/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000051"
},
"part_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000467/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000050"
},
"has_part": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000467/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000051"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@
"graph": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000949/graph"
},
"existence_ends_during": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000949/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002492"
},
"only_in_taxon": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000949/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002160"
},
"composed_primarily_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000949/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002473"
},
"existence_ends_during": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000949/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002492"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
"graph": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000990/graph"
},
"existence_ends_during": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000990/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002492"
"capable_of_part_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000990/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002216"
},
"has_part": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000990/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FBFO_0000051"
},
"capable_of_part_of": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000990/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002216"
"existence_ends_during": {
"href": "http://localhost:8080/api/ontologies/gitissue502/terms/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FUBERON_0000990/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FRO_0002492"
}
}
}
Loading

0 comments on commit 6829053

Please sign in to comment.