kg-construct / rml-lv

Specification repository for logical views in RML.
https://kg-construct.github.io/rml-lv/dev.html
3 stars 3 forks source link

rml:Field needs some properties of rml:Source #34

Open elsdvlee opened 4 months ago

elsdvlee commented 4 months ago

rml:Fieldneeds some properties of rml:Source, especially when switching reference formulation, e.g. rml:null and the seperator specification for CSVW.

pmaria commented 4 months ago

Discussed with @elsdvlee and @DylanVanAssche .

We can solve this by introducing more specific descriptions for reference formulations, like is also done for namespaces and rml:XPathReferenceFormulation.

An example of what this could look like

[]
  rml:logicalSource [
    rml:source [
      rml:root rml:MappingDirectory
      rml:path "data.csv" ;
    ] ;
    rml:referenceFormulation [
      a rml:CsvReferenceFormulation ;
      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 ;
      ] ;
    ] ;
  ] ;

We will raise an an issue for this at rml-io-registry.