Giter Site home page Giter Site logo

marciuz / jats2citation Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 19 KB

A simple parser for JATS XML for the citation extraction (following the citation rules of PLoS).

License: GNU General Public License v3.0

PHP 100.00%
jats-xml plos citation-extraction citation-rules xml-format parser jats

jats2citation's Introduction

JATS2Citation

A simple parser for JATS XML for the citation extraction (following the citation rules of PLoS).

What is this?

This is a simple class created to generate on the fly a good citation string for a scientific article stored in JATS XML format. The PHP class extract the information with a DOM parser and make the HTML string.

What is JATS?

The Journal Article Tag Suite (JATS) is an XML format used to describe scientific literature published online. It is a technical standard developed by the National Information Standards Organization (NISO) and approved by the American National Standards Institute with the code Z39.96-2012. (from https://en.wikipedia.org/wiki/Journal_Article_Tag_Suite) More info: https://jats.nlm.nih.gov/

Usage

// Can be a URL or a local XML file
$file = 'https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0055937&type=manuscript';

$J2C = new JATS2Citation(); 
$res = $J2C->make_citation($file);

// print the HTML
print $res;

... and returns

Torres de la Riva G, Hart BL, Farver TB, Oberbauer AM, Messam LLM, et al. (2013) Neutering Dogs: Effects on Joint Disorders and Cancers in Golden Retrievers. PLoS ONE 8(2): e55937. https://doi.org/10.1371/journal.pone.0055937

jats2citation's People

Contributors

marciuz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.