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

Typos with double columns not caught #22

Open
remiColletGG opened this issue Jun 5, 2024 · 1 comment
Open

Typos with double columns not caught #22

remiColletGG opened this issue Jun 5, 2024 · 1 comment

Comments

@remiColletGG
Copy link

Hello,

I use your http://ttl.summerofcode.be/ tool almost everyday. It saves so much time for files that are sometimes gigantic !

I recently lost my mind over a mapping that did not go through :

@prefix rr:     <http://www.w3.org/ns/r2rml#> .
@prefix era:	<http://data.europa.eu/949/> .
@prefix skos:	<http://www.w3.org/2004/02/skos/core#> .
@prefix prov:   <http://www.w3.org/ns/prov#> .

<https://data.infrabel.be/mapping/rinf/Link/opStart-opEnd/>
  skos:comment "Maps the link between Operational Point and SectionOfLine start with the ERA vocabulary";
  prov:used <https://data.infrabel.be/mapping/rinf/Link/SectionOfLine/OperationalPoint/>;
  a prov:Activity,
    rr:TriplesMap;

  rr::logicalTable [rr:sqlQuery """
  select op.uniqueopid, linesectionid
  from s1390.rinf_operationalpoint op
  join s1390.rinf_section_of_line sol on op.ptcar_id = sol.ptcar_from  
  """ ; ];

  rr:subjectMap [
    rr:template "https://data.infrabel.be/data/SectionOfLine/{linesectionid}" ; 
    rr:termtype rr:IRI  ];

  rr:predicateObjectMap [
    rr:predicate era:opStart;
    rr:objectMap [ rr:template "https://data.infrabel.be/data/OperationalPoint/{uniqueopid}";
                  rr:termtype rr:IRI ]].

If we copy and paste this into the tool, it does not catch that we have a typo rr::logicalTable (two columns instead of only one). Perhaps it's still valid turtle but I'm not really sure.

@init-dcat-ap-de
Copy link

It's valid Turtle. I was looking into the gramar, but it's obivous, because it is still a valid IRI and transforms to
<https://data.infrabel.be/mapping/rinf/Link/opStart-opEnd/> <http://www.w3.org/ns/r2rml#:logicalTable> "[ ... ]" .

But of course it's a hard to find typo...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants