Open m1ci opened 7 years ago
@m1ci yes but for the RDF term that generates the URL do not forget to define the term type to be an IRI, i.e.
[ ] rml:reference "uri" ; rr:termType rr:IRI
and that's because rr:column
/rml:reference
generate rr:Literal
by default, whereas rr:template
generates an rr:IRI
. If one wants to "overwrite" the default, its rr:termType
is required to be specified.
Hi, For the above example I have the following code in RML:
<#ApisMapping>
rml:logicalSource [
rml:source "data/apis/apis.json";
rml:referenceFormulation ql:JSONPath;
rml:iterator "$.data";
];
rr:subjectMap [
rr:constant ex:resource1;
rr:class semapi:WebAPI
];
rr:predicateObjectMap [
rr:predicateMap [
rr:template "http://example.com/tmp/{$.properties[*].type}"
];
rr:objectMap [
rml:reference "$.properties[*].url";
rr:termType rr:IRI
]
]
and I get the following output:
ex:resource1 <http://example.com/tmp/X-signup> <https://www.weatherbit.io/> , <https://www.weatherbit.io/static/swagger.json> , <https://www.weatherbit.io/blog>;
Is it possible to iterate through predicates? If yes, can you provide an example?
Thanks!
Hi,
Did you solve this?, I have the same problem and making a work around (changing my jsons structure) to make it work
Hi, is it possible to do the following transformation in RML?
Input:
Output
Thanks!