Skip to content

Commit 077d1ff

Browse files
authored
Package context files through make (#289)
This enables packages that use `sssom-schema` as a dependency to use context files within this package rather than doing a `wget` which is not efficient. This will be address : mapping-commons/sssom-py#375 via mapping-commons/sssom-py#382
1 parent 6e4b54f commit 077d1ff

File tree

3 files changed

+1978
-1
lines changed

3 files changed

+1978
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ install:
4040
poetry install
4141
.PHONY: install
4242

43-
all: gen-project gendoc gen-excel
43+
all: gen-project gendoc gen-excel get-context
4444
%.yaml: gen-project
4545
deploy: all mkd-gh-deploy
4646

@@ -57,6 +57,10 @@ check-config:
5757
convert-examples-to-%:
5858
$(patsubst %, $(RUN) linkml-convert % -s $(SOURCE_SCHEMA_PATH) -C Person, $(shell find src/data/examples -name "*.yaml"))
5959

60+
get-context:
61+
mkdir -p $(SRC)/$(SCHEMA_NAME)/context
62+
cp $(DEST)/jsonld/* $(SRC)/$(SCHEMA_NAME)/context
63+
6064
examples/%.yaml: src/data/examples/%.yaml
6165
$(RUN) linkml-convert -s $(SOURCE_SCHEMA_PATH) -C Person $< -o $@
6266
examples/%.json: src/data/examples/%.yaml
Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
{
2+
"_comments": "Auto generated from sssom_schema.yaml by jsonldcontextgen.py version: 0.1.1\n Generation date: 2023-06-11T14:18:30\n Schema: sssom\n metamodel version: 1.7.0\n model version: None\n \n id: https://w3id.org/sssom/schema/\n description: Datamodel for Simple Standard for Sharing Ontological Mappings (SSSOM)\n license: https://creativecommons.org/publicdomain/zero/1.0/\n ",
3+
"@context": {
4+
"dc": "http://purl.org/dc/terms/",
5+
"dcterms": "http://purl.org/dc/terms/",
6+
"linkml": "https://w3id.org/linkml/",
7+
"oboInOwl": "http://www.geneontology.org/formats/oboInOwl#",
8+
"owl": "http://www.w3.org/2002/07/owl#",
9+
"pav": "http://purl.org/pav/",
10+
"prov": "http://www.w3.org/ns/prov#",
11+
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
12+
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
13+
"semapv": "https://w3id.org/semapv/vocab/",
14+
"skos": "http://www.w3.org/2004/02/skos/core#",
15+
"sssom": "https://w3id.org/sssom/",
16+
"@vocab": "https://w3id.org/sssom/",
17+
"author_id": {
18+
"@type": "rdfs:Resource",
19+
"@id": "pav:authoredBy"
20+
},
21+
"comment": {
22+
"@id": "rdfs:comment"
23+
},
24+
"confidence": {
25+
"@type": "xsd:double"
26+
},
27+
"creator_id": {
28+
"@type": "rdfs:Resource",
29+
"@id": "dc:creator"
30+
},
31+
"curation_rule": {
32+
"@type": "rdfs:Resource"
33+
},
34+
"documentation": {
35+
"@type": "@id"
36+
},
37+
"homepage": {
38+
"@type": "@id"
39+
},
40+
"imports": {
41+
"@type": "@id"
42+
},
43+
"last_updated": {
44+
"@type": "xsd:date"
45+
},
46+
"license": {
47+
"@type": "@id",
48+
"@id": "dcterms:license"
49+
},
50+
"mapping_cardinality": {
51+
"@context": {
52+
"@vocab": "@null",
53+
"text": "skos:notation",
54+
"description": "skos:prefLabel",
55+
"meaning": "@id"
56+
}
57+
},
58+
"mapping_date": {
59+
"@type": "xsd:date",
60+
"@id": "pav:authoredOn"
61+
},
62+
"mapping_justification": {
63+
"@type": "rdfs:Resource"
64+
},
65+
"mapping_provider": {
66+
"@type": "@id"
67+
},
68+
"mapping_registry_id": {
69+
"@type": "rdfs:Resource"
70+
},
71+
"mapping_set_description": {
72+
"@id": "dc:description"
73+
},
74+
"mapping_set_id": {
75+
"@type": "@id"
76+
},
77+
"mapping_set_references": {
78+
"@type": "@id"
79+
},
80+
"mapping_set_source": {
81+
"@type": "@id",
82+
"@id": "prov:wasDerivedFrom"
83+
},
84+
"mapping_set_title": {
85+
"@id": "dc:title"
86+
},
87+
"mapping_set_version": {
88+
"@id": "owl:versionInfo"
89+
},
90+
"mapping_source": {
91+
"@type": "rdfs:Resource"
92+
},
93+
"mappings": {
94+
"@type": "@id"
95+
},
96+
"mirror_from": {
97+
"@type": "@id"
98+
},
99+
"object_id": {
100+
"@type": "rdfs:Resource",
101+
"@id": "owl:annotatedTarget"
102+
},
103+
"object_match_field": {
104+
"@type": "rdfs:Resource"
105+
},
106+
"object_preprocessing": {
107+
"@type": "rdfs:Resource"
108+
},
109+
"object_source": {
110+
"@type": "rdfs:Resource"
111+
},
112+
"object_type": {
113+
"@context": {
114+
"@vocab": "@null",
115+
"text": "skos:notation",
116+
"description": "skos:prefLabel",
117+
"meaning": "@id"
118+
}
119+
},
120+
"predicate_id": {
121+
"@type": "rdfs:Resource",
122+
"@id": "owl:annotatedProperty"
123+
},
124+
"predicate_modifier": {
125+
"@context": {
126+
"@vocab": "@null",
127+
"text": "skos:notation",
128+
"description": "skos:prefLabel",
129+
"meaning": "@id"
130+
}
131+
},
132+
"predicate_type": {
133+
"@context": {
134+
"@vocab": "@null",
135+
"text": "skos:notation",
136+
"description": "skos:prefLabel",
137+
"meaning": "@id"
138+
}
139+
},
140+
"publication_date": {
141+
"@type": "xsd:date",
142+
"@id": "dc:created"
143+
},
144+
"registry_confidence": {
145+
"@type": "xsd:double"
146+
},
147+
"reviewer_id": {
148+
"@type": "rdfs:Resource"
149+
},
150+
"see_also": {
151+
"@id": "rdfs:seeAlso"
152+
},
153+
"semantic_similarity_score": {
154+
"@type": "xsd:double"
155+
},
156+
"subject_id": {
157+
"@type": "rdfs:Resource",
158+
"@id": "owl:annotatedSource"
159+
},
160+
"subject_match_field": {
161+
"@type": "rdfs:Resource"
162+
},
163+
"subject_preprocessing": {
164+
"@type": "rdfs:Resource"
165+
},
166+
"subject_source": {
167+
"@type": "rdfs:Resource"
168+
},
169+
"subject_type": {
170+
"@context": {
171+
"@vocab": "@null",
172+
"text": "skos:notation",
173+
"description": "skos:prefLabel",
174+
"meaning": "@id"
175+
}
176+
},
177+
"Mapping": {
178+
"@id": "owl:Axiom"
179+
}
180+
}
181+
}

0 commit comments

Comments
 (0)