Skip to content

klezmer-archive/cidoc-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why?

The CIDOC CRM extension doc pages (e.g. CRMtex) don't have the dang buttons for showing the inheritence graph and inherited properties. Learning the ontology is really freakin hard without those. This hack adds them in.

How'd I do it?

  1. Download the necessary assets from CRMtex
    • HTML source: view page source, copy, and paste it into crmtex.html.orig
    • cidoc_scripts.js: grab it from the devtools network panel
  2. Prefix all the URLs in the HTML <head> with https://cidoc-crm.org/
    • We can still use them, but those links need to be fully-qualified now
  3. Manually insert the AJAX-fetched schema file
  4. CRMtex also depends on CIDOC, CRMinf, CRMSci, and FRBRoo. To get stuff from those ontologies to show up with names in the graph, paste their schema definitions into xmlFile too
  5. Change the link in the <head> to point to /cidoc_scripts.js. To see details of the modifications, look at the git log
  6. Run the python script on the downloaded HTML page: python main.py crmtext.html.orig > docs/crmtex.html

You're done!

About

A hack for improved documentation site for CIDOC extensions

Topics

Resources

Stars

Watchers

Forks

Languages