Skip to content

Cellfie 2.0.0-beta-7

Compare
Choose a tag to compare
@johardi johardi released this 14 Mar 18:08
· 80 commits to master since this release

Release Note

Summary

This release fixes various bugs and provides new functionality that corresponds to the new feature of MappingMaster library.

New Functionality

  • Added new string manipulation function mm:decimalFormat to create a user-specified number format. Thanks to @martinjoconnor for the implementation.

An example usage:

Individual: @A1
   Facts: hasSalary @B1(mm:decimalFormat(“###,###.00”))

will generate a string literal “23,000.20” with decimal type. (Note: The cell B1 contains number 23000.20)

  • Added support to rdf:PlainLiteral datatype that allows user to assign a language tag using (xml:lang) directive.

An example usage:

Class: @A1
   Annotations: rdfs:comment @B1(xml:lang=“it")

will generate a comment value “Buon giorno”@it. (Note: The cell B1 contains text “Buon giorno”)

  • Added new options to handle name encoding for generating valid IRI string. The supported encodings are:
    • mm:camelCaseEncode for applying the camelCase style (by default),
    • mm:snakeCaseEncode for applying the snake_case style,
    • mm:uuidEncode for generating a unique ID,
    • mm:hashEncode for generating a hash string.

An example usage:

Class: @A1(mm:snakeCaseEncode)

will generate an class entity with IRI string "http://www.protege.stanford.edu/ontologies/groceries/Barbara's_Puffins_Honey-Rice_Cereal_-_10.5oz_box”

Note: The cell A1 contains label product Barbara's Puffins Honey-Rice Cereal - 10.5oz box and the base prefix is known as http://www.protege.stanford.edu/ontologies/groceries/

  • It is possible now to specify the annotation value as an IRI by using (mm:IRI) directive.

An example usage:

Class: @A1
    Annotations: foaf:depiction @B1(mm:IRI)

will generate an IRI value http://www.protege.stanford.edu/ontologies/groceries/product.jpg

Note: The cell B1 contains a URL "http://www.protege.stanford.edu/ontologies/groceries/product.jpg". Without the mm:IRI directive the output value would have a string datatype.

Bug Fixes

  • Fixed the issue for setting a language in literals (#41)
  • Fixed the invasive character removal when generating IRI string (#45)
  • Fixed the use of row/column wildcard ‘+’ to select all the row/column, including the last one (#47)
  • Improve the cell highlighting in the spreadsheet table preview

Documentation

Please visit MappingMaster wiki to learn the transformation rule syntax used by Cellfie and try out the running example.