Skip to content
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

Switch to new JSON-LD context file for identifiers #194

Merged
merged 3 commits into from
Jun 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# See: https://github.com/geneontology/go-site/issues/617
# Note: we will later switch to doing this as part of the GO release
minerva-core/src/main/resources/go_context.jsonld:
wget --no-check-certificate https://raw.githubusercontent.com/prefixcommons/biocontext/master/registry/go_context.jsonld -O $@
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public static void beforeClass() throws Exception {
public void testZfinExample() throws Exception {
OWLOntology model = loadModel("gomodel-1.owl");
List<LookupEntry> entities = new ArrayList<>();
entities.add(new LookupEntry(IRI.create("http://zfin.org/ZDB-GENE-991124-7"), "tbx5a", "gene", "NCBITaxon:7955"));
entities.add(new LookupEntry(IRI.create("http://identifiers.org/zfin/ZDB-GENE-991124-7"), "tbx5a", "gene", "NCBITaxon:7955"));
// is actually a gene, but made a protein for this test case
entities.add(new LookupEntry(IRI.create("http://zfin.org/ZDB-GENE-040426-2843"), "kctd10", "protein", "NCBITaxon:7955"));
entities.add(new LookupEntry(IRI.create("http://identifiers.org/zfin/ZDB-GENE-040426-2843"), "kctd10", "protein", "NCBITaxon:7955"));
GafDocument gafDocument = translate(model, "gomodel-1", entities);
List<GeneAnnotation> allAnnotations = gafDocument.getGeneAnnotations();
assertFalse(allAnnotations.isEmpty());
Expand Down Expand Up @@ -96,6 +96,7 @@ else if (shortEvidence == null) {
List<Bioentity> noSymbol = new ArrayList<>();

for (Bioentity entity : bioentities) {
System.out.println("ENTITY: " + entity);
if (entity.getNcbiTaxonId() == null) {
noTaxon.add(entity);
}
Expand Down
2 changes: 1 addition & 1 deletion minerva-converter/src/test/resources/catalog-v001.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uri name="http://purl.obolibrary.org/obo/go/extensions/go-lego.owl" uri="go-lego-module.omn.gz"/>
<uri name="http://purl.obolibrary.org/obo/go/extensions/go-lego.owl" uri="go-lego-module.omn"/>
</catalog>
Loading