Closed Stiksels closed 7 months ago
Hi @Stiksels, As there is no consensus in the W3C CG about supporting BN without data references, I would not consider implementing this feature for now. However, I can provide support for BN with data reference on the subject. As there is no example in the spec, I will do it similarly as it's indicated for ObjectMaps, as both (OM and SM) are term maps.
It will be something like:
identificator:
sources:
- ['yatter-test.csv~csv']
# Define subject as null, indicating a blank node will be generated
s:
value: $(participantUuid) # could be template, reference or constant
type: blank
# Define predicate-object mappings
po:
- [a, adms:Identifier]
- [skos:notation, exp:$(participantUuid), xsd:anyURI]
- [dcterms:creator, wegwijs:OVO026559~iri]
BN are now supported in subject and object, please see the test case as an example https://github.com/oeg-upm/yatter/blob/main/test/r2rml/YARRRMLTC-r2rml-0016/mapping.yml
Describe the bug Following the YARRRML subjects spec, I use blank nodes with
s: null
. This is not supported by yatterTo Reproduce Steps to reproduce the behavior (and resources): with the files below, run the yatter library
python3 -m yatter -i yarrrml/yatter-test.yml -o rml/yatter-test_rml.ttl
yatter-test.yml
yatter-test.csv
Current behavior TypeError stacktrace
Expected behavior an RML file is produced like the one by YARRRML's matey: output.rml.ttl.txt
output turtle output (1).txt