-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules-multiple.example.yml
43 lines (42 loc) · 1.06 KB
/
rules-multiple.example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
prefixes:
schema: "http://schema.org/"
dbo: "http://dbpedia.org/ontology/"
rdfs: "http://www.w3.org/2000/01/rdf-schema#"
targets:
show_target: ["http://localhost:3000/testing/tv-shows~void", "turtle"]
ratings_target: ["http://localhost:3000/testing/ratings~void", "turtle"]
mappings:
tv-show:
sources:
- ['data.json~jsonpath', '$.data[*]']
s:
- value: $(show)
targets: show_target
po:
- [rdfs:label, $(title)]
- [dbo:abstract, $(description)]
review-show-link:
sources:
- ['data.json~jsonpath', '$.data[*]']
s:
- value: $(show)
targets: ratings_target
po:
- [schema:review, $(review)]
review:
sources:
- ['data.json~jsonpath', '$.data[*]']
s:
- value: $(review)
targets: ratings_target
po:
- [schema:datePublished, $(reviewDate)]
- [schema:reviewRating, $(rating)]
rating:
sources:
- ['data.json~jsonpath', '$.data[*]']
s:
- value: $(rating)
targets: ratings_target
po:
- [schema:ratingValue, $(score)]