File tree 2 files changed +48
-4
lines changed
2 files changed +48
-4
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "@context" : {
3
+ "schema" : "http://schema.org/" ,
4
+ "title" : "schema:name" ,
5
+ "firstName" : "schema:givenName" ,
6
+ "lastName" : "schema:familyName" ,
7
+ "email" : {
8
+ "@container" : "@index" ,
9
+ "@id" : "schema:email"
10
+ } ,
11
+ "phone" : {
12
+ "@container" : "@index" ,
13
+ "@id" : "schema:telephone"
14
+ } ,
15
+ "summary" : "schema:description" ,
16
+ "website" : "schema:url" ,
17
+ "websites" : {
18
+ "@container" : "@index" ,
19
+ "@id" : "schema:url"
20
+ } ,
21
+ "position" : "schema:namedPosition" ,
22
+ "startDate" : "schema:startDate" ,
23
+ "endDate" : "schema:endDate" ,
24
+ "location" : {
25
+ "@reverse" : "schema:homeLocation"
26
+ } ,
27
+ "work" : {
28
+ "@reverse" : "schema:member"
29
+ } ,
30
+ "awards" : {
31
+ "@reverse" : "schema:winner"
32
+ } ,
33
+ "publications" : {
34
+ "@reverse" : "schema:contributor"
35
+ } ,
36
+ "references" : {
37
+ "@reverse" : "schema:reviewedBy"
38
+ } ,
39
+ "bio" : {
40
+ "@reverse" : "schema:sameAs"
41
+ }
42
+ }
43
+ }
Original file line number Diff line number Diff line change @@ -3,10 +3,9 @@ var fs = require('fs');
3
3
var path = require ( 'path' ) ;
4
4
var resumeJson = require ( './resume' ) ;
5
5
6
-
7
6
// TODO - Remove this sync call
8
7
var schema = JSON . parse ( fs . readFileSync ( path . resolve ( __dirname , 'schema.json' ) , 'utf8' ) ) ;
9
-
8
+ var context = JSON . parse ( fs . readFileSync ( path . resolve ( __dirname , 'resume.jsonld' ) , 'utf8' ) ) ;
10
9
11
10
12
11
function validate ( resumeJson , callback ) {
@@ -19,7 +18,9 @@ function validate(resumeJson, callback) {
19
18
callback ( null , err ) ;
20
19
} )
21
20
}
21
+
22
22
module . exports = {
23
23
validate : validate ,
24
- resumeJson : resumeJson
25
- }
24
+ resumeJson : resumeJson ,
25
+ context : context
26
+ } ;
You can’t perform that action at this time.
0 commit comments