Project

metamatter

0.01
No commit activity in last 3 years
No release in over 3 years
A RubyGem for extracting minmal metadata from a GitHub repository
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 0.10
~> 10.0
~> 3.3
~> 2.9
~> 1.21

Runtime

~> 0.2.0
~> 0.13
~> 4.0
~> 0.19
 Project Readme

Metamatter

DOI Build Status Gem Version

Minimal metadata extractor for the GitHub API. Ultimately the goal is to get this to produce output similar to that described in this blog post. Currently none of the entities in the output have any semantic context.

{
  "@context": "http://schema.org",
  "@type": "Code",
  "name": "Fidgit",
  "codeRepository": "https://github.com/arfon/fidgit",
  "citation": "http://dx.doi.org/10.6084/m9.figshare.828487",
  "description": "An ungodly union of GitHub and Figshare http://fidgit.arfon.org",
  "dateCreated": "2013-10-19",
  "license": "http://opensource.org/licenses/MIT",
  "author": {
    "@type": "Person",
    "name": "Arfon Smith",
    "@id": "http://orcid.org/0000-0002-3957-2474",
    "email": "arfon@github.com"
  }
}

Usage

ALGORITHMIA_TOKEN = your_algorithmia_token
GITHUB_TOKEN = your_github_token

repository = Metamatter::Repository.new('arfon/metamatter')
repository.extract    #=> '{"authors": [{"name": "Arfon Smith", "email":"arfon.smith@gmail.com" ...

or from the command line:

GITHUB_TOKEN=your_github_token ALGORITHMIA_TOKEN=your_algorithmia_token\
metamatter extract arfon/metamatter

{
  "repository": {
    "name": "metamatter",
    "location": "https://github.com/arfon/metamatter",
    "description": "Minimal metadata extractor for the GitHub API",
    "created_at": "2015-07-06 10:42:12 UTC"
  },
  "authors": [
    {
      "name": "Arfon Smith",
      "orcid": "0000-0002-3957-2474",
      "email": "arfon.smith@gmail.com",
      "login": "arfon",
      "contributions": 10
    }
  ],
  "tags": [
    "api",
    "extractor",
    "minimal",
    "metadata",
    "github",
    "metamatter"
  ],
  "license": {
    "name": "MIT License",
    "url": "https://api.github.com/licenses/mit"
  },
  "doi": "http://dx.doi.org/10.5281/zenodo.19630"
}