SDM-TIB / SDM-RDFizer

An Efficient RML-Compliant Engine for Knowledge Graph Construction
https://doi.org/10.5281/zenodo.3872103
Apache License 2.0
107 stars 25 forks source link

rr:language not generating language tags #114

Closed lindsayjgc closed 3 months ago

lindsayjgc commented 3 months ago

Describe the bug We are trying to create a literal value with a language tag and RDFizer is not generating the expected language tag.

To Reproduce

@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix ex: <http://example.com/> .

<#ParentMapping> a rr:TriplesMap;
    rml:logicalSource [
        rml:source "parent.csv" ;
        rml:referenceFormulation ql:CSV
    ] ;
    rr:subjectMap [
        rr:constant "http://example.com/parent/stuff" ;
    ] ;
    rr:predicateObjectMap [
    rr:predicate "http://www.ontologyrepository.com/CommonCoreOntologies/CCO_0000135" ;
    rr:objectMap [
            rr:constant "title" ;
            rr:language "en"
        ]
    ] .

Expected behavior <http://example.com/parent/stuff> <http://www.ontologyrepository.com/CommonCoreOntologies/CCO_0000135> "title"@en.

Actual behavior <http://example.com/parent/stuff> <http://www.ontologyrepository.com/CommonCoreOntologies/CCO_0000135> "title".

eiglesias34 commented 3 months ago

Hello @lindsayjgc,

I hope you are doing well. I'm sorry for not getting back to you sooner. I found the issue and fixed it. Please test it out on your side to make sure that everything works.

Since a new issue was opened, I will close the previous issue I left open for answering questions.

Sincerely, Enrique Iglesias