Skip to main content
                        ad888888b,                       
                       d8"     "88                       
                               a8P                       
8b       d8 ,adPPYYba,      ,d8P"  8b,dPPYba,  ,adPPYba, 
`8b     d8' ""     `Y8    a8P"     88P'   "Y8 a8"     "8a
 `8b   d8'  ,adPPPPP88  a8P'       88         8b       d8
  `8b,d8'   88,    ,88 d8"         88         "8a,   ,a8"
    Y88'    `"8bbdP"Y8 88888888888 88          `"YbbdP"'
    d8'                                                
   d8' 

Demo

https://oeg-upm.github.io/ya2ro/output/landing_page.html

Install dependencies

  • pip install -r requirements.txt

How to use

Create a yalm file or use one of the templates. Currently ya2ro supports two formats:

  • paper
  • project

Please find a template for each type under the directory templates.

The first thing to do is create some input for ya2ro or use one of the yamls under the folder templates. To create valid yalm you should follow the documentation bellow.

Once you have a valid yalm (proyect or paper) is time to run ya2ro.

Comand line arguments

usage: ya2ro.py [-h] (-i INPUT | -l LANDING_PAGE) [-o OUTPUT_DIRECTORY] [-p PROPERTIES_FILE]

Human and machine readable input as a yaml file and create RO-Object in jsonld and/or HTML
view.

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Path of the required yaml input. Follow the documentation or the
                        example given to see the structure of the file.
  -l LANDING_PAGE, --landing_page LANDING_PAGE
                        Path of a previous output folder using the ya2ro tool. This flag will
                        make a landing page to make all the resources accesible.
  -o OUTPUT_DIRECTORY, --output_directory OUTPUT_DIRECTORY
                        Output diretory.
  -p PROPERTIES_FILE, --properties_file PROPERTIES_FILE
                        Properties file name.

Create machine and human readable content

It is possible to process batches of yalms at the same time, to do that just specify as input a folder with all the yalms inside.

Simple execution:

python3 ya2ro.py -i templates
python3 ya2ro.py -i templates/project_yemplate.yaml

With optional arguments:

python3 ya2ro.py -input templates --output_directory out --properties_file custom_properties.yaml
python3 ya2ro.py -i templates -o out -p custom_properties.yaml

Create landing page

ya2ro offers the option to create a landing page where all the resources produced are easilly accesible. Just indicate the folder where this resources are, for example:

python3 ya2ro.py -l output


Fields supported

Paper

Documentation for all supported fields for type paper.

type:This field is required and is used to indicate the type of the work.

type: "paper"

doi_paper:All the relevant information of the paper will be retrieved. Such as:

  • Title
  • Summary
  • Bibtext
  • Citation/Bibliography
  • Authors
doi_paper: https://doi.org/xxxxxxxxx

title:Title of the paper.

title: "Paper - Template"

summary:A brief summary of the paper, also known as an abstract.

summary: "This is a summary of the paper."

datasets: All the datasets used and created during the paper. This tool supports to define each dataset manually specifying all fields or to use a DOI and ya2ro will try to automatically fetch the data.

datasets:
  - 
    doi_dataset: www.doiDB1.com
  - 
    link: www.D1.com 
    name: "Dataset 1"
    description: "Description dataset 1"
    license: "MIT-License"
    author: "Author name"

software: All the relevant software used and created for the paper. If a GitHub Repo is provided ya2ro will use SOMEF to automatically fetch relevant data.

software:
  -
    link: https://github.com/KnowledgeCaptureAndDiscovery/somef/
  - 
    link: http://software_1.com 
    name: "Software 1"
    description: "Description software 1"
    license: "MIT-License"

bibliography:In this field is where the bibliography can be added.

bibliography:
  - "Bibliography entry 1"
  - "Bibliography entry 2"
  - "Bibliography entry 3"

authors:In this field is where credit to the creators, collaborators, authors, etc is given. If an ORCID is privided, ya2ro will fetch relevant data automatically. If a photo is not provided, a default one will be used.

authors:
    -
      orcid: https://orcid.org/0000-0003-0454-7145
      role: "Coordinator"
    -
      name: "Author"
      position: "Author's position"
      description: "Author's description"
      web: https://author-web.com/
      photo: "author_photo.jpg"

Project

Documentation for all supported fields for type project.

type:This field is required and is used to indicate the type of the work.

type: "project"

title:Title of the project.

title: "Project - Template"

goal:In this field you should inlcude the goal for the project.

goal: "Here is where a description of what is this project trying to achieve."

social_motivation:In this field you should include why this project will help in a social way.

social_motivation: "This is the social motivation behind this project."

sketch:Path to an image where a visual description/workflow is shown.

sketch: "images/sketch_ya2ro.jpg"

areas:All the areas involucrated inside this project.

areas: 
  - "Area 1: Some description."
  - "Area 2: Some description."

activities:All the idividual subtasks of the project.

activities:
  - "Subtask 1: Some description."
  - "Subtask 2: Some description."

demo:Link or links to demos of the project.

demo: 
  -
    link: http://demo.com
    description: "This is a description for a demo."
  -
    name: "Demo name"
    link: http://demo.com
    description: "This is a description for a demo with name."

datasets: All the datasets used and created during the paper. This tool supports to define each dataset manually specifying all fields or to use a DOI and ya2ro will try to automatically fetch the data.

datasets:
  - 
    doi_dataset: www.doiDB1.com
  - 
    link: www.D1.com 
    name: "Dataset 1"
    description: "Description dataset 1"
    license: "MIT-License"
    author: "Author name"

software: All the relevant software used and created for the paper. If a GitHub Repo is provided, ya2ro will use SOMEF to automatically fetch relevant data.

software:
  -
    link: https://github.com/KnowledgeCaptureAndDiscovery/somef/
  - 
    link: http://software_1.com 
    name: "Software 1"
    description: "Description software 1"
    license: "MIT-License"

bibliography:In this field is where the bibliography can be added.

bibliography:
  - "Bibliography entry 1"
  - "Bibliography entry 2"
  - "Bibliography entry 3"

authors:In this field is where credit to the creators, collaborators, authors, etc is given. If an ORCID is privided ya2ro will fetch relevant data automatically. If a photo is not provided, a default one will be used.

participatns:
    -
      orcid: https://orcid.org/0000-0003-0454-7145
      role: "Coordinator"
    -
      name: "Author"
      position: "Author's position"
      description: "Author's description"
      web: https://author-web.com/
      photo: "author_photo.jpg"

contact:In this field you can add some contact information.

contact:
  email: contact@projectmail.com
  phone: +34 999 999 999

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ya2ro-0.0.2.tar.gz (4.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ya2ro-0.0.2-py3-none-any.whl (38.1 kB view details)

Uploaded Python 3

File details

Details for the file ya2ro-0.0.2.tar.gz.

File metadata

  • Download URL: ya2ro-0.0.2.tar.gz
  • Upload date:
  • Size: 4.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for ya2ro-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9523f8f53a446f8b00f926e39f3b4211256709a2ef40ca98668c20f46e0cd819
MD5 485b5cf7a79ea7be9bf6eb7d7b3362f0
BLAKE2b-256 ac83a9d4117aac4156737c5cda0f51a8368ebe0ed7950f865ae378d282fed253

See more details on using hashes here.

File details

Details for the file ya2ro-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ya2ro-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 38.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for ya2ro-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5c14c97af3a52db64ddeb8ecf169c81aeae7c2ed8c6a0c1dbe2cde268bc415e4
MD5 9268126190f7fad860c368d33397f6ae
BLAKE2b-256 61b6130f847bb1cd5f007b48b86912108982edbcabe20a2e29128697cf6182bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page