Skip to content

Commit

Permalink
Merge pull request #785 from EBISPOT/enhance-curie-logic-tests
Browse files Browse the repository at this point in the history
Test - Update curie formation logic
  • Loading branch information
haideriqbal authored Oct 30, 2024
2 parents f5b45ad + 9f2eba3 commit 4aef53d
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 38 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion testcases_expected_output/duo/classes.jsonl

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion testcases_expected_output/duo/duo_classes.csv

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions testcases_expected_output/duo/ontologies.json
Original file line number Diff line number Diff line change
Expand Up @@ -7504,10 +7504,10 @@
},
"axioms": [
{
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000011"
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000301"
},
{
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000301"
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000011"
}
]
},
Expand Down Expand Up @@ -7741,10 +7741,10 @@
},
"axioms": [
{
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000011"
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000301"
},
{
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000301"
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000011"
}
]
},
Expand Down
8 changes: 4 additions & 4 deletions testcases_expected_output/duo/ontologies_linked.json
Original file line number Diff line number Diff line change
Expand Up @@ -14602,10 +14602,10 @@
},
"axioms": [
{
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000011"
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000301"
},
{
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000301"
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000011"
}
]
},
Expand Down Expand Up @@ -14839,10 +14839,10 @@
},
"axioms": [
{
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000011"
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000301"
},
{
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000301"
"http://purl.obolibrary.org/obo/IAO_0010000": "http://purl.obolibrary.org/obo/bfo/axiom/0000011"
}
]
},
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"_json":"{\"base_uri\":[\"http://exmpl.org/xmpl/\"],\"description\":\"This config will use the defined label_property as label for a class. In OLS4 the value of label_property is a collection.\",\"directAncestor\":[],\"exportsTo\":[],\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\":\"http://www.w3.org/2002/07/owl#Ontology\",\"imported\":false,\"importsFrom\":[],\"iri\":\"http://exmpl.org/xmpl/xmpl.owl\",\"isObsolete\":false,\"label_property\":[\"http://exmpl.org/xmpl/Preferred_name\",\"http://exmpl.org/xmpl/Other_preferred_name\"],\"language\":{\"type\":[\"literal\"],\"value\":\"en\"},\"linkedEntities\":{\"http://exmpl.org/xmpl/Preferred_name\":{\"definedBy\":[\"xmpl\"],\"numAppearsIn\":1.0,\"hasLocalDefinition\":true,\"label\":{\"type\":[\"literal\"],\"value\":\"XMPL_Preferred_name\"},\"curie\":{\"type\":[\"literal\"],\"value\":\"XMPL:Preferred_name\"},\"type\":[\"property\",\"annotationProperty\",\"entity\"]},\"http://exmpl.org/xmpl/Synonym\":{\"definedBy\":[\"xmpl\"],\"numAppearsIn\":1.0,\"hasLocalDefinition\":true,\"label\":{\"type\":[\"literal\"],\"value\":\"XMPL_Synonym\"},\"curie\":{\"type\":[\"literal\"],\"value\":\"XMPL:Synonym\"},\"type\":[\"property\",\"annotationProperty\",\"entity\"]}},\"numDescendants\":0.0,\"numHierarchicalDescendants\":0.0,\"numberOfClasses\":{\"type\":[\"literal\"],\"value\":\"3\"},\"numberOfEntities\":{\"type\":[\"literal\"],\"value\":\"5\"},\"numberOfIndividuals\":{\"type\":[\"literal\"],\"value\":\"0\"},\"numberOfProperties\":{\"type\":[\"literal\"],\"value\":\"2\"},\"ontologyId\":\"xmpl\",\"ontology_purl\":\"./testcases/iri-labels/user-defined-pref-label.owl\",\"preferredPrefix\":\"XMPL\",\"reasoner\":\"none\",\"searchableAnnotationValues\":[false,{\"type\":[\"literal\"],\"value\":\"en\"},{\"type\":[\"literal\"],\"value\":\"3\"},{\"type\":[\"literal\"],\"value\":\"5\"},{\"type\":[\"literal\"],\"value\":\"0\"},{\"type\":[\"literal\"],\"value\":\"2\"}],\"synonym_property\":[\"http://exmpl.org/xmpl/Synonym\"],\"title\":\"Example terminology with user defined pref label\",\"type\":[\"ontology\"],\"uri\":\"http://exmpl.org/xmpl/\"}","base_uri":["http://exmpl.org/xmpl/"],"description":"This config will use the defined label_property as label for a class. In OLS4 the value of label_property is a collection.","directAncestor":[],"exportsTo":[],"http__//www.w3.org/1999/02/22-rdf-syntax-ns#type":"http://www.w3.org/2002/07/owl#Ontology","id":"xmpl+ontology+http://exmpl.org/xmpl/xmpl.owl","imported":"false","importsFrom":[],"iri":"http://exmpl.org/xmpl/xmpl.owl","isObsolete":"false","label_property":["http://exmpl.org/xmpl/Preferred_name","http://exmpl.org/xmpl/Other_preferred_name"],"language":"en","numDescendants":"0.0","numHierarchicalDescendants":"0.0","numberOfClasses":"3","numberOfEntities":"5","numberOfIndividuals":"0","numberOfProperties":"2","ontologyId":"xmpl","ontology_purl":"./testcases/iri-labels/user-defined-pref-label.owl","preferredPrefix":"XMPL","reasoner":"none","searchableAnnotationValues":["false","en","3","5","0","2"],"synonym_property":["http://exmpl.org/xmpl/Synonym"],"title":"Example terminology with user defined pref label","type":["ontology"],"uri":"http://exmpl.org/xmpl/"}
{"_json":"{\"base_uri\":[\"http://exmpl.org/xmpl/\"],\"description\":\"This config will use the defined label_property as label for a class. In OLS4 the value of label_property is a collection.\",\"directAncestor\":[],\"exportsTo\":[],\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\":\"http://www.w3.org/2002/07/owl#Ontology\",\"imported\":false,\"importsFrom\":[],\"iri\":\"http://exmpl.org/xmpl/xmpl.owl\",\"isObsolete\":false,\"label_property\":[\"http://exmpl.org/xmpl/Preferred_name\",\"http://exmpl.org/xmpl/Other_preferred_name\"],\"language\":{\"type\":[\"literal\"],\"value\":\"en\"},\"linkedEntities\":{\"http://exmpl.org/xmpl/Preferred_name\":{\"definedBy\":[\"xmpl\"],\"numAppearsIn\":1.0,\"hasLocalDefinition\":true,\"label\":{\"type\":[\"literal\"],\"value\":\"XMPL_Preferred_name\"},\"curie\":{\"type\":[\"literal\"],\"value\":\"XMPL_Preferred_name\"},\"type\":[\"property\",\"annotationProperty\",\"entity\"]},\"http://exmpl.org/xmpl/Synonym\":{\"definedBy\":[\"xmpl\"],\"numAppearsIn\":1.0,\"hasLocalDefinition\":true,\"label\":{\"type\":[\"literal\"],\"value\":\"XMPL_Synonym\"},\"curie\":{\"type\":[\"literal\"],\"value\":\"XMPL:Synonym\"},\"type\":[\"property\",\"annotationProperty\",\"entity\"]}},\"numDescendants\":0.0,\"numHierarchicalDescendants\":0.0,\"numberOfClasses\":{\"type\":[\"literal\"],\"value\":\"3\"},\"numberOfEntities\":{\"type\":[\"literal\"],\"value\":\"5\"},\"numberOfIndividuals\":{\"type\":[\"literal\"],\"value\":\"0\"},\"numberOfProperties\":{\"type\":[\"literal\"],\"value\":\"2\"},\"ontologyId\":\"xmpl\",\"ontology_purl\":\"./testcases/iri-labels/user-defined-pref-label.owl\",\"preferredPrefix\":\"XMPL\",\"reasoner\":\"none\",\"searchableAnnotationValues\":[false,{\"type\":[\"literal\"],\"value\":\"en\"},{\"type\":[\"literal\"],\"value\":\"3\"},{\"type\":[\"literal\"],\"value\":\"5\"},{\"type\":[\"literal\"],\"value\":\"0\"},{\"type\":[\"literal\"],\"value\":\"2\"}],\"synonym_property\":[\"http://exmpl.org/xmpl/Synonym\"],\"title\":\"Example terminology with user defined pref label\",\"type\":[\"ontology\"],\"uri\":\"http://exmpl.org/xmpl/\"}","base_uri":["http://exmpl.org/xmpl/"],"description":"This config will use the defined label_property as label for a class. In OLS4 the value of label_property is a collection.","directAncestor":[],"exportsTo":[],"http__//www.w3.org/1999/02/22-rdf-syntax-ns#type":"http://www.w3.org/2002/07/owl#Ontology","id":"xmpl+ontology+http://exmpl.org/xmpl/xmpl.owl","imported":"false","importsFrom":[],"iri":"http://exmpl.org/xmpl/xmpl.owl","isObsolete":"false","label_property":["http://exmpl.org/xmpl/Preferred_name","http://exmpl.org/xmpl/Other_preferred_name"],"language":"en","numDescendants":"0.0","numHierarchicalDescendants":"0.0","numberOfClasses":"3","numberOfEntities":"5","numberOfIndividuals":"0","numberOfProperties":"2","ontologyId":"xmpl","ontology_purl":"./testcases/iri-labels/user-defined-pref-label.owl","preferredPrefix":"XMPL","reasoner":"none","searchableAnnotationValues":["false","en","3","5","0","2"],"synonym_property":["http://exmpl.org/xmpl/Synonym"],"title":"Example terminology with user defined pref label","type":["ontology"],"uri":"http://exmpl.org/xmpl/"}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{"_json":"{\"iri\":\"http://exmpl.org/xmpl/Preferred_name\",\"type\":[\"property\",\"annotationProperty\",\"entity\"],\"curie\":{\"type\":[\"literal\"],\"value\":\"XMPL:Preferred_name\"},\"directAncestor\":[],\"hasDirectChildren\":false,\"hasDirectParents\":false,\"hasHierarchicalChildren\":false,\"hasHierarchicalParents\":false,\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\":\"http://www.w3.org/2002/07/owl#AnnotationProperty\",\"http://www.w3.org/2000/01/rdf-schema#range\":\"http://www.w3.org/2001/XMLSchema#string\",\"imported\":false,\"isObsolete\":false,\"isPreferredRoot\":false,\"label\":{\"type\":[\"literal\"],\"value\":\"XMPL_Preferred_name\"},\"numDescendants\":0.0,\"numHierarchicalDescendants\":0.0,\"ontologyId\":{\"type\":[\"literal\"],\"value\":\"xmpl\"},\"ontologyIri\":{\"type\":[\"literal\"],\"value\":\"http://exmpl.org/xmpl/xmpl.owl\"},\"ontologyPreferredPrefix\":{\"type\":[\"literal\"],\"value\":\"XMPL\"},\"searchableAnnotationValues\":false,\"shortForm\":{\"type\":[\"literal\"],\"value\":\"XMPL_Preferred_name\"},\"isDefiningOntology\":true,\"definedBy\":[\"xmpl\"],\"appearsIn\":[\"xmpl\"],\"linkedEntities\":{}}","appearsIn":["xmpl"],"curie":"XMPL:Preferred_name","definedBy":["xmpl"],"directAncestor":[],"hasDirectChildren":"false","hasDirectParents":"false","hasHierarchicalChildren":"false","hasHierarchicalParents":"false","http__//www.w3.org/1999/02/22-rdf-syntax-ns#type":"http://www.w3.org/2002/07/owl#AnnotationProperty","http__//www.w3.org/2000/01/rdf-schema#range":"http://www.w3.org/2001/XMLSchema#string","id":"xmpl+property+http://exmpl.org/xmpl/Preferred_name","imported":"false","iri":"http://exmpl.org/xmpl/Preferred_name","isDefiningOntology":"true","isObsolete":"false","isPreferredRoot":"false","label":"XMPL_Preferred_name","numDescendants":"0.0","numHierarchicalDescendants":"0.0","ontologyId":"xmpl","ontologyIri":"http://exmpl.org/xmpl/xmpl.owl","ontologyPreferredPrefix":"XMPL","searchableAnnotationValues":"false","shortForm":"XMPL_Preferred_name","type":["property","annotationProperty","entity"]}
{"_json":"{\"iri\":\"http://exmpl.org/xmpl/Preferred_name\",\"type\":[\"property\",\"annotationProperty\",\"entity\"],\"curie\":{\"type\":[\"literal\"],\"value\":\"XMPL_Preferred_name\"},\"directAncestor\":[],\"hasDirectChildren\":false,\"hasDirectParents\":false,\"hasHierarchicalChildren\":false,\"hasHierarchicalParents\":false,\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\":\"http://www.w3.org/2002/07/owl#AnnotationProperty\",\"http://www.w3.org/2000/01/rdf-schema#range\":\"http://www.w3.org/2001/XMLSchema#string\",\"imported\":false,\"isObsolete\":false,\"isPreferredRoot\":false,\"label\":{\"type\":[\"literal\"],\"value\":\"XMPL_Preferred_name\"},\"numDescendants\":0.0,\"numHierarchicalDescendants\":0.0,\"ontologyId\":{\"type\":[\"literal\"],\"value\":\"xmpl\"},\"ontologyIri\":{\"type\":[\"literal\"],\"value\":\"http://exmpl.org/xmpl/xmpl.owl\"},\"ontologyPreferredPrefix\":{\"type\":[\"literal\"],\"value\":\"XMPL\"},\"searchableAnnotationValues\":false,\"shortForm\":{\"type\":[\"literal\"],\"value\":\"XMPL_Preferred_name\"},\"isDefiningOntology\":true,\"definedBy\":[\"xmpl\"],\"appearsIn\":[\"xmpl\"],\"linkedEntities\":{}}","appearsIn":["xmpl"],"curie":"XMPL_Preferred_name","definedBy":["xmpl"],"directAncestor":[],"hasDirectChildren":"false","hasDirectParents":"false","hasHierarchicalChildren":"false","hasHierarchicalParents":"false","http__//www.w3.org/1999/02/22-rdf-syntax-ns#type":"http://www.w3.org/2002/07/owl#AnnotationProperty","http__//www.w3.org/2000/01/rdf-schema#range":"http://www.w3.org/2001/XMLSchema#string","id":"xmpl+property+http://exmpl.org/xmpl/Preferred_name","imported":"false","iri":"http://exmpl.org/xmpl/Preferred_name","isDefiningOntology":"true","isObsolete":"false","isPreferredRoot":"false","label":"XMPL_Preferred_name","numDescendants":"0.0","numHierarchicalDescendants":"0.0","ontologyId":"xmpl","ontologyIri":"http://exmpl.org/xmpl/xmpl.owl","ontologyPreferredPrefix":"XMPL","searchableAnnotationValues":"false","shortForm":"XMPL_Preferred_name","type":["property","annotationProperty","entity"]}
{"_json":"{\"iri\":\"http://exmpl.org/xmpl/Synonym\",\"type\":[\"property\",\"annotationProperty\",\"entity\"],\"curie\":{\"type\":[\"literal\"],\"value\":\"XMPL:Synonym\"},\"directAncestor\":[],\"hasDirectChildren\":false,\"hasDirectParents\":false,\"hasHierarchicalChildren\":false,\"hasHierarchicalParents\":false,\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\":\"http://www.w3.org/2002/07/owl#AnnotationProperty\",\"http://www.w3.org/2000/01/rdf-schema#range\":\"http://www.w3.org/2001/XMLSchema#string\",\"imported\":false,\"isObsolete\":false,\"isPreferredRoot\":false,\"label\":{\"type\":[\"literal\"],\"value\":\"XMPL_Synonym\"},\"numDescendants\":0.0,\"numHierarchicalDescendants\":0.0,\"ontologyId\":{\"type\":[\"literal\"],\"value\":\"xmpl\"},\"ontologyIri\":{\"type\":[\"literal\"],\"value\":\"http://exmpl.org/xmpl/xmpl.owl\"},\"ontologyPreferredPrefix\":{\"type\":[\"literal\"],\"value\":\"XMPL\"},\"searchableAnnotationValues\":false,\"shortForm\":{\"type\":[\"literal\"],\"value\":\"XMPL_Synonym\"},\"isDefiningOntology\":true,\"definedBy\":[\"xmpl\"],\"appearsIn\":[\"xmpl\"],\"linkedEntities\":{}}","appearsIn":["xmpl"],"curie":"XMPL:Synonym","definedBy":["xmpl"],"directAncestor":[],"hasDirectChildren":"false","hasDirectParents":"false","hasHierarchicalChildren":"false","hasHierarchicalParents":"false","http__//www.w3.org/1999/02/22-rdf-syntax-ns#type":"http://www.w3.org/2002/07/owl#AnnotationProperty","http__//www.w3.org/2000/01/rdf-schema#range":"http://www.w3.org/2001/XMLSchema#string","id":"xmpl+property+http://exmpl.org/xmpl/Synonym","imported":"false","iri":"http://exmpl.org/xmpl/Synonym","isDefiningOntology":"true","isObsolete":"false","isPreferredRoot":"false","label":"XMPL_Synonym","numDescendants":"0.0","numHierarchicalDescendants":"0.0","ontologyId":"xmpl","ontologyIri":"http://exmpl.org/xmpl/xmpl.owl","ontologyPreferredPrefix":"XMPL","searchableAnnotationValues":"false","shortForm":"XMPL_Synonym","type":["property","annotationProperty","entity"]}
Loading

0 comments on commit 4aef53d

Please sign in to comment.