Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

A Swift 3 package for identifying and extracting scholarly identifiers

License

Notifications You must be signed in to change notification settings

altmetric/swift-identifiers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS PROJECT IS DEPRECATED

swift-identifiers is not maintained anymore.

Swift Identifiers

A work-in-progress Swift library for handling and extracting scholarly identifiers from text.

Current version: Unreleased Supported Swift versions: 3.0x

Usage

import Identifiers

// Extracting from a larger text element
let dois = DOI.extract("I love 10.1234/foobar and 10.1234/bazquux")

// Instantiating with a literal string
// (failures are assumed to be developer error)
let doi = DOI("10.1234/foobar")

// Instantiating from a variable
do {
  let doi = try DOI("10.1234/bazquux")
} catch(let error) {
  // throws an IdentifierError.invalidIdentifier
}

Versions in other languages

We also maintain a version of this library for Ruby and for PHP.

A further version for Rust is currently in development.

License

Copyright © 2017 Altmetric LLP.

Distributed under the MIT License.

About

A Swift 3 package for identifying and extracting scholarly identifiers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages