Skip to content

CSVW reference formulation instances #49

@pmaria

Description

@pmaria

See: kg-construct/rml-lv#34 (comment)

In RML-LV it is possible to switch reference formulations when defining fields voor a logical view, for example when you have nested CSV data nested within a JSON document. CSVW would help a great deal to be able to specify how to handle the csv data (delimiter, header, etc).

A proposal for this is to allow instances of rml:CsvwReferenceFormulation to configure CSVW aspects for that specific reference formulation, similar to namespaces and rml:XPathReferenceFormulation.

[]
  rml:logicalSource [
    rml:source [
      rml:root rml:MappingDirectory
      rml:path "data.csv" ;
    ] ;
    rml:referenceFormulation [
      a rml:CsvwReferenceFormulation ;
      rml:option [
        rml:null "" ; 
      ] ;
      rml:csvwTableSchema [
        a csvw:TableSchema ;
        csvw:columns ( "id" "name" "age" ) ;
      ] ;
      rml:csvwDialect [
        a csvw:Dialect ;
        csvw:delimiter ";" ;
        csvw:quoteChar "\"" ;
        csvw:escapeChar "\\" ;
        csvw:commentChar "#" ;
        csvw:header false ;
        csvw:skipRows 1 ;
      ] ;
    ] ;
  ] ;

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions