Open Sealdolphin opened 4 years ago
@Sealdolphin
i don't think you can do this
rr:template "/{.subject.name}";
try
rr:template "http://something.com/{.subject.name}";
EDIT: maybe i am wrong. checking now...
nevermind my note above. i see what you are trying to get now.
If the term type is rr:IRI, then replace the pair of curly braces with an IRI-safe version of value; otherwise, replace the pair of curly braces with value.
that rule in the spec seems to be preventing you from doing it. interesting case though...
@Sealdolphin did you see this https://stackoverflow.com/questions/65900785/is-there-any-way-in-rml-r2rml-to-take-a-value-as-an-iri/66060476#66060476
Wow, I certainly check that out. Nice catch @justin2004 ! However, I think RML should work without this.
Greetings!
@justin2004 @DylanVanAssche
Has there been any progress on this? We are generating a ton of rdfs:range predicates whose objects need to be uris from the w3c xsd datatypes standard, e.g., xsd:string, xsd:boolean....etc...
RMLMapper version: rmlmapper-6.0.0-r363-all
Output is...
rdfs:range "http://www.w3.org/2001/XMLSchema#string"^^<http://www.w3.org/ns/r2rml#IRI> ;
Output we need...
rdfs:range <http://www.w3.org/2001/XMLSchema#string> ;
Preferred output with declared prefix in mapping file...
rdfs:range xsd:string ;
I have tried all suggestions and nothing seems to get the desired result.
Please advise. Thanks!
Hello,
I recently noticed, that IRI-s behave differently if I use them in an
objectMap
as if I use them in apredicateMap
. I am trying to create Linked data from a structured JSON file in a way, that I use the JSON to sort of build the predicate IRI-s as well. When I use this method in apredicateMap
this works fine, however if I use it in anobjectMap
it calls out, that the IRI I want to build is not a valid IRI.My example json:
My mapping
The output:
Notice the object is in quotation marks (because I marked the termType Literal I guess), however the predicate work as I expected.
If I don't mark the termType explicitly, or I mark as
rr:IRI
the RMLMapper says that:I belive this is because he tries to convert my IRI to an IRI-safe string and therefore it does not count. I want to create the triple above without the quotes. Is it possible?