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

. instead of ; when using rr:joinCondition #102

Closed emanuelecavalleri closed 1 year ago

emanuelecavalleri commented 1 year ago

Hi,

I wanted to report that in the .ttl output you get the following output:

<http://project-iasis.eu/BioType/processed_transcript> a iasis:BioType.
        iasis:isRelatedTo <http://project-iasis.eu/Chromosome/chr1>.

At the end of 'BioType' there is a '.' instead of ';':

<http://project-iasis.eu/BioType/processed_transcript> a iasis:BioType;
        iasis:isRelatedTo <http://project-iasis.eu/Chromosome/chr1>.

This issue can be easily fixed:

# Read in the file
with open('output/joinCondition.ttl', 'r') as file :
    filedata = file.read()

# Replace the target string
filedata = filedata.replace('.\n\t', ';\n\t')

# Write the file out again
with open('output/joinCondition.ttl', 'w') as file:
    file.write(filedata)

Thanks for the great work you have done. I used RDFizer in this project testRNA-KG :) Emanuele

eiglesias34 commented 1 year ago

Hello @emanuelecavalleri,

First of all, thank you for using the SDM-RDFizer. I found the issue and fixed it. I made a new release of the SDM-RDFizer. For the time being, I am going to close this issue. If the problem continues on your side, please feel free to reopen this issue.

Thank you again, Enrique Iglesias