nanopub | Python client for searching , publishing and modifying

 by   fair-workflows Python Version: 2.0.1 License: Apache-2.0

kandi X-RAY | nanopub Summary

kandi X-RAY | nanopub Summary

nanopub is a Python library typically used in Telecommunications, Media, Advertising, Marketing applications. nanopub has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. However nanopub build file is not available. You can install using 'pip install nanopub' or download it from GitHub, PyPI.

The nanopub library provides a high-level, user-friendly python interface for searching, publishing and retracting nanopublications. Nanopublications are a formalized and machine-readable way of communicating the smallest possible units of publishable information. See the documentation for more information.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              nanopub has a low active ecosystem.
              It has 13 star(s) with 5 fork(s). There are 8 watchers for this library.
              There were 1 major release(s) in the last 12 months.
              There are 4 open issues and 61 have been closed. On average issues are closed in 124 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of nanopub is 2.0.1

            kandi-Quality Quality

              nanopub has 0 bugs and 0 code smells.

            kandi-Security Security

              nanopub has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              nanopub code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              nanopub is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              nanopub releases are available to install and integrate.
              Deployable package is available in PyPI.
              nanopub has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions, examples and code snippets are available.
              nanopub saves you 441 person hours of effort in developing the same functionality from scratch.
              It has 1043 lines of code, 84 functions and 18 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed nanopub and discovered the below as its top functions. This is intended to give you an instant insight into nanopub implemented functionality, and help decide if they suit your requirements.
            • Create an ontology from an assertion
            • Adds a provenance to provenance
            • Add the generated at - time
            • Handle assertion_attributes
            • Publish a nanopub
            • Run a python command
            • Sign a file
            • Get the path to the signed file
            • Create an rdflib assertion
            • Store a profile
            • Create RSA keys
            • Get the public key of the nanopub profile
            • Load the nanopub profile
            • Read the contents of a file
            • Get the version string
            • Get the orcid ID
            • Check if RSA keys exist
            Get all kandi verified functions for this library.

            nanopub Key Features

            No Key Features are available at this moment for nanopub.

            nanopub Examples and Code Snippets

            Setup,Quick Start,Publishing nanopublications
            Pythondot img1Lines of Code : 20dot img1License : Permissive (Apache-2.0)
            copy iconCopy
            
            from nanopub import Publication, NanopubClient
            from rdflib import Graph, URIRef, RDF, FOAF
            
            # Create the client, that allows searching, fetching and publishing nanopubs
            client = NanopubClient()
            
            # Either quickly publish a statement to the server
            cli  
            Setup,Quick Start,Fetching nanopublications and inspecting them
            Pythondot img2Lines of Code : 10dot img2License : Permissive (Apache-2.0)
            copy iconCopy
            # Fetch the nanopublication at the specified URI
            publication = client.fetch('http://purl.org/np/RApJG4fwj0szOMBMiYGmYvd5MCtRle6VbwkMJUb1SxxDM')
            
            # Print the RDF contents of the nanopublication
            print(publication)
            
            # Iterate through all triples in the   
            Setup,Quick Start,Searching for nanopublications
            Pythondot img3Lines of Code : 5dot img3License : Permissive (Apache-2.0)
            copy iconCopy
            from nanopub import NanopubClient
            
            # Search for all nanopublications containing the text 'fair'
            results = client.find_nanopubs_with_text('fair')
            print(results)
              

            Community Discussions

            No Community Discussions are available at this moment for nanopub.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install nanopub

            To publish to the nanopub server you need to setup your profile. This allows the nanopub server to identify you. Run the following command in the terminal:. This will ask you a few questions, then it will use that information to add and store RSA keys to sign your nanopublications with, (optionally) publish a nanopublication with your name and ORCID iD to declare that you are using using these RSA keys, and store your ORCID iD to automatically add as author to the provenance of any nanopublication you will publish using this library.

            Support

            Checkout the user documentation.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install nanopub

          • CLONE
          • HTTPS

            https://github.com/fair-workflows/nanopub.git

          • CLI

            gh repo clone fair-workflows/nanopub

          • sshUrl

            git@github.com:fair-workflows/nanopub.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link