Skip to content

The Metanorma Registry software (lite) for self-hosting

Notifications You must be signed in to change notification settings

abunashir/metanorma-registry

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metanorma Registry viewer

The Metanorma Registry viewer is used for fetching particular data elements from a Collection.

Experimental version available at: https://metanorma-registry.herokuapp.com/

Usage

Use GraphiQL to connect https://metanorma-registry.herokuapp.com/graphql . A number of documents are available for querying.

Use cases

Query standard collections

“List me all documents with title and id” :

{
  documents {
    id
    bibdata { title }
  }
}

“List all documents of this type” :

{
  documents(type: "csd-standard", start: 1, limit: 2) {
    id
  }
}

Query data elements within

“Give me all terms” :

{
  documents(type: "csd-standard", start: 1, limit: 2) {
    id
    sections { clause { terms { term { preferred } } } }
  }
}

“Give me all terms and definitions”:

{
  documents(type: "csd-standard", start: 1, limit: 2) {
    id
    sections { clause { terms { term {
      preferred, obligation, definition { p }
    } } } }
  }
}

“Give me all clause titles”:

{
  documents(type: "csd-standard", limit: 2) {
    id
    sections { clause { title } }
  }
}

Query metadata within standards

“Give me state of publication and publication date”:

{
  documents(type: "csd-standard", limit: 2) {
    id
    bibdata {
      title, status, edition
      date { on, type }
    }
  }
}

“Give me all organization contributors and language”:

{
  documents(start: 1, limit: 2) {
    bibdata {
      contributor { organization { name } }
      language
    }
  }
}

About

The Metanorma Registry software (lite) for self-hosting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 98.6%
  • Shell 1.4%