====== Data Resource - Type Attribute ====== ===== About ===== ''type'' is a [[attribute|data resource attribute]] that defines at a high-level, the [[structure|structure of the data resource]]. We follow the [[https://www.iana.org/assignments/media-types/media-types.xhtml|media type]] convention. ===== Usage ===== With the [[docs:tabli:data:print|print]], [[docs:tabli:data:head|head]] and [[docs:tabli:data:tail|tail]] data command, you can specify the ''type'' (ie ''media type'' with the ''%%--type%%'' [[docs:tabli:option|option]]. This is handy when you want to see the first lines of a document such as [[json|json]] or [[xml|xml]] because by default, ''Tabulify'' treats one document as one line. Example: tabli data head --type text xml/relation.xml@howto ===== Example ===== With the [[docs:tabli:data:info|tabli data info]] command, we can see that a [[csv|csv file]] has the type ''text/csv''. tabli data info characters.csv@howto Information about the data resource (characters.csv@howto) ATTRIBUTE VALUE ------------ ---------------------------------------------------------- AbsolutePath D:\code\bytle-mono\db-website\src\doc\howto\characters.csv Characterset ISO-8859-2 Connection howto Count 4 DataUri characters.csv@howto LogicalName characters Name characters.csv Path characters.csv Size 346 Type text/csv