/id_cards_2019

Experimental generation of an "ID card" for an action (Model conceptualisation)

Primary LanguageHTML

Experimental generation of an "ID card" for an action (Model conceptualisation)

Flexible semantic annotations of subject, predicate and object on hypothes.is are extracted (saved in hypothesis.rds) and processed to generate a consistent set of triples (out/statements.csv).

Recursive functions are used to display the triples, with information about sub-actions shown as indented text (out/conceptualisation.txt) or html (out/conceptualisation.html), for a specified list of predicates.

A similar ID card generated manually is shown in:

index.html provides a proof of concept web app that reads UI settings and statements to display from RDF (see https://josephguillaume.github.io/id_cards_2019/). Features:

  • Display statements in nested UIs. Each component has render() function
  • Each component is registered: page.registerComponent()
  • Both UI component and statements are drawn from an RDF document
  • Each component has show_settings() function
  • Labels for URI can be extracted with page.label(subject)
  • Allow comparison with external data source with page.compare(identifier)
  • List displayed statements to help identify gaps, with page.displayed_statements()