Troubles uploading a mapping file #40
|
Hello everybody, File contains no section headers. file: '3xtudio_files_temp/mapping_from_file.ttl', line: 1 '@Prefix rr: .\n'. I have tried to change the namespaces, I've tried changing the way it is written, I've made sure the file itself is saved as "UTF-8" without BOM. I also tried to write out the namespaces without copying them from somewhere, so the angled brackets aren't changed into html, but that didn't work either. Maybe i am overlooking something? Thank you in advance, I think this tool is a really interesting idea! Here's my process: My current python version is 3.13.11. After I was able to open 3xtudio, I created a mapping in global configuration. Then I wanted to upload an exisiting mapping file, but that did not work. As far as I understand, 3xtudio cannot see the IRIS provided in the mapping. That is as far as I got. My Syntax was along the lines of this; except the @Prefix was always written in lowercase. @prefix rr: <http://ww.w3.org/ns/r2rml#> .
@prefix rml: <http://semweb.mmlab.be/ns/ql#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix ex: <https://company.com/id/000/abc#> .
<#ABCD_Vocabulary>
rml:logicalSource [
rml:query """
SELECT *
FROM read_csv('./tmp/data.tsv', delim='\t', auto_detect=true, all_varchar=1)
"""
];
rr:subjectMap [
rr:constant <https://company.com/id/000/abc>;
rr:class skos:ConceptScheme;
];
rr:predicateObjectMap [
rr:predicate skos:hasTopConcept;
rr:objectMap [
rr:template "https://company.com/id/000/abc{Code}";
];
];
. |
Replies: 1 comment 4 replies
|
Hi, This is probably due to the version of morph-kgc. To import mappings you need to install the latest version of morph-kgc directly from the GitHub repository: This is because we are using some functions in morph-kgc that are not available in its latest release. This will be solved when we make the first stable release of 3xtudio, which will be soon. |
Hi,
This is probably due to the version of morph-kgc. To import mappings you need to install the latest version of morph-kgc directly from the GitHub repository:
This is because we are using some functions in morph-kgc that are not available in its latest release. This will be solved when we make the first stable release of 3xtudio, which will be soon.