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

Special characters causes RDFizer to create invalid triple #116

Open KenHaskell opened 2 weeks ago

KenHaskell commented 2 weeks ago

Describe the bug Special characters (for instance, "/") causes RDFizer to create invalid triple by not enclosing the word in quotes. It instead treats it as a class.

To Reproduce

<#ParentMapping> a rr:TriplesMap;
rml:logicalSource [ 
    rml:source "constant.csv" ; 
    rml:referenceFormulation ql:CSV
] ; 
rr:subjectMap [ 
    rr:constant "http://www.ontologyrepository.com/CommonCoreOntologies/InformationBearingEntity/229c7104-3f46-42ce-877d-b9a64fe145df-20240828092059" ; 
    rr:class "http://www.ontologyrepository.com/CommonCoreOntologies/InformationBearingEntity" ; 
    rr:class owl:NamedIndividual ; 
] ;
rr:predicateObjectMap [
    rr:predicate "http://www.ontologyrepository.com/CommonCoreOntologies/has_text_value" ;
    rr:objectMap [
        rr:constant "Planned/Actual Operation Date" ;
        rr:language "en"
    ]
] .

Expected behavior <http://example.com/parent/stuff> <http://www.ontologyrepository.com/CommonCoreOntologies/has_text_value> "Planned/Actual Operation Date"@en.

Actual behavior <http://example.com/parent/stuff> <http://www.ontologyrepository.com/CommonCoreOntologies/has_text_value> <Planned/Actual Operation Date>.

eiglesias34 commented 4 days ago

Dear @KenHaskell,

I hope you are doing well. I am sorry for the late response. I found the issue and fixed it. Please test it out so we can close this issue.

Sincerely, Enrique