pymantic


Namepymantic JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/norcalrdf/pymantic/
SummarySemantic Web and RDF library for Python
upload_time2023-07-13 16:31:36
maintainer
docs_urlNone
authorGavin Carothers, Nick Pilon
requires_python
licenseBSD
keywords rdf n3 turtle semantics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ========
Pymantic
========
---------------------------------------
Semantic Web and RDF library for Python
---------------------------------------


Quick Start
===========
::

    >>> from pymantic.rdf import *
    >>> from pymantic.parsers import turtle_parser
    >>> import requests
    >>> Resource.prefixes['foaf'] = Prefix('http://xmlns.com/foaf/0.1/')
    >>> graph = turtle_parser.parse(requests.get('https://raw.github.com/norcalrdf/pymantic/master/examples/foaf-bond.ttl').text)
    >>> bond_james = Resource(graph, 'http://example.org/stuff/Bond')
    >>> print("%s knows:" % (bond_james.get_scalar('foaf:name'),))
    >>> for person in bond_james['foaf:knows']:
            print(person.get_scalar('foaf:name'))



Requirements
============

``pymantic`` requires Python 3.9 or higher.
``lark`` is used for the Turtle and NTriples parser.
The ``requests`` library is used for HTTP requests and the SPARQL client.
``lxml`` and ``rdflib`` are required by the SPARQL client as well.


Install
=======

::

    $ pip install pymantic

This will install ``pymantic`` and all its dependencies.


Documentation
=============

Generating a local copy of the documentation requires Sphinx:

::

    $ pip install Sphinx



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/norcalrdf/pymantic/",
    "name": "pymantic",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "RDF N3 Turtle Semantics",
    "author": "Gavin Carothers, Nick Pilon",
    "author_email": "gavin@carothers.name, npilon@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/53/81/d4c6b98f1808f962861325a73f78914d572d82a9a11a965ed161a0e63633/pymantic-1.0.0.tar.gz",
    "platform": null,
    "description": "========\nPymantic\n========\n---------------------------------------\nSemantic Web and RDF library for Python\n---------------------------------------\n\n\nQuick Start\n===========\n::\n\n    >>> from pymantic.rdf import *\n    >>> from pymantic.parsers import turtle_parser\n    >>> import requests\n    >>> Resource.prefixes['foaf'] = Prefix('http://xmlns.com/foaf/0.1/')\n    >>> graph = turtle_parser.parse(requests.get('https://raw.github.com/norcalrdf/pymantic/master/examples/foaf-bond.ttl').text)\n    >>> bond_james = Resource(graph, 'http://example.org/stuff/Bond')\n    >>> print(\"%s knows:\" % (bond_james.get_scalar('foaf:name'),))\n    >>> for person in bond_james['foaf:knows']:\n            print(person.get_scalar('foaf:name'))\n\n\n\nRequirements\n============\n\n``pymantic`` requires Python 3.9 or higher.\n``lark`` is used for the Turtle and NTriples parser.\nThe ``requests`` library is used for HTTP requests and the SPARQL client.\n``lxml`` and ``rdflib`` are required by the SPARQL client as well.\n\n\nInstall\n=======\n\n::\n\n    $ pip install pymantic\n\nThis will install ``pymantic`` and all its dependencies.\n\n\nDocumentation\n=============\n\nGenerating a local copy of the documentation requires Sphinx:\n\n::\n\n    $ pip install Sphinx\n\n\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Semantic Web and RDF library for Python",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/norcalrdf/pymantic/"
    },
    "split_keywords": [
        "rdf",
        "n3",
        "turtle",
        "semantics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "afc90aedaf06024a69507b1a47deb73104dc6c12de8bda8bac8427fbe8be178c",
                "md5": "760f201e63b45fec9fc7c486f6ba7f7a",
                "sha256": "a736f1c027ac76fbb39d4725ad9e96e961ea6e80b1af5d52a79584e863964bf2"
            },
            "downloads": -1,
            "filename": "pymantic-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "760f201e63b45fec9fc7c486f6ba7f7a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 33063,
            "upload_time": "2023-07-13T16:31:34",
            "upload_time_iso_8601": "2023-07-13T16:31:34.692761Z",
            "url": "https://files.pythonhosted.org/packages/af/c9/0aedaf06024a69507b1a47deb73104dc6c12de8bda8bac8427fbe8be178c/pymantic-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5381d4c6b98f1808f962861325a73f78914d572d82a9a11a965ed161a0e63633",
                "md5": "45c9c5172a22959c04081be3add89df6",
                "sha256": "7d3fe378859fd869cf6fe40e7efee664e1e1075a6f009dfecfe70d25867f6e8a"
            },
            "downloads": -1,
            "filename": "pymantic-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "45c9c5172a22959c04081be3add89df6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 36561,
            "upload_time": "2023-07-13T16:31:36",
            "upload_time_iso_8601": "2023-07-13T16:31:36.511613Z",
            "url": "https://files.pythonhosted.org/packages/53/81/d4c6b98f1808f962861325a73f78914d572d82a9a11a965ed161a0e63633/pymantic-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-13 16:31:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "norcalrdf",
    "github_project": "pymantic",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "pymantic"
}
        
Elapsed time: 0.11356s