Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataType for result of Function is ignored? #38

Open
mnieuwland opened this issue Mar 15, 2022 · 2 comments
Open

DataType for result of Function is ignored? #38

mnieuwland opened this issue Mar 15, 2022 · 2 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@mnieuwland
Copy link

When I define the DataType to be of type 'iri', this seems to be ignored for the result of a Function.

In the Predicate_Object sheet:

Predicate Object DataType
rdf:type <Function1> iri

The generated RML mapping looks something like:

<#Function1>
    a rr:TriplesMap;
    a fnml:FunctionTermMap;

    fnml:functionValue [ ....

The result when using RMLMapper is a triple that looks like:
<subject> a "http://example.com/uri"

I would expect:
<subject> a ex:uri

When I manually add rr:termType rr:IRI to the RML mapping I do get the desired triple

<#Function1>
    a rr:TriplesMap;
    a fnml:FunctionTermMap;
    rr:termType rr:IRI;

    fnml:functionValue [ ....
@anaigmo anaigmo self-assigned this Mar 16, 2022
@anaigmo anaigmo added the enhancement New feature or request label Mar 16, 2022
@anaigmo
Copy link
Member

anaigmo commented Apr 8, 2022

Solved in v1.5.4

@anaigmo anaigmo closed this as completed Apr 8, 2022
@mnieuwland
Copy link
Author

Thanks for solving this. Hower, now it seems that the Function always gets the datatype IRI.

So, when I have a Predicate_Object tab like this:

Predicate Object DataType
time:inXSDDate <DateReformat> date

The resulting RML looks like:

<#DateReformat>
    a rr:TriplesMap;
    a fnml:FunctionTermMap;
    rr:termType rr:IRI;

I would expect:

<#DateReformat>
    a rr:TriplesMap;
    a fnml:FunctionTermMap;
    rr:datatype xsd:date;

@anaigmo anaigmo reopened this Apr 15, 2022
@anaigmo anaigmo added the bug Something isn't working label Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants