@rmlio/yarrrml-parser
Version:
Parse YARRRML descriptions into RML RDF statements
29 lines (27 loc) • 596 B
YAML
prefixes:
ex: http://example.com/
mappings:
person:
source:
- [test.csv~csv]
s: http://ex.org/$(id)
po:
- [a, ex:Person]
book:
source:
- [test2.csv~csv]
s: http://ex.org/book/$(id)
po:
- [a, ex:Book]
- p: ex:author
o:
mapping: person
condition:
function: equal
parameters:
- [str1, $(author), s]
- parameter: str2
value:
function: ex:toLowerCase
parameters:
- [ex:input, $(name), o]