Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

Resource field formats

François Parmentier edited this page Jan 2, 2017 · 8 revisions

With Lodex, it is possible to choose the display format of a field value. A field value is the "Object" for a triple (subject-predicate-object). The format directly depends of the export format.

There are usually 2 different cases, for HTML export and for all other cases. In the prototype, HTML transformation is made by a dedicated web component.

raw (default format)

no transformation

markdown

  • For HTML output transform syntax to HTML
  • For all others cases, no transformation

moment

  • For HTML output transform ISODate to Human and locale date
  • For all others cases, no transformation

Note : Could be renamed

chart (experimental)

  • For output HTML generate graphics from an API REST giving access to MongoDB operators as is done in ezvis
  • For all others cases, REST API URL

picture

  • For HTML output transform url to image view with some features (like lightbox2)
  • For all others cases, no transformation

uri

  • For HTML output transform uri to href link with icon and text label
  • For all others cases, no transformation

embeduri

  • For HTML output transform uri to a frame with title, link and description
  • For all others cases, no transformation

istex

  • For HTML output, transform elastic query to small result interface with pagination and filter
  • For all RDF output (RDF, NQ, TRIG, N3, etc.), transform elastic query to triples with ISTEX identifiers
  • For all tabular output (XLS, CVS, TSV), no transformation

bag

  • For HTML output transform a JSON array to unordered list (or to a comma separated list if inline option is set to true)
  • For all others cases, no transformation

sparql (not yet implemented)

  • For HTML output, transform SPARQL query to small result interface with pagination and filter
  • For all RDF output (RDF, NQ, TRIG, N3, etc.), transform SPARQL to triples
  • For all tabular output (XLS, CVS, TSV), no transformation