我正在使用RMLMapper并想要映射模式,例如
<title>
<string language="en-US">Golf Explained</string>
<string language="es">Explicó Golf</string>
</title>
至
<http://ex.org/ex> schema:name "Golf Explained"@en-US, "Explicó Golf"@es
我有(跳过不相关的代码块)
rr:predicateObjectMap [
rr:predicate sdo:name;
rr:objectMap [
rml:reference "/lom/general/title/string";
rr:termType rr:Literal;
rr:language "en"
]
];
哪个有效,但适用于英语。如何从 /lom/general/title/string@language 生成语言标签来替换“en”?
我试过了
rr:predicateObjectMap [
rr:predicate sdo:name;
rr:objectMap [
rml:reference "/lom/general/title/string";
rr:termType rr:Literal;
rr:language [rml:reference "/lom/general/title/string/@language"]
]
];
不高兴“语言标签“node1ef4p39f8x5”不符合 BCP 47 标准”