Skip to content

Typos with double columns not caught #22

@remiColletGG

Description

@remiColletGG

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions