-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #785 from EBISPOT/enhance-curie-logic-tests
Test - Update curie formation logic
- Loading branch information
Showing
14 changed files
with
38 additions
and
38 deletions.
There are no files selected for viewing
16 changes: 8 additions & 8 deletions
16
testcases_expected_output/annotation-properties/gitIssue502/classes.jsonl
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 8 additions & 8 deletions
16
testcases_expected_output/annotation-properties/gitIssue502/gitissue502_classes.csv
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
testcases_expected_output/annotation-properties/gitIssue502/gitissue502_properties.csv
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
testcases_expected_output/annotation-properties/gitIssue502/properties.jsonl
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
testcases_expected_output/iri-labels/use-user-defined-pref-label/classes.jsonl
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
testcases_expected_output/iri-labels/use-user-defined-pref-label/ontologies.jsonl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/"} |
2 changes: 1 addition & 1 deletion
2
testcases_expected_output/iri-labels/use-user-defined-pref-label/properties.jsonl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]} |
Oops, something went wrong.