⚡ Sangsakala Proxy 🏠 Home
Skip to content

Commit 1696f05

Browse files
committed
Merge #339 from branch '175-addContextForTesting' of https://github.com/jsonld-java/jsonld-java
2 parents 6ec7dc0 + 1c984b8 commit 1696f05

4 files changed

Lines changed: 157 additions & 9 deletions

File tree

‎core/src/test/java/com/github/jsonldjava/core/LocalBaseTest.java‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010
import java.nio.charset.Charset;
1111
import java.util.List;
1212

13-
import org.junit.Ignore;
1413
import org.junit.Test;
1514

1615
import com.github.jsonldjava.utils.JsonUtils;
1716

1817
public class LocalBaseTest {
19-
@Ignore("TODO: context does no more resolve - see https://github.com/jsonld-java/jsonld-java/issues/175")
2018
@Test
2119
public void testMixedLocalRemoteBaseRemoteContextFirst() throws Exception {
2220

@@ -38,7 +36,6 @@ public void testMixedLocalRemoteBaseRemoteContextFirst() throws Exception {
3836
assertEquals(expanded, output);
3937
}
4038

41-
@Ignore("TODO: context does no more resolve - see https://github.com/jsonld-java/jsonld-java/issues/175")
4239
@Test
4340
public void testMixedLocalRemoteBaseLocalContextFirst() throws Exception {
4441

‎core/src/test/resources/custom/base-0001-in.jsonld‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"@context": [
3-
"https://raw.githubusercontent.com/monarch-initiative/monarch-app/master/conf/monarch-context.jsonld",
2+
"@context": [
3+
"https://raw.githubusercontent.com/jsonld-java/jsonld-java/master/core/src/test/resources/custom/monarch-context.jsonld",
44
{
55
"@base": "http://example.org/base/",
66
"ex": "http://example.org/",
@@ -13,4 +13,5 @@
1313
"ex:name": "Jim",
1414
"ex:friendOf": "1234",
1515
"@type": "Person"
16-
}
16+
}
17+
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
2-
"@context": [
2+
"@context": [
33
{
44
"@base": "http://example.org/base/",
55
"ex": "http://example.org/",
66
"ex:friendOf": {
77
"@type": "@id"
88
}
99
},
10-
"https://raw.githubusercontent.com/monarch-initiative/monarch-app/master/conf/monarch-context.jsonld"
10+
"https://raw.githubusercontent.com/jsonld-java/jsonld-java/master/core/src/test/resources/custom/monarch-context.jsonld"
1111
],
1212
"@id": "3456",
1313
"ex:name": "Jim",
1414
"ex:friendOf": "1234",
1515
"@type": "Person"
16-
}
16+
}
17+
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
{
2+
"@context" : {
3+
"EFO" : "http://purl.obolibrary.org/obo/EFO_",
4+
"obo" : "http://purl.obolibrary.org/obo/",
5+
"inheritance" : "monarch:mode_of_inheritance",
6+
"@base" : "http://monarch-initiative.org/",
7+
"email" : "foaf:mbox",
8+
"BIND" : "http://identifiers.org/bind/bind:",
9+
"morpholino" : "GENO:0000417",
10+
"GENO" : "http://purl.obolibrary.org/obo/GENO_",
11+
"UMLS" : "http://purl.obolibrary.org/obo/UMLS_",
12+
"dcat" : "http://www.w3.org/ns/dcat#",
13+
"PMID" : "http://www.ncbi.nlm.nih.gov/pubmed/",
14+
"MP" : "http://purl.obolibrary.org/obo/MP_",
15+
"ISBN-10" : "http://monarch-initiative.org/publications/ISBN:",
16+
"rdf" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
17+
"title" : "dc:title",
18+
"Class" : "owl:Class",
19+
"FBbt" : "http://purl.obolibrary.org/obo/FBbt_",
20+
"pathway_associations" : "rdfs:seeAlso",
21+
"FBInternalGT" : "http://monarchinitiative.org/genotype/",
22+
"has_genotype" : "GENO:0000222",
23+
"genotype" : "GENO:0000000",
24+
"void" : "http://rdfs.org/ns/void#",
25+
"has_phenotype" : "RO:0002200",
26+
"reference_locus" : "GENO:0000036",
27+
"dbVar" : "http://identifiers.org/dbVar_",
28+
"AQTLTrait" : "http://purl.obolibrary.org/obo/AQTLTrait_",
29+
"phenotype_associations" : "rdfs:seeAlso",
30+
"ECO" : "http://purl.obolibrary.org/obo/ECO_",
31+
"WB" : "http://identifiers.org/WormBase:",
32+
"rdfs" : "http://www.w3.org/2000/01/rdf-schema#",
33+
"variant_loci" : "GENO:0000027",
34+
"MedGen" : "http://purl.obolibrary.org/obo/MedGen_",
35+
"creator" : {
36+
"@id" : "dc:creator",
37+
"@type" : "@id"
38+
},
39+
"SIO" : "http://semanticscience.org/resource/SIO_",
40+
"DOID" : "http://purl.obolibrary.org/obo/DOID_",
41+
"Ensembl" : "http://identifiers.org/ensembl:",
42+
"id" : "@id",
43+
"publisher" : "dc:publisher",
44+
"depiction" : {
45+
"@id" : "foaf:depiction",
46+
"@type" : "@id"
47+
},
48+
"ENSEMBL" : "http://identifiers.org/ensembl:",
49+
"monarch" : "http://monarchinitiative.org/",
50+
"ORPHANET" : "http://purl.obolibrary.org/obo/ORPHANET_",
51+
"owl" : "http://www.w3.org/2002/07/owl#",
52+
"GeneReviews" : "http://www.ncbi.nlm.nih.gov/books/",
53+
"SNOMED_CT" : "http://purl.obolibrary.org/obo/SNOMED_",
54+
"chromosomal_region" : "GENO:0000390",
55+
"EOM" : "http://purl.obolibrary.org/obo/EOM_",
56+
"type" : {
57+
"@id" : "rdf:type",
58+
"@type" : "@id"
59+
},
60+
"FlyBase" : "http://identifiers.org/flybase:",
61+
"DECIPHER" : "http://purl.obolibrary.org/obo/DECIPHER_",
62+
"faldo" : "http://biohackathon.org/resource/faldo#",
63+
"prov" : "http://www.w3.org/ns/prov#",
64+
"MIM" : "http://purl.obolibrary.org/obo/OMIM_",
65+
"genomic_variation_complement" : "GENO:0000009",
66+
"evidence" : "monarch:evidence",
67+
"BioGRID" : "http://purl.obolibrary.org/BioGRID_",
68+
"dcterms" : "http://purl.org/dc/terms/",
69+
"sequence_alteration" : "SO:0001059",
70+
"RO" : "http://purl.obolibrary.org/obo/RO_",
71+
"created" : {
72+
"@id" : "dc:created",
73+
"@type" : "xsd:dateTime"
74+
},
75+
"Orphanet" : "http://purl.obolibrary.org/obo/ORPHANET_",
76+
"oa" : "http://www.w3.org/ns/oa#",
77+
"SGD" : "http://identifiers.org/mgd/sgd:",
78+
"Gene" : "http://purl.obolibrary.org/obo/NCBIGene_",
79+
"PomBase" : "http://identifiers.org/PomBase:",
80+
"genotype_associations" : "rdfs:seeAlso",
81+
"xsd" : "http://www.w3.org/2001/XMLSchema#",
82+
"OMIABreed" : "http://purl.obolibrary.org/obo/OMIA_",
83+
"TAIR" : "http://identifiers.org/mgd/tair:",
84+
"oboInOwl" : "http://www.geneontology.org/formats/oboInOwl#",
85+
"description" : "dc:description",
86+
"disease" : "monarch:disease",
87+
"OMIAPub" : "http://purl.obolibrary.org/obo/OMIAPub_",
88+
"foaf" : "http://xmlns.com/foaf/0.1/",
89+
"idot" : "http://identifiers.org/",
90+
"subClassOf" : "owl:subClassOf",
91+
"source" : "dc:source",
92+
"keyword" : "dcat:keyword",
93+
"onset" : "monarch:age_of_onset",
94+
"genomic_background" : "GENO:0000010",
95+
"dictyBase" : "http://identifiers.org/dictyBase:",
96+
"OMIA" : "http://purl.obolibrary.org/obo/OMIA_",
97+
"has_part" : "BFO:0000051",
98+
"ClinVarVariant" : "http://identifiers.org/ClinVarVariant_",
99+
"gene_locus" : "GENO:0000014",
100+
"effective_genotype" : "GENO:0000525",
101+
"VT" : "http://purl.obolibrary.org/obo/VT_",
102+
"Association" : "SIO:000897",
103+
"resource" : "monarch:nif-resource",
104+
"KEGG" : "http://identifiers.org/kegg:",
105+
"Annotation" : "oa:Annotation",
106+
"FBdv" : "http://purl.obolibrary.org/obo/FBdv_",
107+
"GeneID" : "http://purl.obolibrary.org/obo/NCBIGene_",
108+
"has_background" : "GENO:0000010",
109+
"BFO" : "http://purl.obolibrary.org/obo/BFO_",
110+
"FB" : "http://identifiers.org/flybase:",
111+
"frequency" : "monarch:frequency",
112+
"ZP" : "http://purl.obolibrary.org/obo/ZP_",
113+
"OMIM" : "http://purl.obolibrary.org/obo/OMIM_",
114+
"MGI" : "http://identifiers.org/mgd/MGI:",
115+
"dc" : "http://purl.org/dc/terms/",
116+
"MONARCH" : "http://monarchinitiative.org/MONARCH_",
117+
"ClinVarHaplotype" : "http://identifiers.org/ClinVarHaplotype_",
118+
"homepage" : {
119+
"@id" : "foaf:homepage",
120+
"@type" : "@id"
121+
},
122+
"RGD" : "http://identifiers.org/mgd/rgd:",
123+
"CORIELL" : "http://purl.obolibrary.org/obo/CORIELL_",
124+
"label" : "rdfs:label",
125+
"NCBIGene" : "http://purl.obolibrary.org/obo/NCBIGene_",
126+
"intrinsic_genotype" : "GENO:0000000",
127+
"FBcv" : "http://purl.obolibrary.org/obo/FBcv_",
128+
"WBStrain" : "http://identifiers.org/WormBase:",
129+
"sequence_alteration_collection" : "GENO:0000025",
130+
"reference" : "dc:publication",
131+
"zygosity" : "GENO:0000133",
132+
"chromosome" : "GENO:0000323",
133+
"WormBase" : "http://identifiers.org/WormBase:",
134+
"HPRD" : "http://identifiers.org/hprd/hprd:",
135+
"ClinVar" : "http://purl.obolibrary.org/obo/ClinVar_",
136+
"ISBN-13" : "http://monarch-initiative.org/publications/ISBN:",
137+
"extrinsic_genotype" : "GENO:0000524",
138+
"NCBITaxon" : "http://purl.obolibrary.org/obo/NCBITaxon_",
139+
"environment" : "GENO:0000099",
140+
"variant_locus" : "GENO:0000481",
141+
"comment" : "rdfs:comment",
142+
"SO" : "http://purl.obolibrary.org/obo/SO_",
143+
"phenotype" : "monarch:phenotype",
144+
"ZFIN" : "http://identifiers.org/zfin:",
145+
"HP" : "http://purl.obolibrary.org/obo/HP_",
146+
"MESH" : "http://purl.obolibrary.org/obo/MESH_",
147+
"dbSNP" : "http://identifiers.org/dbSNP_"
148+
}
149+
}

0 commit comments

Comments
 (0)