-
Notifications
You must be signed in to change notification settings - Fork 0
/
character-rules.yml
27 lines (24 loc) · 1.02 KB
/
character-rules.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
prefixes:
afn: https://betweenourworlds.org/function/
bow: https://betweenourworlds.org/ontology/
dbo: http://dbpedia.org/ontology/
idlab-fn: http://example.com/idlab/function/
base: https://betweenourworlds.org/generation-rule/
sources:
character_source:
access: characters-0.json
referenceFormulation: jsonpath
iterator: $.[*]
mappings:
character:
source: character_source
s: https://betweenourworlds.org/character/$(attributes.slug)
po:
- [a, [bow:Character, schema:Thing]]
- [[rdfs:label, schema:name, dbo:title], $(attributes.name)]
- [[rdfs:label, schema:name, dbo:title], $(attributes.names.en), en~lang]
- [[rdfs:label, schema:name, dbo:title], $(attributes.names.ja_jp), ja~lang]
- [schema:mainEntityOfPage, https://myanimelist.net/character/$(attributes.malId), schema:URL]
- [[schema:description, rdfs:comment], $(attributes.description)]
- [schema:image, $(attributes.image.original), schema:URL]
- [schema:alternateName, $(attributes.otherNames)]